GithubHelp home page GithubHelp logo

Comments (1)

MikiVanousek avatar MikiVanousek commented on August 26, 2024

The relevant error thrown when building is:

Error: error building site: render: failed to render pages: render of "section" failed: "/home/runner/work/website/website/themes/congo/layouts/_default/list.html:24:9": execute of template failed: template: _default/list.html:24:9: executing "main" at <.Content>: error calling Content: "/home/runner/work/website/website/content/posts/fifth-post/_index.md:1:1": "/home/runner/work/website/website/themes/congo/layouts/_default/_markup/render-image.html:25:7": execute of template failed: template: _default/_markup/render-image.html:25:7: executing "_default/_markup/render-image.html" at <partial "picture.html" (dict "img" . "alt" $altText "class" $class "x2" $x2 "lazy" $lazy "webp" $webp)>: error calling partial: "/home/runner/work/website/website/themes/congo/layouts/partials/picture.html:63:26": execute of template failed: template: partials/picture.html:63:26: executing "partials/picture.html" at <.Resize>: error calling Resize: this feature is not available in your current Hugo version, see https://goo.gl/YMrWcn for more information

As explained in the link, you need to use the extended version of Hugo. On your computer, make sure to install the extended version, as explained in the hugo docs. For the GitHub build pipeline, add extended: true right after hugo-version: "latest", so the whole .github/workflows becomes

# .github/workflows/gh-pages.yml

name: GitHub Pages

on:
  push:
    branches:
      - main

jobs:
  build-deploy:
    runs-on: ubuntu-20.04
    concurrency:
      group: ${{ github.workflow }}-${{ github.ref }}
    steps:
      - name: Checkout
        uses: actions/checkout@v3
        with:
          submodules: true
          fetch-depth: 0

      - name: Setup Hugo
        uses: peaceiris/actions-hugo@v2
        with:
          hugo-version: "latest"
          extended: true

      - name: Build
        run: hugo --minify

      - name: Deploy
        uses: peaceiris/actions-gh-pages@v3
        if: ${{ github.ref == 'refs/heads/main' }}
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_branch: gh-pages
          publish_dir: ./public

from congo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.