mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-17 13:25:57 -06:00
Add See also section
This commit is contained in:
parent
ff2e87fd9e
commit
edff1f416d
@ -29,3 +29,6 @@
|
||||
|
||||
[table_of_contents]
|
||||
other = "Table of Contents"
|
||||
|
||||
[see_also]
|
||||
other = "See also"
|
||||
|
@ -29,3 +29,6 @@
|
||||
|
||||
[table_of_contents]
|
||||
other = "Índice"
|
||||
|
||||
[see_also]
|
||||
other = "Véase también"
|
||||
|
@ -24,4 +24,21 @@
|
||||
{{ end }}
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
{{ $related := .Site.RegularPages.Related . | first 5 }}
|
||||
{{ with $related }}
|
||||
<div class="see-also">
|
||||
<h2>{{ i18n "see_also" }}</h2>
|
||||
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<li>
|
||||
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
Loading…
Reference in New Issue
Block a user