Giter Site home page Giter Site logo

Comments (12)

jaketothepast avatar jaketothepast commented on August 19, 2024 3

Found the issue guys, here, in the notes section for release 0.33: https://gohugo.io/news/0.33-relnotes/. They removed indexes from the template lookup system, so layouts/indexes/post was never getting rendered. I am able to fix this issue by moving the post.html template into the post directory, unless there is a better place for it. I will submit a PR as well.

from blackburn.

nonumeros avatar nonumeros commented on August 19, 2024

Let's assume v0.36 is running. If you were to rename li.html to list.html on `/layouts/_default/ directory, then at least the links show. Furthermore if you were to replace the contents of that file for say

 <li class="posts">
 {{ range .Data.Pages -}}
   <li>
     <span><a href="{{ .Permalink }}">{{ .Title }}</a> <a class="pure-menu-has-children">{{ .Date.Format "Mon, Jan 2, 2006" }}</a></span>
   </li>
 </li>
 {{- end }}

things get better. But I wouldn't know what to do from there

from blackburn.

yoshiharuyamashita avatar yoshiharuyamashita commented on August 19, 2024

Hi @nonumeros

I can reproduce the problem at my end. I'm not sure what's going on but will take a look at it as soon as I can.

from blackburn.

HEDAS avatar HEDAS commented on August 19, 2024

I meet the same problem. This problem also appears in the demo site.

from blackburn.

nonumeros avatar nonumeros commented on August 19, 2024

@yoshiharuyamashita appreciate it. @HEDAS thanks for confirming it.

Your can reproduce the same problem with https://github.com/tummychow/lanyon-hugo

And if a new site is created with v0.36 and then generate it with v0.32.4 - one ends up with <meta name="generator" content="Hugo 0.36" /> on root while the <meta name="generator" content="Hugo 0.32.4" /> is on /post/

I guess the above is to be expected, but somehow is not quite 'right'. For the simple reason that if one were to create the site with v0.36 and then generate the site with v0.32.4 everything looks 'right' on the outside, including the /post/ directory.

For further cross references check https://nonumeross.github.io (that's two s )

root is 0.36
post is 0.32.4

Sorry, I take that back. Site was created with 0.32.4 and then generated with 0.36, but either way, thats something that ( I guess ) hugo devs need to figure out

from blackburn.

nonumeros avatar nonumeros commented on August 19, 2024

I'm closing the issue. Some of the contributors at the Hugo community do not offer constructive solutions and/or helpful feedback to the problem.

from blackburn.

jaketothepast avatar jaketothepast commented on August 19, 2024

@nonumeros @yoshiharuyamashita Not sure how much investigating has been done but it looks like when hugo builds the site index.html never gets generated. Looking into it currently. I too am having the /post/ serving issue

from blackburn.

nonumeros avatar nonumeros commented on August 19, 2024

@jaketothepast awesome job.

If you can initialize a pull request also for https://github.com/tummychow/lanyon-hugo some of the folks using it, will appreciate it. Briefly testing that theme with the v0.37-dev looks as if - based on your research - a post directory would have to be created with the post.html file from indexes directory, moved into it.

from blackburn.

jaketothepast avatar jaketothepast commented on August 19, 2024

Thank you! And sure will do. Also for reference I tested my pull request to this repository with Hugo v0.36 on Windows. #66

from blackburn.

jaketothepast avatar jaketothepast commented on August 19, 2024

until @yoshiharuyamashita merges this feel free to use my fork: https://github.com/jaketothepast/blackburn

from blackburn.

parthpunkster avatar parthpunkster commented on August 19, 2024

I am still facing this issue, is the issue resolved?

from blackburn.

nonumeros avatar nonumeros commented on August 19, 2024

Yes with 579beef

If you're referring to your hugo site... It seems you removed post.html from the layouts/post directory at https://github.com/parthpunkster/parthpunkster-hugo/tree/master/themes/blackburn/layouts/post

from blackburn.

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.