diff --git a/content/post/markdown-syntax.md b/content/post/markdown-syntax.md index 06990d7..cd779b2 100644 --- a/content/post/markdown-syntax.md +++ b/content/post/markdown-syntax.md @@ -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. diff --git a/layouts/_default/single.html b/layouts/_default/single.html deleted file mode 100644 index 6a96b05..0000000 --- a/layouts/_default/single.html +++ /dev/null @@ -1,42 +0,0 @@ -{{ define "title"}} -{{ .Title }} | {{ .Site.Params.author.name }} -{{ end }} - -{{ define "main" }} -
-

{{ .Title }}

- {{ if .Description}} -

{{.Description}}

- {{ end }} - {{ if .Params.showMetadata | default true }} -
-
- {{ 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 }} -
{{ i18n "published" }}
- {{ $formattedDate := .Date.Format "2006-01-02" }} -
- {{ end }} - {{ if .Site.Params.readingTime | default true }} -
{{ i18n "reading_time" }}
-
{{ i18n "reading_time_desc" .ReadingTime }}
- {{ end }} -
-
- {{ end }} -
- {{ .Content }} -
-
- {{ template "_internal/disqus.html" . }} -
-
-{{ end }}