Skip to content

Commit

Permalink
initializes hugo static site for the course reader
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbradley committed Jul 26, 2024
1 parent 6996dbf commit 81ddb60
Show file tree
Hide file tree
Showing 14 changed files with 84 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
# Runs on pushes targeting the default branch
push:
branches:
- readings-site
- github-pages

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
hugo \
--gc \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
--baseURL "${{ steps.pages.outputs.host }}/"
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Hugo
.hugo_build.lock
reader/public
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "reader/themes/hugo-theme-relearn"]
path = reader/themes/hugo-theme-relearn
url = https://github.com/McShelby/hugo-theme-relearn.git
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/310.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/libraries/archives.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions reader/archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
+++
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
date = {{ .Date }}
draft = true
+++
4 changes: 4 additions & 0 deletions reader/content/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
archetype: "home"
title: "Introduction to Software Engineering"
---
5 changes: 5 additions & 0 deletions reader/content/introduction/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
archetype: "chapter"
weight: 1
title: "Introduction"
---
14 changes: 14 additions & 0 deletions reader/hugo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
baseURL = 'https://ubccpsc.github.io/'
languageCode = 'en-ca'
title = 'CPSC 310 Course Reader'
theme = 'hugo-theme-relearn'

[params]
disableLandingPageButton = true
collapsibleMenu = true
showVisitedLinks = true
author.name = 'Reid Holmes'


[outputs]
home = ['html', 'rss', 'search', 'searchpage']
1 change: 1 addition & 0 deletions reader/themes/hugo-theme-relearn
Submodule hugo-theme-relearn added at 7aec99

0 comments on commit 81ddb60

Please sign in to comment.