feat: update example config.yaml

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

@ -9,21 +9,24 @@ permalinks:
disqusShortname: nodejh disqusShortname: nodejh
# https://gohugo.io/getting-started/configuration-markup#highlight # Hugo Configure Markup
# see: https://gohugo.io/getting-started/configuration-markup#highlight
markup: markup:
highlight: highlight:
anchorLineNos: false
codeFences: true
guessSyntax: true guessSyntax: true
hl_Lines: ""
lineAnchors: ""
lineNoStart: 1
lineNos: false
lineNumbersInTable: false
noClasses: true
style: emacs 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: params:
# Site Author # Site Author
author: nodejh author: nodejh
@ -32,28 +35,21 @@ params:
# Site Description, used in HTML meat # Site Description, used in HTML meat
description: nodejh's blog description: nodejh's blog
enableRSS: true enableRSS: true
enableToc: true
enableDisqus: true
# Optional
home: '' home: '' # Default: Home
about: '' about: '' # Default: About
archive: '' archive: '' # Default: Archive
subscribe: '' subscribe: '' # Default: Subscribe
olderPosts: '' olderPosts: '' # Default: Older Posts
newerPosts: '' newerPosts: '' # Default: Newer Posts
copyright: '' copyright: ''
showLatestPosts: false title404: '' # Default: 404 - Page Not Found
title404: '' subtitle404: '' # Default: The content you're looking for doesn't seem to exist.
subtitle404: '' readMore: '' # Default: Read More
iconFont: font-awesome
socialIconStyle: '' # Extra links in navigation
links: links:
# e.g.
# - name: Project # - name: Project
# path: /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 id="page-404">
<div class="text"> <div class="text">
<h1> {{ with .Site.Params.title404 }}
404 - Page Not Found <h1>{{ . }}</h1>
</h1> {{ else }}
<div> <h1>404 - Page Not Found</h1>
The content you're looking for doesn't seem to exist. {{ end }}
{{ with .Site.Params.subtitle404 }}
<div>{{ . }}</div>
{{ else }}
<div>The content you're looking for doesn't seem to exist.</div>
{{ end }}
</div> </div>
</div> </div>
<h2 class="read-more">Read More</h2> {{ with .Site.Params.readMore }}
<h2 class="read-more">{{ . }}</h2>
{{ else }}
<h2 class="read-more">Read More</h2>
{{ end }}
{{ $pages := .Site.RegularPages }} {{ $pages := .Site.RegularPages }}
{{ $paginator := .Paginate ($pages) }} {{ $paginator := .Paginate ($pages) }}
{{ range $paginator.Pages }} {{ range $paginator.Pages }}

Loading…
Cancel
Save