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

github.com/nanxiaobei/hugo-paper.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornanxiaobei <nanxiaobei@gmail.com>2022-06-30 20:16:38 +0300
committernanxiaobei <nanxiaobei@gmail.com>2022-06-30 20:16:38 +0300
commit134ef1cc53234fec2dff3f1b3344381941fa291c (patch)
treeccc15e4718dd3491f547bdfa7972b669ae279046
parentcc8bc7df849c5b4cb55db55d56311fd26fd57bf0 (diff)
parentfdfd1b0b4f59d3ab5e9178c1ba88401da193fe01 (diff)
Merge branch 'main' of https://github.com/nanxiaobei/hugo-paper
# Conflicts: # yarn.lock
-rw-r--r--exampleSite/.gitignore1
-rw-r--r--exampleSite/config.toml6
-rw-r--r--i18n/bn.yaml5
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/partials/head.html2
5 files changed, 16 insertions, 0 deletions
diff --git a/exampleSite/.gitignore b/exampleSite/.gitignore
index 62fc17f..66500fd 100644
--- a/exampleSite/.gitignore
+++ b/exampleSite/.gitignore
@@ -27,3 +27,4 @@ _testmain.go
/public
/themes
.DS_Store
+.hugo_build.lock \ No newline at end of file
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index da194ab..428a939 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -20,6 +20,12 @@ title = "Paper"
instagram = 'nan.xiaobei'
# ------------------------------
+# needed to render raw HTML (e.g. <sub>, <sup>, <kbd>, <mark>)
+[markup]
+ [markup.goldmark]
+ [markup.goldmark.renderer]
+ unsafe = true
+
[menu]
[[menu.main]]
diff --git a/i18n/bn.yaml b/i18n/bn.yaml
new file mode 100644
index 0000000..292442d
--- /dev/null
+++ b/i18n/bn.yaml
@@ -0,0 +1,5 @@
+- id: prev_page
+ translation: 'পূর্ববর্তী পাতা'
+
+- id: next_page
+ translation: 'পরবর্তী পাতা'
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index fac5bd9..d1b471e 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -3,7 +3,9 @@
<article class="post-single">
<header class="post-title">
<p>
+ {{ if .Date }}
<time>{{ .Date | time.Format ":date_medium" }}</time>
+ {{ end }}
{{ if or .Params.Author site.Author.name }}
<span>{{ .Params.Author | default site.Author.name }}</span>
{{ end }}
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index b2aaef6..af9acc0 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -61,6 +61,8 @@
<!---->
{{ template "_internal/google_analytics_async.html" . }}
<!---->
+ {{ template "_internal/google_analytics.html" . }}
+ <!---->
{{ template "_internal/google_news.html" . }}
<!---->
{{ template "_internal/opengraph.html" . }}