Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zwbetz-gh/minimal-bootstrap-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary Betz <zwbetz@gmail.com>2018-11-02 18:50:44 +0300
committerZachary Betz <zwbetz@gmail.com>2018-11-02 18:50:44 +0300
commit02d9ab694ca00e460839dd47ed194380ca87a763 (patch)
tree205d0ca346d4647c712bf43011cbfdf968dca0f4
parent1477146ea654f843597b904569bdf5ae48d7fc11 (diff)
Do not markdownify page title
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/index.html2
-rw-r--r--layouts/post/single.html2
3 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index e36e02d..0448507 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,6 +1,6 @@
{{- define "main" -}}
-<h1>{{ .Title | markdownify }}</h1>
+<h1>{{ .Title }}</h1>
{{ .Content }}
{{- end -}} \ No newline at end of file
diff --git a/layouts/index.html b/layouts/index.html
index f04f4dc..5fe95e3 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -5,7 +5,7 @@
{{ range where .Pages.ByPublishDate.Reverse "Section" "post" }}
<p>
- <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
+ <a href="{{ .Permalink }}">{{ .Title }}</a>
{{ $customDateFormat := "January 2, 2006" }}
{{ with .Site.Params.customDateFormat }}{{ $customDateFormat = . }}{{ end }}
<small class="text-secondary">{{ .PublishDate.Format $customDateFormat }}</small>
diff --git a/layouts/post/single.html b/layouts/post/single.html
index d488760..d08b676 100644
--- a/layouts/post/single.html
+++ b/layouts/post/single.html
@@ -1,6 +1,6 @@
{{- define "main" -}}
-<h1>{{ .Title | markdownify }}</h1>
+<h1>{{ .Title }}</h1>
<p><small class="text-secondary">
{{ $customDateFormat := "January 2, 2006" }}
{{ with .Site.Params.customDateFormat }}{{ $customDateFormat = . }}{{ end }}