tummychow / lanyon-hugo Goto Github PK
View Code? Open in Web Editor NEWPort of poole/lanyon, to spf13/hugo
Home Page: tummychow.github.io/lanyon-hugo
License: MIT License
Port of poole/lanyon, to spf13/hugo
Home Page: tummychow.github.io/lanyon-hugo
License: MIT License
Why there is Poole in the title :) ? It's not a poole port but a layon's right?
Newer versions of Hugo supports pagination via the .Paginator
object. Use that to build paginated index page.
... I get this for every single post I have when I generate the site:
ERROR 2017/06/04 11:26:36 in .Render: Failed to execute template "theme/_default/li.html" for page "post/2004-04-28-netdiagx-i-ny-version.md"
I have no idea even where to start looking. So any help is more than welcome.
Thanks,
Joacim
Hello, I am trying to adding different sections such as you might have two blogs folder each contains a different list of posts. For example I will have section called "otherposts". Here is what I did to achieve that:
otherposts
folder<a class="sidebar-nav-item {{ if eq .Url "otherposts" }} active {{ end }}" href="/otherposts">Other Posts</a>
otherposts
folder with copying the contents from post folder (li.html, single.html) inside layouts
folder.It seems worked, however, this approach seem to be repetitive. any suggestion with better method?
Many thanks!
Hi @tummychow
When I execute the Hugo Themes Site Build Script I get the following console ERROR with your theme:
==== PROCESSING lanyon ======
Building site for theme lanyon using config "config-lanyon.toml" to ../themeSite/static/theme/lanyon/
ERROR 2018/11/09 13:32:03 render of "page" failed: execute of template failed: template: _default/single.html:1:3: executing "_default/single.html" at <partial "default_hea...>: error calling partial: "/hugoThemes/lanyon/layouts/partials/default_head.html:22:46": execute of template failed: template: partials/default_head.html:8:7: executing "partials/default_head.html" at <partial "sidebar.htm...>: error calling partial: "/hugoThemes/lanyon/layouts/partials/sidebar.html:22:46": execute of template failed: template: partials/sidebar.html:22:46: executing "partials/sidebar.html" at <.Site.Params.github....>: can't evaluate field url in type interface {}
FAILED to create demo site for lanyon
It seems that your theme needs to have its own Example Site and that it currently fails because it relies on the Hugo Basic Example.
Also I noticed that you have a /content/
folder under the root of your theme's repo. This directory will need to go under /exampleSite/
Can you please look into the above?
Thanks!
I recently upgraded to Hugo v0.57.1 and noticed that my index.html
had no posts! There's just a "Posts" heading at the top without any posts listed.
I made this change and all the posts appear on the index page again:
-{{ $paginator := .Paginate (where .Data.Pages "Type" "in" "post") }}
+{{ $paginator := .Paginate (where .Site.Pages "Type" "in" "post") }}
That may not be the right long term fix, but I figured it was good to ask about it here.
I tried to build my site with Hugo version 0.68.3 and HEAD of Lanyon-Hugo (as of today). The site builds with the fixed pages on the home page, and no posts.
I rolled Hugo back to 0.62 and it seems to build OK, so I'd guess something changed in the Hugo code that affects this in the theme.
HTML pages are not generated for any taxonomy for example for tags and categories as well as no pages are generated if I have my posts under /blog/
instead of /post/
Solution would be to have a list.html
in layouts/_default/
so that it will be picked up to generate pages for these sections. If we do so, we can remove the layouts/post/post.html
and layouts/_default/li.html
You can see layouts/_default/list.html
is used by these three types,
http://gohugo.io/templates/lookup-order/#examples-layout-lookup-for-section-pages
http://gohugo.io/templates/lookup-order/#examples-layout-lookup-for-taxonomy-list-pages
http://gohugo.io/templates/lookup-order/#examples-layout-lookup-for-taxonomy-terms-pages
I would like to send patch for this :)
hi,
do you have any example sites to showcase your nice theme? I see that there is one on http://themes.gohugo.io/theme/lanyon/ but that looks broken or incomplete (e.g. there is no menu?).
On Mac OSX Mavericks, if I do
hugo server --theme=lanyon --buildDrafts --watch
ERROR: 2014/09/30 Rendering error: template: theme/post/single.html:5:47: executing "theme/post/single.html" at <.Site.Params.DateFor...>: invalid value; expected string
ERROR: 2014/09/30 Rendering error: template: theme/index.html:10:53: executing "theme/index.html" at <.Site.Params.DateFor...>: invalid value; expected string
If I want to change the colour scheme, as per Lanyon, I thought I could edit
themes/lanyon-hugo/layouts/partials/default_head.html
to include:
<body class="theme=base-0b">
but I can't seem to get this working. Am I missing something?
e.g. if you view-source at http://sje30.github.io/ I see the body statement has the class line, but the colours have not changed.
I can't figure out to change the content of the side bar. The file content/fixed/about.md has "sidebar": true, but it's not actually shown on the sidebar.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.