Commit 16872330 authored by Yurizal Susanto's avatar Yurizal Susanto

Add Related Post feature

parent bd63ec4b
......@@ -15,3 +15,6 @@ other = "Home Page"
[usedTheme]
other = "Theme used:"
[seeAlso]
other = "See Also"
......@@ -15,3 +15,6 @@ other = "Situs Utama"
[usedTheme]
other = "Tema digunakan:"
[seeAlso]
other = "Lihat Juga"
{{ $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 }}
......@@ -124,6 +124,9 @@ p { margin-top: 0; }
color: #898989;
margin-bottom: -.2rem;
}
#related h3 {
text-align: left;
}
/* #Links
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment