Compare commits

..

2 Commits

4 changed files with 22 additions and 46 deletions

View File

@@ -3,6 +3,11 @@ languageCode = 'en'
defaultContentLanguage = 'en'
theme = "nightfall"
[markup]
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true
[menu]
[[menu.header]]
name = "posts"
@@ -33,15 +38,21 @@ theme = "nightfall"
hostname = "gohugo.io"
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]
name = "Hugo Nightfall"
avatar = "/avatar.png"
avatarSize = "size-m"
avatarFirst = true
readingTime = false
published = false
[params.styles]
color = "blue"

View File

@@ -14,6 +14,13 @@ categories = [
]
series = ["Themes Guide"]
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.

View File

@@ -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 }}