- Make sure hugo is installed on your computer. The site is always built on the server against the latest version of hugo.
- Clone the repository with
git clone --recurse-submodules <url>
. See this StackOverflow Answer for more info.
- Make a new branch off of main.
- If you're trusted, work directly on main, and ignore steps 2 and 10, and 11. The site will be built upon push.
- Pull and checkout your branch.
- Open in a terminal the directory
{REPO_ROOT}/tsuacm
- Create your minutes file with the command:
hugo new minutes/semester/meeting-title.md
- Never manually create the markdown files.
- The file name sets the default title, but the path of the file has no effect on the final URL. See below.
- Open the created markdown file to edit. Proper frontmatter should be added.
- Note: Style all links to external sources with the following shortcode:
{{< externallink url="https://example.com" text="The Link Text" title="Hover Text" >}}
url
is the URL to link totext
is the text (or other HTML contents) of the linktitle
is optional and is the text shown on hover
- To change the default template, edit
tsuacm/archetypes/minutes.md
- Note: Style all links to external sources with the following shortcode:
- Put any static resources (images, other things that don't need to be processed) in the
static
folder.- Things in this folder are hosted starting from the site root.
- For example,
static/images/myimage.png
is hosted athttps://mysite.com/images/myimage.png
- Link to these items with relative URLs from the site root:
/images/myimage.png
- Run the command
hugo server
to run the integrated test server.- If you want to show drafts as well, run
hugo server -D
instead. - A link to the test server will be shown, and it will update on any changes made.
- If you want to show drafts as well, run
- Visit the meeting minutes to check their formatting. The permalink is always
BASE_URL/minutes/yyyy/mm/dd
- Ex:
https://localhost:1313/minutes/2020/11/16
- Ex:
https://tsuacm.github.io/minutes/2020/11/16
- You can alter this in the
config.json
- Ex:
- When the changes are as you like them, commit and push to your branch. DO NOT BUILD THE SITE ON YOUR MACHINE WITH THE
hugo
COMMAND! The GitHub servers will do this for you. - Create a PR from your branch to main. It will automatically run a build against your branch to make sure it works. An approval and successful build are required before a merge.
- Once approved, merge. You can also optionally delete your branch after it's merged. The site will be automatically built and deployed.
- Make a new branch off of main.
- Pull and checkout your branch.
- Open in a terminal the directory
{REPO_ROOT}/tsuacm
- Create your content with the command:
hugo new path/title.md
- Ex: New Top-Level Page:
hugo new my-page.md
- Ex: New blog post under "posts":
hugo new posts/my-title.md
- Never manually create the markdown files.
- The type of the new content is inferred by the file path. Specify it manually with
hugo new -k type path/title.md
- Ex: New Top-Level Page:
- Run the command
hugo server
to run the integrated test server.- If you want to show drafts as well, run
hugo server -D
instead. - A link to the test server will be shown, and it will update on any changes made.
- If you want to show drafts as well, run
- Open the created markdown file to edit. Proper frontmatter should be added based on the type, although you can always change/add/remove it. See the Hugo documentation for more on this.
- Note: Style all links to external sources with the following shortcode:
{{< externallink url="https://example.com" text="The Link Text" title="Hover Text" >}}
url
is the URL to link totext
is the text (or other HTML contents) of the linktitle
is optional and is the text shown on hover
- Note: Style all links to external sources with the following shortcode:
- Choose an appropriate path for a description / summary.
- For a manual description, add
description: "Your Description"
to the frontmatter. - For no description, add
nodescription: true
to the frontmatter. - For an automatic summary, omit both
description
andnodescription
from the frontmatter. Choose this option for normal pages.
- For a manual description, add
- Put any static resources (images, other things that don't need to be processed) in the
static
folder.- Things in this folder are hosted starting from the site root.
- For example,
static/images/myimage.png
is hosted athttps://mysite.com/images/myimage.png
- Link to these items with relative URLs from the site root:
/images/myimage.png
- When the changes are as you like them, commit and push to your branch. DO NOT BUILD THE SITE ON YOUR MACHINE WITH THE
hugo
COMMAND! The GitHub servers will do this for you. - Create a PR from your branch to main. It will automatically run a build against your branch to make sure it works. An approval and successful build are required before a merge.
- Once approved, merge. You can also optionally delete your branch after it's merged. The site will be automatically built and deployed.
- Make a new branch off of main.
- Pull and checkout your branch.
- Open in a terminal the directory
{REPO_ROOT}/tsuacm
- Run the command
hugo server
to run the integrated test server.- If you want to show drafts as well, run
hugo server -D
instead. - A link to the test server will be shown, and it will update on any changes made.
- If you want to show drafts as well, run
- Open the markdown file(s) you want to edit and do so.
- Note: Style all links to external sources with the following shortcode:
{{< externallink url="https://example.com" text="The Link Text" title="Hover Text" >}}
url
is the URL to link totext
is the text (or other HTML contents) of the linktitle
is optional and is the text shown on hover
- Note: Style all links to external sources with the following shortcode:
- Put any static resources (images, other things that don't need to be processed) in the
static
folder.- Things in this folder are hosted starting from the site root.
- For example,
static/images/myimage.png
is hosted athttps://mysite.com/images/myimage.png
- Link to these items with relative URLs from the site root:
/images/myimage.png
- When the changes are as you like them, commit and push to your branch. DO NOT BUILD THE SITE ON YOUR MACHINE WITH THE
hugo
COMMAND! The GitHub servers will do this for you. - Create a PR from your branch to main. It will automatically run a build against your branch to make sure it works. An approval and successful build are required before a merge.
- Once approved, merge. You can also optionally delete your branch after it's merged. The site will be automatically built and deployed.
- Download SVGs from https://github.com/FortAwesome/Font-Awesome/tree/master/svgs
- Place them in the /fontawesome directory
- Call them using the shortcode
{{% fontawesome name %}}
wherename
is the filename without the.svg
extension.
cd
to the theme's directory and use the normal git
commands to pull from the upstream branch.
git submodule deinit path/to/the_theme
git rm path/to/the_theme
And commit the changes.
cd tsuacm/themes
git submodule add <clone url>
And commit the changes.
You will likely have to change the layouts
for the new theme.