feat: update example config.yaml

gh-pages
nodejh 4 years ago
parent 650943047d
commit 5a1a09962e

@ -9,21 +9,24 @@ permalinks:
disqusShortname: nodejh
# https://gohugo.io/getting-started/configuration-markup#highlight
# Hugo Configure Markup
# see: https://gohugo.io/getting-started/configuration-markup#highlight
markup:
highlight:
anchorLineNos: false
codeFences: true
guessSyntax: true
hl_Lines: ""
lineAnchors: ""
lineNoStart: 1
lineNos: false
lineNumbersInTable: false
noClasses: true
style: emacs
tabWidth: 4
# Social links in footer, support github,twitter,stackoverflow,facebook
social:
# e.g.
github: 'https://www.github.com/nodejh'
# twitter: 'https://www.twitter.com/nodejh'
# stackoverflow: 'https://stackoverflow.com/users/4518882/nodejh'
# facebook: 'https://www.facebook.com/nodejh'
# Site parameters
params:
# Site Author
author: nodejh
@ -32,28 +35,21 @@ params:
# Site Description, used in HTML meat
description: nodejh's blog
enableRSS: true
enableToc: true
enableDisqus: true
home: ''
about: ''
archive: ''
subscribe: ''
olderPosts: ''
newerPosts: ''
# Optional
home: '' # Default: Home
about: '' # Default: About
archive: '' # Default: Archive
subscribe: '' # Default: Subscribe
olderPosts: '' # Default: Older Posts
newerPosts: '' # Default: Newer Posts
copyright: ''
showLatestPosts: false
title404: ''
subtitle404: ''
iconFont: font-awesome
socialIconStyle: ''
title404: '' # Default: 404 - Page Not Found
subtitle404: '' # Default: The content you're looking for doesn't seem to exist.
readMore: '' # Default: Read More
# Extra links in navigation
links:
# e.g.
# - name: Project
# path: /project
social:
github: 'https://www.github.com/nodejh'
twitter: 'https://www.twitter.com/nodejh'
stackoverflow: 'https://stackoverflow.com/users/4518882/nodejh'
facebook: 'https://www.facebook.com/nodejh'

@ -2,15 +2,29 @@
<div id="page-404">
<div class="text">
<h1>
404 - Page Not Found
</h1>
<div>
The content you're looking for doesn't seem to exist.
{{ with .Site.Params.title404 }}
<h1>{{ . }}</h1>
{{ else }}
<h1>404 - Page Not Found</h1>
{{ end }}
{{ with .Site.Params.subtitle404 }}
<div>{{ . }}</div>
{{ else }}
<div>The content you're looking for doesn't seem to exist.</div>
{{ end }}
</div>
</div>
{{ with .Site.Params.readMore }}
<h2 class="read-more">{{ . }}</h2>
{{ else }}
<h2 class="read-more">Read More</h2>
{{ end }}
{{ $pages := .Site.RegularPages }}
{{ $paginator := .Paginate ($pages) }}
{{ range $paginator.Pages }}

Loading…
Cancel
Save