Skip to content

Commit

Permalink
adds cookbook as a separate site
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbradley committed Aug 29, 2024
1 parent 180df5d commit 019f5e2
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 3 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
uses: actions/configure-pages@v5
- name: Install Node.js dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
- name: Build with Hugo
- name: Build reader with Hugo
env:
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
HUGO_ENVIRONMENT: production
Expand All @@ -61,10 +61,23 @@ jobs:
--gc \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Build cookbook with Hugo
env:
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
HUGO_ENVIORNMENT: production
TZ: America/Vancouver
run: |
cd cookbook \
&& hugo \
--gc \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./reader/public
path: |
./reader/public
./cookbook/public
# Deployment job
deploy:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Hugo
.hugo_build.lock
reader/public
reader/public
cookbook/public
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "reader/themes/hugo-theme-relearn"]
path = reader/themes/hugo-theme-relearn
url = https://github.com/McShelby/hugo-theme-relearn.git
[submodule "cookbook/themes/hugo-theme-relearn"]
path = cookbook/themes/hugo-theme-relearn
url = https://github.com/McShelby/hugo-theme-relearn.git
5 changes: 5 additions & 0 deletions cookbook/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
+++
6 changes: 6 additions & 0 deletions cookbook/content/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
+++
archetype = "home"
title = ""
+++

This is a new home page.
6 changes: 6 additions & 0 deletions cookbook/hugo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
baseURL = 'https://example.org/'
languageCode = 'en-us'
title = 'My New Hugo Site'

theme = 'hugo-theme-relearn'

1 change: 1 addition & 0 deletions cookbook/themes/hugo-theme-relearn
Submodule hugo-theme-relearn added at 28975d

0 comments on commit 019f5e2

Please sign in to comment.