Compare commits

..

3 Commits

Author SHA1 Message Date
Ray Elliott 7e4eec5008 modify see-also heading text 2020-02-18 17:44:24 +00:00
Ray Elliott 9908b8d2ed style the see-also list 2020-02-18 17:44:07 +00:00
Ray Elliott 957a83b3cb center images in .content 2020-02-18 17:31:17 +00:00
2 changed files with 13 additions and 9 deletions

View File

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

View File

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