diff --git a/README.md b/README.md index fdc0d96..2600bf5 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,9 @@ theme = "hello-friend-ng" dateformNum = "2006-01-02" dateformNumTime = "2006-01-02 15:04 -0700" + # Set disableReadOtherPosts to true in order to hide the links to other posts. + disableReadOtherPosts = false + # Metadata mostly used in document's head description = "Homepage and blog by Djordje Atlialp" keywords = "homepage, blog, science, informatics, development, programming" diff --git a/exampleSite/config.toml b/exampleSite/config.toml index a722519..88f687e 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -34,9 +34,6 @@ disableSitemap = false disable404 = false disableHugoGeneratorInject = false -# Set disableReadOtherPosts to true in order to hide the links to other posts. -disableReadOtherPosts = false - [permalinks] posts = "/posts/:year/:month/:title/" @@ -48,7 +45,7 @@ disableReadOtherPosts = false [taxonomies] tag = "tags" - category = "" + category = "categories" [params] dateform = "Jan 2, 2006" @@ -66,6 +63,9 @@ disableReadOtherPosts = false # Prefix of link to the git commit detail page. GitInfo must be enabled. # gitUrl = "" + # Set disableReadOtherPosts to true in order to hide the links to other posts. + disableReadOtherPosts = false + # Integrate Javascript files or stylesheets by adding the url to the external assets or by # linking local files with their path relative to the static folder, e.g. "css/styles.css" customCSS = [] @@ -76,9 +76,11 @@ disableReadOtherPosts = false # Directory name of your blog content (default is `content/posts`) contentTypeName = "posts" + # Default theme "light" or "dark" defaultTheme = "dark" themeColor = "#252627" + # Colors for favicons [params.favicon.color] mask = "#252627" diff --git a/layouts/posts/single.html b/layouts/posts/single.html index ba610ed..76152cb 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -15,7 +15,9 @@
-

{{ .Title | markdownify }}

+

+ {{ .Title | markdownify }} +

{{- if .Params.toc }}
@@ -56,7 +58,7 @@ {{- end }} - {{ if and (not .Site.DisableReadOtherPosts) (or .NextInSection .PrevInSection) }} + {{ if and (not $.Site.Params.DisableReadOtherPosts) (or .NextInSection .PrevInSection) }}