Skip to content

Commit 92961c0

Browse files
author
Splitter
committed
starters: update modules
1 parent bccd1c6 commit 92961c0

File tree

7 files changed

+39
-39
lines changed

7 files changed

+39
-39
lines changed

.github/workflows/publish.yaml

+34-34
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Deploy website to GitHub Pages
22

33
env:
4-
WC_HUGO_VERSION: '0.122.0'
4+
WC_HUGO_VERSION: '0.123.4'
55

66
on:
77
# Trigger the workflow every time you push to the `main` branch
@@ -26,37 +26,37 @@ jobs:
2626
if: github.repository_owner != 'HugoBlox'
2727
runs-on: ubuntu-latest
2828
steps:
29-
- name: Checkout
30-
uses: actions/checkout@v4
31-
with:
29+
- name: Checkout
30+
uses: actions/checkout@v4
31+
with:
3232
# Fetch history for Hugo's .GitInfo and .Lastmod
33-
fetch-depth: 0
34-
- name: Setup Hugo
35-
uses: peaceiris/actions-hugo@v2
36-
with:
37-
hugo-version: ${{ env.WC_HUGO_VERSION }}
38-
extended: true
39-
- uses: actions/cache@v3
40-
with:
41-
path: /tmp/hugo_cache_runner/
42-
key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.mod') }}
43-
restore-keys: |
44-
${{ runner.os }}-hugomod-
45-
- name: Setup Pages
46-
id: pages
47-
uses: actions/configure-pages@v3
48-
- name: Build with Hugo
49-
env:
50-
HUGO_ENVIRONMENT: production
51-
run: |
52-
echo "Hugo Cache Dir: $(hugo config | grep cachedir)"
53-
hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/"
54-
- name: Generate Pagefind search index
55-
run: npx pagefind --source "public"
56-
- name: Upload artifact
57-
uses: actions/upload-pages-artifact@v2
58-
with:
59-
path: ./public
33+
fetch-depth: 0
34+
- name: Setup Hugo
35+
uses: peaceiris/actions-hugo@v2
36+
with:
37+
hugo-version: ${{ env.WC_HUGO_VERSION }}
38+
extended: true
39+
- uses: actions/cache@v3
40+
with:
41+
path: /tmp/hugo_cache_runner/
42+
key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.mod') }}
43+
restore-keys: |
44+
${{ runner.os }}-hugomod-
45+
- name: Setup Pages
46+
id: pages
47+
uses: actions/configure-pages@v3
48+
- name: Build with Hugo
49+
env:
50+
HUGO_ENVIRONMENT: production
51+
run: |
52+
echo "Hugo Cache Dir: $(hugo config | grep cachedir)"
53+
hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/"
54+
- name: Generate Pagefind search index
55+
run: npx pagefind --source "public"
56+
- name: Upload artifact
57+
uses: actions/upload-pages-artifact@v2
58+
with:
59+
path: ./public
6060

6161
# Deploy website to GitHub Pages hosting
6262
deploy:
@@ -67,6 +67,6 @@ jobs:
6767
runs-on: ubuntu-latest
6868
needs: build
6969
steps:
70-
- name: Deploy to GitHub Pages
71-
id: deployment
72-
uses: actions/deploy-pages@v2
70+
- name: Deploy to GitHub Pages
71+
id: deployment
72+
uses: actions/deploy-pages@v2

assets/media/book.svg

-2
This file was deleted.
File renamed without changes.

content/docs/guide/project-structure.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ There are **4 main folders for Hugo-based sites**:
1111
- `_index.md` the homepage (**Hugo requires that the homepage and archive pages have an underscore prefix**)
1212
- `assets/`
1313
- `media/` for your media files (images, videos)
14-
- `icons/` upload any custom SVG icons you want to use
14+
- `icons/custom/` upload any custom SVG icons you want to use
1515
- `config/_default/` for your site configuration files
1616
- `hugo.yaml` to configure Hugo (site title, URL, Hugo options, setup per-folder page features)
1717
- `module.yaml` to install or uninstall Hugo themes and plugins

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ go 1.15
44

55
require (
66
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20240217212918-ae7f0c597978
7-
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20240224164709-5fc2af797a35
7+
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20240226204435-b7ae01c12355
88
)

hugoblox.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
build:
2+
hugo_version: '0.123.4'

netlify.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
publish = "public"
44

55
[build.environment]
6-
HUGO_VERSION = "0.122.0"
6+
HUGO_VERSION = "0.123.4"
77
HUGO_ENABLEGITINFO = "true"
88

99
[context.production.environment]

0 commit comments

Comments
 (0)