diff options
author | Yurizal Susanto <rizalsagi@gmail.com> | 2018-04-02 18:45:32 +0300 |
---|---|---|
committer | Yurizal Susanto <rizalsagi@gmail.com> | 2018-04-02 18:45:32 +0300 |
commit | 1687233091daa1cbb838b331327b4f3c458e3d34 (patch) | |
tree | a823bf712b4599e95a24bb6fcb037f6c756cfdce | |
parent | bd63ec4b427cff8abaa9cee1e6ed9f0c05d0e5dc (diff) |
Add Related Post feature
-rw-r--r-- | i18n/en.toml | 3 | ||||
-rw-r--r-- | i18n/in.toml | 3 | ||||
-rw-r--r-- | layouts/partials/related.html | 11 | ||||
-rw-r--r-- | static/css/ui.css | 3 |
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 |