From 5a1a09962eb6fce77acecbc8c3d60f6574cd8663 Mon Sep 17 00:00:00 2001 From: nodejh Date: Sun, 28 Feb 2021 16:58:56 +0800 Subject: [PATCH] feat: update example config.yaml --- exampleSite/config.yaml | 56 +++++++++++++++++++---------------------- layouts/404.html | 26 ++++++++++++++----- 2 files changed, 46 insertions(+), 36 deletions(-) diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 736024e..d98eb36 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -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' diff --git a/layouts/404.html b/layouts/404.html index adbf18a..0bb9846 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -2,15 +2,29 @@
-

- 404 - Page Not Found -

-
- The content you're looking for doesn't seem to exist. + {{ with .Site.Params.title404 }} +

{{ . }}

+ {{ else }} +

404 - Page Not Found

+ {{ end }} + + {{ with .Site.Params.subtitle404 }} +
{{ . }}
+ {{ else }} +
The content you're looking for doesn't seem to exist.
+ {{ end }}
-

Read More

+ {{ with .Site.Params.readMore }} +

{{ . }}

+ {{ else }} +

Read More

+ {{ end }} + + + + {{ $pages := .Site.RegularPages }} {{ $paginator := .Paginate ($pages) }} {{ range $paginator.Pages }}