Compare commits

..

No commits in common. "7e4eec50086ff63c7bdf592c6da36d6a4e90855c" and "d86b1d62536c15a352f22ceb6ea5ad9c1377b611" have entirely different histories.

2 changed files with 9 additions and 13 deletions

View File

@ -23,12 +23,7 @@
.see-also { .see-also {
margin: 3.2rem 0; margin: 3.2rem 0;
h3 { h3 {
margin: 3.2rem 0 1.6rem; margin: 3.2rem 0;
}
.see-also-list {
list-style: none;
padding-left: 0;
text-align: center;
} }
} }
} }
@ -52,14 +47,15 @@
} }
} }
} }
img {
display: block;
margin-left: auto;
margin-right: auto;
}
figure { figure {
margin: 0; margin: 0;
padding: 0; padding: 0;
> img {
display: block;
margin-left: auto;
margin-right: auto;
}
} }
figcaption p { figcaption p {
text-align: center; text-align: center;

View File

@ -5,9 +5,9 @@
{{ $name := . | urlize }} {{ $name := . | urlize }}
{{ $series := index $.Site.Taxonomies.series $name }} {{ $series := index $.Site.Taxonomies.series $name }}
{{ if gt (len $series.Pages) 1 }} {{ if gt (len $series.Pages) 1 }}
<h3>More {{ . }} Articles</h3> <h3>See also in {{ . }}</h3>
<nav> <nav>
<ul class="see-also-list"> <ul>
{{ $maxItems := $.Site.Params.maxSeeAlsoItems | default 5 }} {{ $maxItems := $.Site.Params.maxSeeAlsoItems | default 5 }}
{{ range first (add $maxItems 1) $series.Pages }} {{ range first (add $maxItems 1) $series.Pages }}
{{ if ne .RelPermalink $currentPageUrl }} {{ if ne .RelPermalink $currentPageUrl }}