GithubHelp home page GithubHelp logo

ga-hugo-theme's People

Contributors

giraffeacademy avatar johnrlive avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ga-hugo-theme's Issues

求助

我使用这个主题,,
hugo.exe new 软件/a.md
会在主页生成
image
会加上一个s,这对中文不是很友好
hugo version
hugo v0.89.4-AB01BA6E windows/amd64 BuildDate=2021-11-17T08:24:09Z VendorInfo=gohugoio

尝试过解决
list.html
image
不能删除s,达不到效果

刚刚开始学习,希望得到帮助

I'm getting error : ERROR: 2018/08/26 13:41:39 template.go:350: template: theme/_default/list.html:17: function "relLangURL" not defined

hugo server -w
ERROR: 2018/08/26 13:41:39 template.go:350: template: theme/_default/list.html:17: function "relLangURL" not defined
ERROR: 2018/08/26 13:41:39 general.go:222: Error while rendering homepage: html/template: "theme/_default/list.html" is an incomplete template

Your rendered home page is blank: /index.html is zero-length

  • Did you specify a theme on the command-line or in your
    "config.toml" file? (Current theme: "ga-hugo-theme")
  • For more debugging information, run "hugo -v"
    =============================================================
    0 draft content
    0 future content
    0 pages created
    0 non-page files copied
    0 paginator pages created
    0 tags created
    0 categories created
    in 10 ms
    Watching for changes in /home/insol/balkrishnajha.github.io/{data,content,layouts,static,themes}
    Serving pages from memory
    Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
    Press Ctrl+C to stop

I followed the exact same procedure described in your video.

Page .URL in ga-hugo-theme is deprecated.

Steps to recreate

  1. Follow along on video (number 06),

  2. When hugo server -D runs, an error occurs.

   execute of template failed: template: _default/list.html:14:31: 
   executing "_default/list.html" at <.URL>: can't evaluate field URL in type page.Page

Solution

  1. I found a Hugo discourse response that said Page URL is deprecated. Also a github issue.

  2. Change .URL to .RelPermalink in themes/ga-hugo-theme/layouts/_default/list.html solves the error.

   <div style="font-size:20px;">
        <a href="{{.RelPermalink}}">{{.Title}}</a>
   {{/*
        Deprecated
        https://discourse.gohugo.io/t/can-t-evaluate-field-url-in-type-page-page/44421/2
        <a href="{{.URL}}">{{.Title}}</a>
   */}}
   </div>

Trying to follow the tutorial throws "fail to render" when creating a new page.

When a user tries to make a page (or any page for that matter), the rendering will fail with the following error

ERROR 2022/03/30 11:19:24 Failed to render pages: render of "home" failed: "/Users/path/to/test/site/themes/ga-hugo-theme/layouts/_default/list.html:14:31": execute of template failed: template: _default/list.html:14:31: executing "_default/list.html" at <.URL>: can't evaluate field URL in type page.Page

Steps to reproduce: create new hugo site, clone a theme, and attempt to add a page as the tutorial suggests.

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.