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

github.com/yursan9/manis-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYurizal Susanto <rizalsagi@gmail.com>2018-04-02 18:45:32 +0300
committerYurizal Susanto <rizalsagi@gmail.com>2018-04-02 18:45:32 +0300
commit1687233091daa1cbb838b331327b4f3c458e3d34 (patch)
treea823bf712b4599e95a24bb6fcb037f6c756cfdce
parentbd63ec4b427cff8abaa9cee1e6ed9f0c05d0e5dc (diff)
Add Related Post feature
-rw-r--r--i18n/en.toml3
-rw-r--r--i18n/in.toml3
-rw-r--r--layouts/partials/related.html11
-rw-r--r--static/css/ui.css3
4 files changed, 20 insertions, 0 deletions
diff --git a/i18n/en.toml b/i18n/en.toml
index 69b2029..5f1e82b 100644
--- a/i18n/en.toml
+++ b/i18n/en.toml
@@ -15,3 +15,6 @@ other = "Home Page"
[usedTheme]
other = "Theme used:"
+
+[seeAlso]
+other = "See Also"
diff --git a/i18n/in.toml b/i18n/in.toml
index fe8faba..c0bcd5b 100644
--- a/i18n/in.toml
+++ b/i18n/in.toml
@@ -15,3 +15,6 @@ other = "Situs Utama"
[usedTheme]
other = "Tema digunakan:"
+
+[seeAlso]
+other = "Lihat Juga"
diff --git a/layouts/partials/related.html b/layouts/partials/related.html
new file mode 100644
index 0000000..3f1677f
--- /dev/null
+++ b/layouts/partials/related.html
@@ -0,0 +1,11 @@
+{{ $related := .Site.RegularPages.Related . | first 3 }}
+{{ with $related }}
+<section id="related">
+ <h4>{{ T "seeAlso" }}</h4>
+ <ul>
+ {{ range . }}
+ <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
+ {{ end }}
+ </ul>
+</section>
+{{ end }}
diff --git a/static/css/ui.css b/static/css/ui.css
index f8b579a..ba3043c 100644
--- a/static/css/ui.css
+++ b/static/css/ui.css
@@ -124,6 +124,9 @@ p { margin-top: 0; }
color: #898989;
margin-bottom: -.2rem;
}
+#related h3 {
+ text-align: left;
+}
/* #Links