Giter Club home page Giter Club logo

hugo-natrium-theme's People

Contributors

bep avatar codazoda avatar hyperupcall avatar jingxuanmin avatar jrutheiser avatar mobybit avatar mvdnes avatar nikovacevic avatar pawelgrzybek avatar shiva 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

Watchers

 avatar  avatar  avatar

hugo-natrium-theme's Issues

Theme Demo Broken on Hugo Website

Hello the theme's demo no longer generates. The console show the following self-explanatory errors:

12:15:50 PM:  ==== PROCESSING  hugo-natrium-theme  ======
12:15:51 PM: Building site for theme hugo-natrium-theme using default content to ../themeSite/static/theme/hugo-natrium-theme/
12:15:51 PM: Type posts found
12:15:51 PM: WARN 2019/08/20 09:15:51 Page's .Hugo is deprecated and will be removed in a future release. Use the global hugo function.
12:15:51 PM: WARN 2019/08/20 09:15:51 Page's .URL is deprecated and will be removed in a future release. Use .Permalink or .RelPermalink. If what you want is the front matter URL value, use .Params.url.
12:15:51 PM: WARN 2019/08/20 09:15:51 Page's .RSSLink is deprecated and will be removed in a future release. Use the Output Format's link, e.g. something like:
12:15:51 PM:     {{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}.
12:15:51 PM: WARN 2019/08/20 09:15:51 In the next Hugo version (0.58.0) we will change how $home.Pages behaves. If you want to list all regular pages, replace .Pages or .Data.Pages with .Site.RegularPages in your home page template.
12:15:51 PM: Error: Error building site: failed to render pages: render of "home" failed: "/opt/build/repo/hugo-natrium-theme/layouts/index.html:6:15": execute of template failed: template: index.html:6:15: executing "index.html" at <.Paginate>: error calling Paginate: cannot convert type page.PagesGroup to Pages

If you need help feel free to ask.

Also note that once gohugoio/hugoThemes#668 is addressed you will need to keep an eye on whether your theme demo generates on the Hugo website.

We are a very small team and we just cannot keep up opening issues in the various theme repositories. Whenever a theme demo breaks and remains broken then at some point it will be removed from the list without prior warning.

Thank you.

Pagination error

Hi,

Just started looking at Hugo, liked your Natrium theme; appreciate its simplicity.

When cloning the theme into the themes/-dir, I get below error that seemingly has to do with pagination, however:

ERROR 2019/02/12 20:49:30 Failed to render pages: render of home failed: /home/usrname/git/hugo-blog/themes/hugo-natrium-theme/layouts/index.html:6:15: execute of template failed: template: index.html:6:15: executing index.html at <.Paginate>: error calling Paginate: cannot convert type hugolib.PagesGroup to Pages

I'm not familiar enough with Hugo to fix it myself, or I'd make a pull request.

Hugo env

Hugo Static Site Generator v0.54.0-B1A82C61 linux/amd64 BuildDate: 2019-02-01T09:40:34Z
GOOS="linux"
GOARCH="amd64"
GOVERSION="go1.11.5"

Hugo config

allthemes = [{Name:hugo-natrium-theme ConfigFilename: Cfg:}]
archetypedir = "archetypes"
assetdir = "assets"
baseurl = "http://localhost/"
blackfriday = &{Smartypants:true SmartypantsQuotesNBSP:false AngledQuotes:false Fractions:true HrefTargetBlank:false NofollowLinks:false NoreferrerLinks:false SmartDashes:true LatexDashes:true TaskLists:true PlainIDAnchors:true Extensions:[] ExtensionsMask:[]}
builddrafts = false
buildexpired = false
buildfuture = false
cachedir = "/tmp/hugo_cache/"
canonifyurls = false
cleandestinationdir = false
contentdir = "content"
datadir = "data"
debug = false
defaultcontentlanguage = "en"
defaultcontentlanguageinsubdir = false
disablealiases = false
disablefastrender = false
disablelivereload = false
disablepathtolower = false
enableemoji = false
enablegitinfo = false
enableinlineshortcodes = false
enablemissingtranslationplaceholders = false
environment = "production"
footnoteanchorprefix = ""
footnotereturnlinkcontents = ""
forcesyncstatic = false
hascjklanguage = false
i18ndir = "i18n"
ignorecache = false
ignorefiles = []
indexes = map[category:categories tag:tags]
languagecode = "en-us"
languagessorted = [en]
layoutdir = "layouts"
menus = map[main:[map[name:About url:/about/ weight:-110] map[name:Tags url:/tags weight:-120] map[name:Categories url:/categories weight:-130]]]
metadataformat = "toml"
multilingual = false
newcontenteditor = ""
paginate = 10
paginatepath = "page"
params = map[logo:map[width:50 alt:Logo url:logo.png height:50] description:]
permalinks = map[post:/:slug/ page:/:slug/]
pluralizelisttitles = true
preservetaxonomynames = true
publishdir = "public"
pygmentscodefences = true
pygmentscodefencesguesssyntax = false
pygmentsoptions = ""
pygmentsstyle = "native"
pygmentsuseclasses = false
pygmentsuseclassic = false
relativeurls = false
removepathaccents = false
resourcedir = "resources"
rsslimit = 10
sectionpagesmenu = ""
sitemap = {ChangeFreq: Priority:-1 Filename:sitemap.xml}
staticdir = "static"
summarylength = 70
taxonomies = map[category:categories tag:tags]
theme = "hugo-natrium-theme"
themesdir = "themes"
timeout = 10000
title = "Natrium Theme"
titlecasestyle = "AP"
uglyurls = false
verbose = false
watch = false
workingdir = "/home/mnmt/git/hugo-blog"

Steps to reproduce

cd $(mktemp -d)
hugo new site .
git clone [email protected]:mobybit/hugo-natrium-theme.git themes/hugo-natrium-theme

Edit the config.toml to refer to the theme, then hugo serve

Add support for IE

IE doesn't render this theme correctly: the content isn't centered. Suggestions are welcome.

Optimize blockqoute

Natrium doesn't display blockquotes correctly: the left border isn't present.

Empty page causes error

I followed the Quick Start guide, and faced this error:
Error: Error building site: failed to render pages: render of "home" failed: "C:\Hugo/Sites\try-hugo\quickstart\themes\natrium\layouts\index.html:6:15": execute of template failed: template: index.html:6:15: executing "index.html" at <.Paginate>: error calling Paginate: cannot convert type page.PagesGroup to Pages

A little digging took me to this issue and the problem diagnosed according to this comment was:
The issue was to do with pages being empty as its a new site and those pages were being fed into PageGroups which always errored.

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.