diff --git a/starters/blog/.github/workflows/publish.yaml b/starters/blog/.github/workflows/publish.yaml index 100c5743..2813c672 100644 --- a/starters/blog/.github/workflows/publish.yaml +++ b/starters/blog/.github/workflows/publish.yaml @@ -1,7 +1,7 @@ name: Deploy website to GitHub Pages env: - WC_HUGO_VERSION: '0.122.0' + WC_HUGO_VERSION: '0.123.4' on: # Trigger the workflow every time you push to the `main` branch @@ -26,37 +26,37 @@ jobs: if: github.repository_owner != 'HugoBlox' runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 - with: - # Fetch history for Hugo's .GitInfo and .Lastmod - fetch-depth: 0 - - name: Setup Hugo - uses: peaceiris/actions-hugo@v2 - with: - hugo-version: ${{ env.WC_HUGO_VERSION }} - extended: true - - uses: actions/cache@v3 - with: - path: /tmp/hugo_cache_runner/ - key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.mod') }} - restore-keys: | - ${{ runner.os }}-hugomod- - - name: Setup Pages - id: pages - uses: actions/configure-pages@v3 - - name: Build with Hugo - env: - HUGO_ENVIRONMENT: production - run: | - echo "Hugo Cache Dir: $(hugo config | grep cachedir)" - hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/" - - name: Generate Pagefind search index - run: npx pagefind --source "public" - - name: Upload artifact - uses: actions/upload-pages-artifact@v2 - with: - path: ./public + - name: Checkout + uses: actions/checkout@v4 + with: + # Fetch history for Hugo's .GitInfo and .Lastmod + fetch-depth: 0 + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: ${{ env.WC_HUGO_VERSION }} + extended: true + - uses: actions/cache@v3 + with: + path: /tmp/hugo_cache_runner/ + key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.mod') }} + restore-keys: | + ${{ runner.os }}-hugomod- + - name: Setup Pages + id: pages + uses: actions/configure-pages@v3 + - name: Build with Hugo + env: + HUGO_ENVIRONMENT: production + run: | + echo "Hugo Cache Dir: $(hugo config | grep cachedir)" + hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/" + - name: Generate Pagefind search index + run: npx pagefind --source "public" + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 + with: + path: ./public # Deploy website to GitHub Pages hosting deploy: @@ -67,6 +67,6 @@ jobs: runs-on: ubuntu-latest needs: build steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v2 + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 diff --git a/starters/blog/assets/media/icons/.gitkeep b/starters/blog/assets/media/icons/custom/.gitkeep similarity index 100% rename from starters/blog/assets/media/icons/.gitkeep rename to starters/blog/assets/media/icons/custom/.gitkeep diff --git a/starters/blog/go.mod b/starters/blog/go.mod index abe004bd..7b940714 100644 --- a/starters/blog/go.mod +++ b/starters/blog/go.mod @@ -4,5 +4,5 @@ go 1.19 require ( github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20231125204555-f431a4a2c705 - github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20240128183758-3fb9b2e11ab0 + github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20240226204435-b7ae01c12355 ) diff --git a/starters/blog/hugoblox.yaml b/starters/blog/hugoblox.yaml new file mode 100644 index 00000000..6c043c20 --- /dev/null +++ b/starters/blog/hugoblox.yaml @@ -0,0 +1,2 @@ +build: + hugo_version: '0.123.4' diff --git a/starters/blog/netlify.toml b/starters/blog/netlify.toml index 9501eac0..95ecf54c 100644 --- a/starters/blog/netlify.toml +++ b/starters/blog/netlify.toml @@ -3,7 +3,7 @@ publish = "public" [build.environment] - HUGO_VERSION = "0.122.0" + HUGO_VERSION = "0.123.4" GO_VERSION = "1.21.5" NODE_VERSION = "21.1.0" HUGO_ENABLEGITINFO = "true" diff --git a/starters/documentation/.github/workflows/publish.yaml b/starters/documentation/.github/workflows/publish.yaml index 100c5743..2db878cc 100644 --- a/starters/documentation/.github/workflows/publish.yaml +++ b/starters/documentation/.github/workflows/publish.yaml @@ -1,7 +1,7 @@ name: Deploy website to GitHub Pages env: - WC_HUGO_VERSION: '0.122.0' + WC_HUGO_VERSION: '0.123.4' on: # Trigger the workflow every time you push to the `main` branch @@ -26,37 +26,37 @@ jobs: if: github.repository_owner != 'HugoBlox' runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 - with: + - name: Checkout + uses: actions/checkout@v4 + with: # Fetch history for Hugo's .GitInfo and .Lastmod - fetch-depth: 0 - - name: Setup Hugo - uses: peaceiris/actions-hugo@v2 - with: - hugo-version: ${{ env.WC_HUGO_VERSION }} - extended: true - - uses: actions/cache@v3 - with: - path: /tmp/hugo_cache_runner/ - key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.mod') }} - restore-keys: | - ${{ runner.os }}-hugomod- - - name: Setup Pages - id: pages - uses: actions/configure-pages@v3 - - name: Build with Hugo - env: - HUGO_ENVIRONMENT: production - run: | - echo "Hugo Cache Dir: $(hugo config | grep cachedir)" - hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/" - - name: Generate Pagefind search index - run: npx pagefind --source "public" - - name: Upload artifact - uses: actions/upload-pages-artifact@v2 - with: - path: ./public + fetch-depth: 0 + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: ${{ env.WC_HUGO_VERSION }} + extended: true + - uses: actions/cache@v3 + with: + path: /tmp/hugo_cache_runner/ + key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.mod') }} + restore-keys: | + ${{ runner.os }}-hugomod- + - name: Setup Pages + id: pages + uses: actions/configure-pages@v3 + - name: Build with Hugo + env: + HUGO_ENVIRONMENT: production + run: | + echo "Hugo Cache Dir: $(hugo config | grep cachedir)" + hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/" + - name: Generate Pagefind search index + run: npx pagefind --source "public" + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 + with: + path: ./public # Deploy website to GitHub Pages hosting deploy: @@ -67,6 +67,6 @@ jobs: runs-on: ubuntu-latest needs: build steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v2 + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 diff --git a/starters/documentation/assets/media/book.svg b/starters/documentation/assets/media/book.svg deleted file mode 100644 index 7583edc8..00000000 --- a/starters/documentation/assets/media/book.svg +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/starters/documentation/assets/media/icons/.gitkeep b/starters/documentation/assets/media/icons/custom/.gitkeep similarity index 100% rename from starters/documentation/assets/media/icons/.gitkeep rename to starters/documentation/assets/media/icons/custom/.gitkeep diff --git a/starters/documentation/content/docs/guide/project-structure.md b/starters/documentation/content/docs/guide/project-structure.md index f469d591..b3a6bf09 100644 --- a/starters/documentation/content/docs/guide/project-structure.md +++ b/starters/documentation/content/docs/guide/project-structure.md @@ -11,7 +11,7 @@ There are **4 main folders for Hugo-based sites**: - `_index.md` the homepage (**Hugo requires that the homepage and archive pages have an underscore prefix**) - `assets/` - `media/` for your media files (images, videos) - - `icons/` upload any custom SVG icons you want to use + - `icons/custom/` upload any custom SVG icons you want to use - `config/_default/` for your site configuration files - `hugo.yaml` to configure Hugo (site title, URL, Hugo options, setup per-folder page features) - `module.yaml` to install or uninstall Hugo themes and plugins diff --git a/starters/documentation/go.mod b/starters/documentation/go.mod index c385278a..bda174a5 100644 --- a/starters/documentation/go.mod +++ b/starters/documentation/go.mod @@ -4,5 +4,5 @@ go 1.15 require ( github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20240217212918-ae7f0c597978 - github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20240224164709-5fc2af797a35 + github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20240226204435-b7ae01c12355 ) diff --git a/starters/documentation/hugoblox.yaml b/starters/documentation/hugoblox.yaml new file mode 100644 index 00000000..6c043c20 --- /dev/null +++ b/starters/documentation/hugoblox.yaml @@ -0,0 +1,2 @@ +build: + hugo_version: '0.123.4' diff --git a/starters/documentation/netlify.toml b/starters/documentation/netlify.toml index 5a06ecd9..ecd1634d 100644 --- a/starters/documentation/netlify.toml +++ b/starters/documentation/netlify.toml @@ -3,7 +3,7 @@ publish = "public" [build.environment] - HUGO_VERSION = "0.122.0" + HUGO_VERSION = "0.123.4" HUGO_ENABLEGITINFO = "true" [context.production.environment] diff --git a/starters/landing-page/.github/workflows/publish.yaml b/starters/landing-page/.github/workflows/publish.yaml index e58fb6e6..2db878cc 100644 --- a/starters/landing-page/.github/workflows/publish.yaml +++ b/starters/landing-page/.github/workflows/publish.yaml @@ -1,7 +1,7 @@ name: Deploy website to GitHub Pages env: - WC_HUGO_VERSION: '0.119.0' + WC_HUGO_VERSION: '0.123.4' on: # Trigger the workflow every time you push to the `main` branch @@ -26,37 +26,37 @@ jobs: if: github.repository_owner != 'HugoBlox' runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 - with: + - name: Checkout + uses: actions/checkout@v4 + with: # Fetch history for Hugo's .GitInfo and .Lastmod - fetch-depth: 0 - - name: Setup Hugo - uses: peaceiris/actions-hugo@v2 - with: - hugo-version: ${{ env.WC_HUGO_VERSION }} - extended: true - - uses: actions/cache@v3 - with: - path: /tmp/hugo_cache_runner/ - key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.mod') }} - restore-keys: | - ${{ runner.os }}-hugomod- - - name: Setup Pages - id: pages - uses: actions/configure-pages@v3 - - name: Build with Hugo - env: - HUGO_ENVIRONMENT: production - run: | - echo "Hugo Cache Dir: $(hugo config | grep cachedir)" - hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/" - - name: Generate Pagefind search index - run: npx pagefind --source "public" - - name: Upload artifact - uses: actions/upload-pages-artifact@v2 - with: - path: ./public + fetch-depth: 0 + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: ${{ env.WC_HUGO_VERSION }} + extended: true + - uses: actions/cache@v3 + with: + path: /tmp/hugo_cache_runner/ + key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.mod') }} + restore-keys: | + ${{ runner.os }}-hugomod- + - name: Setup Pages + id: pages + uses: actions/configure-pages@v3 + - name: Build with Hugo + env: + HUGO_ENVIRONMENT: production + run: | + echo "Hugo Cache Dir: $(hugo config | grep cachedir)" + hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/" + - name: Generate Pagefind search index + run: npx pagefind --source "public" + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 + with: + path: ./public # Deploy website to GitHub Pages hosting deploy: @@ -67,6 +67,6 @@ jobs: runs-on: ubuntu-latest needs: build steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v2 + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 diff --git a/starters/landing-page/assets/media/icons/.gitkeep b/starters/landing-page/assets/media/icons/custom/.gitkeep similarity index 100% rename from starters/landing-page/assets/media/icons/.gitkeep rename to starters/landing-page/assets/media/icons/custom/.gitkeep diff --git a/starters/landing-page/go.mod b/starters/landing-page/go.mod index e456518d..5cde7a97 100644 --- a/starters/landing-page/go.mod +++ b/starters/landing-page/go.mod @@ -4,5 +4,5 @@ go 1.19 require ( github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20231108143325-448ed0e3bd2b - github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.1.2-0.20240113174520-1975d0f568ff + github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20240226204435-b7ae01c12355 ) diff --git a/starters/landing-page/hugoblox.yaml b/starters/landing-page/hugoblox.yaml new file mode 100644 index 00000000..6c043c20 --- /dev/null +++ b/starters/landing-page/hugoblox.yaml @@ -0,0 +1,2 @@ +build: + hugo_version: '0.123.4' diff --git a/starters/landing-page/netlify.toml b/starters/landing-page/netlify.toml index e35a1fca..113139fc 100644 --- a/starters/landing-page/netlify.toml +++ b/starters/landing-page/netlify.toml @@ -3,7 +3,7 @@ publish = "public" [build.environment] - HUGO_VERSION = "0.119.0" + HUGO_VERSION = "0.123.4" HUGO_ENABLEGITINFO = "true" [context.production.environment] diff --git a/starters/link-in-bio/.github/workflows/publish.yaml b/starters/link-in-bio/.github/workflows/publish.yaml index 323e900d..20d8eab3 100644 --- a/starters/link-in-bio/.github/workflows/publish.yaml +++ b/starters/link-in-bio/.github/workflows/publish.yaml @@ -1,7 +1,7 @@ name: Deploy website to GitHub Pages env: - WC_HUGO_VERSION: '0.119.0' + WC_HUGO_VERSION: '0.123.4' on: # Trigger the workflow every time you push to the `main` branch @@ -26,35 +26,35 @@ jobs: if: github.repository_owner != 'HugoBlox' runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 - with: + - name: Checkout + uses: actions/checkout@v4 + with: # Fetch history for Hugo's .GitInfo and .Lastmod - fetch-depth: 0 - - name: Setup Hugo - uses: peaceiris/actions-hugo@v2 - with: - hugo-version: ${{ env.WC_HUGO_VERSION }} - extended: true - - uses: actions/cache@v3 - with: - path: /tmp/hugo_cache_runner/ - key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.mod') }} - restore-keys: | - ${{ runner.os }}-hugomod- - - name: Setup Pages - id: pages - uses: actions/configure-pages@v3 - - name: Build with Hugo - env: - HUGO_ENVIRONMENT: production - run: | - echo "Hugo Cache Dir: $(hugo config | grep cachedir)" - hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/" - - name: Upload artifact - uses: actions/upload-pages-artifact@v2 - with: - path: ./public + fetch-depth: 0 + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: ${{ env.WC_HUGO_VERSION }} + extended: true + - uses: actions/cache@v3 + with: + path: /tmp/hugo_cache_runner/ + key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.mod') }} + restore-keys: | + ${{ runner.os }}-hugomod- + - name: Setup Pages + id: pages + uses: actions/configure-pages@v3 + - name: Build with Hugo + env: + HUGO_ENVIRONMENT: production + run: | + echo "Hugo Cache Dir: $(hugo config | grep cachedir)" + hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/" + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 + with: + path: ./public # Deploy website to GitHub Pages hosting deploy: @@ -65,6 +65,6 @@ jobs: runs-on: ubuntu-latest needs: build steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v2 + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 diff --git a/starters/link-in-bio/go.mod b/starters/link-in-bio/go.mod index fce16d42..5cde7a97 100644 --- a/starters/link-in-bio/go.mod +++ b/starters/link-in-bio/go.mod @@ -4,5 +4,5 @@ go 1.19 require ( github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20231108143325-448ed0e3bd2b - github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20240226204318-8fa680080031 + github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20240226204435-b7ae01c12355 ) diff --git a/starters/link-in-bio/hugoblox.yaml b/starters/link-in-bio/hugoblox.yaml new file mode 100644 index 00000000..6c043c20 --- /dev/null +++ b/starters/link-in-bio/hugoblox.yaml @@ -0,0 +1,2 @@ +build: + hugo_version: '0.123.4' diff --git a/starters/link-in-bio/netlify.toml b/starters/link-in-bio/netlify.toml index e35a1fca..113139fc 100644 --- a/starters/link-in-bio/netlify.toml +++ b/starters/link-in-bio/netlify.toml @@ -3,7 +3,7 @@ publish = "public" [build.environment] - HUGO_VERSION = "0.119.0" + HUGO_VERSION = "0.123.4" HUGO_ENABLEGITINFO = "true" [context.production.environment] diff --git a/starters/resume/.github/workflows/publish.yaml b/starters/resume/.github/workflows/publish.yaml index 323e900d..20d8eab3 100644 --- a/starters/resume/.github/workflows/publish.yaml +++ b/starters/resume/.github/workflows/publish.yaml @@ -1,7 +1,7 @@ name: Deploy website to GitHub Pages env: - WC_HUGO_VERSION: '0.119.0' + WC_HUGO_VERSION: '0.123.4' on: # Trigger the workflow every time you push to the `main` branch @@ -26,35 +26,35 @@ jobs: if: github.repository_owner != 'HugoBlox' runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 - with: + - name: Checkout + uses: actions/checkout@v4 + with: # Fetch history for Hugo's .GitInfo and .Lastmod - fetch-depth: 0 - - name: Setup Hugo - uses: peaceiris/actions-hugo@v2 - with: - hugo-version: ${{ env.WC_HUGO_VERSION }} - extended: true - - uses: actions/cache@v3 - with: - path: /tmp/hugo_cache_runner/ - key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.mod') }} - restore-keys: | - ${{ runner.os }}-hugomod- - - name: Setup Pages - id: pages - uses: actions/configure-pages@v3 - - name: Build with Hugo - env: - HUGO_ENVIRONMENT: production - run: | - echo "Hugo Cache Dir: $(hugo config | grep cachedir)" - hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/" - - name: Upload artifact - uses: actions/upload-pages-artifact@v2 - with: - path: ./public + fetch-depth: 0 + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: ${{ env.WC_HUGO_VERSION }} + extended: true + - uses: actions/cache@v3 + with: + path: /tmp/hugo_cache_runner/ + key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.mod') }} + restore-keys: | + ${{ runner.os }}-hugomod- + - name: Setup Pages + id: pages + uses: actions/configure-pages@v3 + - name: Build with Hugo + env: + HUGO_ENVIRONMENT: production + run: | + echo "Hugo Cache Dir: $(hugo config | grep cachedir)" + hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/" + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 + with: + path: ./public # Deploy website to GitHub Pages hosting deploy: @@ -65,6 +65,6 @@ jobs: runs-on: ubuntu-latest needs: build steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v2 + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 diff --git a/starters/resume/assets/media/icons/.gitkeep b/starters/resume/assets/media/icons/custom/.gitkeep similarity index 100% rename from starters/resume/assets/media/icons/.gitkeep rename to starters/resume/assets/media/icons/custom/.gitkeep diff --git a/starters/resume/go.mod b/starters/resume/go.mod index 87be3a1f..326b8731 100644 --- a/starters/resume/go.mod +++ b/starters/resume/go.mod @@ -4,5 +4,5 @@ go 1.19 require ( github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20231125200520-804c70f7efb8 - github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.1.2-0.20231205221046-e29517634e3b + github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20240226204435-b7ae01c12355 ) diff --git a/starters/resume/hugoblox.yaml b/starters/resume/hugoblox.yaml new file mode 100644 index 00000000..6c043c20 --- /dev/null +++ b/starters/resume/hugoblox.yaml @@ -0,0 +1,2 @@ +build: + hugo_version: '0.123.4' diff --git a/starters/resume/netlify.toml b/starters/resume/netlify.toml index e35a1fca..113139fc 100644 --- a/starters/resume/netlify.toml +++ b/starters/resume/netlify.toml @@ -3,7 +3,7 @@ publish = "public" [build.environment] - HUGO_VERSION = "0.119.0" + HUGO_VERSION = "0.123.4" HUGO_ENABLEGITINFO = "true" [context.production.environment]