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

github.com/AmazingRise/hugo-theme-diary.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--exampleSite/config.toml4
-rw-r--r--layouts/_default/single.html4
2 files changed, 6 insertions, 2 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index c10a525..a95e7c3 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -1,5 +1,5 @@
baseURL = "http://example.org/"
-DefaultContentLanguage = "en" // Theme's display language, supports: en, fr, zh, zh-hant
+DefaultContentLanguage = "en" # Theme's display language, supports: en, fr, zh, zh-hant
languageCode = "en-us"
title = "A Hugo Site"
copyright = "This is a customized copyright."
@@ -46,4 +46,4 @@ weight = 1
[[menu.main]]
url = "/index.xml"
name = "RSS Feed"
-weight = 4 \ No newline at end of file
+weight = 4
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 7839dd8..78bc079 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -62,7 +62,11 @@
</div>
<div class="post-body-wrapper">
+ {{ if .Params.enableVue }}
<div class="post-body">
+ {{ else }}
+ <div class="post-body" v-pre>
+ {{ end }}
{{.Content}}
{{ if not .Lastmod.IsZero }}
<HR width="100%" id="EOF">