shefelbine.org website source files https://shefelbine.org
 
 
Go to file
sjshefelbine 2570a12066 Resize portraits 2023-08-16 11:37:41 -04:00
archetypes Initial commit. 2023-04-23 19:41:38 -04:00
assets Update all images to webp 2023-08-16 11:14:08 -04:00
content Update all images to webp 2023-08-16 11:14:08 -04:00
layouts Update all images to webp 2023-08-16 11:14:08 -04:00
static Resize portraits 2023-08-16 11:37:41 -04:00
.gitignore Update for codeberg 2023-06-14 13:31:07 -04:00
HOWTO.md Update all images to webp 2023-08-16 11:14:08 -04:00
LICENSE Add more license information 2023-08-16 08:12:32 -04:00
README.md Update HOWTO 2023-08-16 10:22:22 -04:00
hugo.toml Add more license information 2023-08-16 08:12:32 -04:00

README.md

How to...

Preview the website

Open a terminal and run hugo server, to show pages marked as draft run hugo server -D.

Change nav bar items

Open hugo.toml, locate section [params] and setting nav. Edit the list to include the url of the page you want to add, the text on the bar will be the title of the page.

Create a new page

Open a terminal and run hugo new page/path.md. This will create the file content/page/path.md which will compile to /page/path.html edit the metadata at the top of the file to be what is needed. Delete the line draft = true to make the page appear.

Create a news item

Follow the steps above to create a new page, have the path be news/year-season.md or similar.

Add a new person

Open content/people.md and add the following template filling out needed text.

{{< person "filename(not path)" "Name" >}}
Info
{{< /person >}}

Generate / upload website

Run hugo, this will generate all of the pages. They will be in the "public" directory.

Make sure that the pages repository is cloned into the subdirectory "pages"

Run rsync --exclude='.git*' -r --delete public/ pages this will sync all of the needed files into the hosted repository.

Use git to commit changes to both the shefelbine.org and pages repositories. The website will update the pages.

One-liner:

rm -rf public && hugo && rsync --exclude='.git*' -r --delete public/ pages && cd pages && git add -A && git commit -m "Rebuild" && git push && cd ..