Code Monkey home page Code Monkey logo

lanyon-hugo's People

Contributors

bep avatar bhavin192 avatar gam-phon avatar gswalden avatar nithinphilips avatar nonumeros avatar ryan-robeson avatar tummychow 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  avatar  avatar  avatar  avatar  avatar

lanyon-hugo's Issues

Poole?

Why there is Poole in the title :) ? It's not a poole port but a layon's right?

Add pagination support

Newer versions of Hugo supports pagination via the .Paginator object. Use that to build paginated index page.

Hugo n00b here..

... 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

adding additional sections in posts

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:

  1. In the "content" folder, create otherposts folder
  2. the following are in the theme folder (lanyon-hugo theme folder). Add this entry to the siderbar.html
    <a class="sidebar-nav-item {{ if eq .Url "otherposts" }} active {{ end }}" href="/otherposts">Other Posts</a>
  3. In the "indexes" folder create "otherposts.html" as the copy of post.html
  4. create 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!

Your Theme's Demo is not generating on the Hugo website

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!

CC /@digitalcraftsman

Hugo v0.57.1 - No blog posts shown in index.html

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.

No posts on the home page with Hugo version 0.68.3

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.

Tags and Categories pages are not generated

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 :)

New Hugo install, errors loading lanyon

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

Changing colour scheme

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.

Changing the content of the side bar.

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.

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.