GithubHelp home page GithubHelp logo

hugo-phlat-theme's People

Contributors

bep avatar digitalcraftsman avatar emzi avatar jpescador avatar nraboy avatar paskal 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

Watchers

 avatar  avatar  avatar  avatar  avatar

hugo-phlat-theme's Issues

line spacing

Hi,

Thanks for creating this theme. I am trying to build a blog in Chinese. It looks pretty good except line spacing is too small. Can I please point out where should I go if I want to increase the line spacing?

Creating New site with the theme

I was following your instructions about creating a new site, however there are a few things missing in the Readme.md.

  1. Steps to Create the pages about and contact using
    hugo new page/about.md

2)For the first post must include at least 1 categories because hugo will have an error serving:

template: theme/_default/single.content.html:5:54: executing "theme/_default/single.content.html" at <len>: wrong number of args for len: want 1 got 0 in theme/_default/single.content.html

The number two I think could be considered as a bug.

By the way your template is awesome, amazing job!

Errors on site without expected parameters set

Hello!

$subj, when trying to run this theme against my blog source I get following (and main page won't render, only part of posts pages):

Building sites … ERROR 2018/03/20 16:00:33 in .Render: Failed to execute template "theme/_default/single.content.html": template: theme/_default/single.content.html:5:54: executing "theme/_default/single.content.html" at <len>: wrong number of args for len: want 1 got 0
ERROR 2018/03/20 16:00:33 Error while rendering "page" in "": template: theme/_default/single.html:3:7: executing "theme/_default/single.html" at <partial "head.html" ...>: error calling partial: template: theme/partials/head.html:16:90: executing "theme/partials/head.html" at <delimit .Site.Params...>: error calling delimit: can't iterate over <nil>
ERROR 2018/03/20 16:00:33 Error while rendering "page" in "post/": template: theme/_default/single.html:3:7: executing "theme/_default/single.html" at <partial "head.html" ...>: error calling partial: template: theme/partials/head.html:16:90: executing "theme/partials/head.html" at <delimit .Site.Params...>: error calling delimit: can't iterate over <nil>
ERROR 2018/03/20 16:00:33 Error while rendering "taxonomy" in "": template: theme/_default/list.html:3:7: executing "theme/_default/list.html" at <partial "head.html" ...>: error calling partial: template: theme/partials/head.html:16:90: executing "theme/partials/head.html" at <delimit .Site.Params...>: error calling delimit: can't iterate over <nil>
ERROR 2018/03/20 16:00:33 Error while rendering "home" in "": template: theme/index.html:3:7: executing "theme/index.html" at <partial "head.html" ...>: error calling partial: template: theme/partials/head.html:16:90: executing "theme/partials/head.html" at <delimit .Site.Params...>: error calling delimit: can't iterate over <nil>
ERROR 2018/03/20 16:00:33 Error while rendering "taxonomyTerm" in "": template: theme/_default/terms.html:3:7: executing "theme/_default/terms.html" at <partial "head.html" ...>: error calling partial: template: theme/partials/head.html:16:90: executing "theme/partials/head.html" at <delimit .Site.Params...>: error calling delimit: can't iterate over <nil>
ERROR 2018/03/20 16:00:33 Error while rendering "section" in "": template: theme/_default/list.html:3:7: executing "theme/_default/list.html" at <partial "head.html" ...>: error calling partial: template: theme/partials/head.html:16:90: executing "theme/partials/head.html" at <delimit .Site.Params...>: error calling delimit: can't iterate over <nil>
ERROR 2018/03/20 16:00:33 Error while rendering "404" in "": template: theme/404.html:3:7: executing "theme/404.html" at <partial "head.html" ...>: error calling partial: template: theme/partials/head.html:16:90: executing "theme/partials/head.html" at <delimit .Site.Params...>: error calling delimit: can't iterate over <nil>

The reason is likely some absent .Site. parameter but you can't tell it from error message, I guess input parameters handling could be improved.

cboettig/hugo-now-ui#9 is a good reference point for solving this.

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.