Compare commits
2 Commits
572caff760
...
331e72fc5f
Author | SHA1 | Date | |
---|---|---|---|
331e72fc5f | |||
c839ee29e7 |
@@ -3,6 +3,11 @@ languageCode = 'en'
|
|||||||
defaultContentLanguage = 'en'
|
defaultContentLanguage = 'en'
|
||||||
theme = "nightfall"
|
theme = "nightfall"
|
||||||
|
|
||||||
|
[markup]
|
||||||
|
[markup.goldmark]
|
||||||
|
[markup.goldmark.renderer]
|
||||||
|
unsafe = true
|
||||||
|
|
||||||
[menu]
|
[menu]
|
||||||
[[menu.header]]
|
[[menu.header]]
|
||||||
name = "posts"
|
name = "posts"
|
||||||
@@ -33,15 +38,21 @@ theme = "nightfall"
|
|||||||
hostname = "gohugo.io"
|
hostname = "gohugo.io"
|
||||||
sitedescription = "Minimal dark theme for Hugo"
|
sitedescription = "Minimal dark theme for Hugo"
|
||||||
|
|
||||||
|
showMetadata = true # Master switch for all metadata display
|
||||||
|
showPublishedDate = true # Show published date on post page
|
||||||
|
published = true
|
||||||
|
showReadingTime = true # Show reading time on post page
|
||||||
|
readingTime = true
|
||||||
|
showTags = true # Show tags on post page
|
||||||
|
showAuthors = true # Show authors on post page
|
||||||
|
showCategories = true # Show categories on post page
|
||||||
|
|
||||||
[params.author]
|
[params.author]
|
||||||
name = "Hugo Nightfall"
|
name = "Hugo Nightfall"
|
||||||
avatar = "/avatar.png"
|
avatar = "/avatar.png"
|
||||||
avatarSize = "size-m"
|
avatarSize = "size-m"
|
||||||
avatarFirst = true
|
avatarFirst = true
|
||||||
|
|
||||||
readingTime = false
|
|
||||||
published = false
|
|
||||||
|
|
||||||
[params.styles]
|
[params.styles]
|
||||||
color = "blue"
|
color = "blue"
|
||||||
|
|
||||||
|
@@ -14,6 +14,13 @@ categories = [
|
|||||||
]
|
]
|
||||||
series = ["Themes Guide"]
|
series = ["Themes Guide"]
|
||||||
aliases = ["migrate-from-jekyl"]
|
aliases = ["migrate-from-jekyl"]
|
||||||
|
|
||||||
|
showMetadata = true # Master switch
|
||||||
|
showPublishedDate = false # Hide published date for this post
|
||||||
|
showReadingTime = false # Hide reading time for this post
|
||||||
|
showTags = false # Show tags
|
||||||
|
showAuthors = true # Hide authors
|
||||||
|
showCategories = false # Show categories
|
||||||
+++
|
+++
|
||||||
|
|
||||||
This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme.
|
This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme.
|
||||||
|
@@ -1,42 +0,0 @@
|
|||||||
{{ define "title"}}
|
|
||||||
{{ .Title }} | {{ .Site.Params.author.name }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ define "main" }}
|
|
||||||
<div class="postWrapper">
|
|
||||||
<h1>{{ .Title }}</h1>
|
|
||||||
{{ if .Description}}
|
|
||||||
<p>{{.Description}}</p>
|
|
||||||
{{ end }}
|
|
||||||
{{ if .Params.showMetadata | default true }}
|
|
||||||
<section class="postMetadata">
|
|
||||||
<dl>
|
|
||||||
{{ with .GetTerms "tags" }}
|
|
||||||
{{ partial "taxonomy/tags.html" . }}
|
|
||||||
{{ end }}
|
|
||||||
{{ with .GetTerms "authors" }}
|
|
||||||
{{ partial "taxonomy/authors.html" . }}
|
|
||||||
{{ end }}
|
|
||||||
{{ with .GetTerms "categories" }}
|
|
||||||
{{ partial "taxonomy/categories.html" . }}
|
|
||||||
{{ end }}
|
|
||||||
{{ if .Site.Params.published | default true }}
|
|
||||||
<dt>{{ i18n "published" }}</dt>
|
|
||||||
{{ $formattedDate := .Date.Format "2006-01-02" }}
|
|
||||||
<dd><time datetime="{{ $formattedDate }}">{{ .Date | time.Format ":date_long" }}</time></dd>
|
|
||||||
{{ end }}
|
|
||||||
{{ if .Site.Params.readingTime | default true }}
|
|
||||||
<dt>{{ i18n "reading_time" }}</dt>
|
|
||||||
<dd>{{ i18n "reading_time_desc" .ReadingTime }}</dd>
|
|
||||||
{{ end }}
|
|
||||||
</dl>
|
|
||||||
</section>
|
|
||||||
{{ end }}
|
|
||||||
<div>
|
|
||||||
{{ .Content }}
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
{{ template "_internal/disqus.html" . }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
Submodule themes/nightfall updated: 2c3d66e276...f8d6b0545d
Reference in New Issue
Block a user