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 { .see-also {
margin: 3.2rem 0; margin: 3.2rem 0;
h3 { 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 @@
} }
} }
} }
figure { img {
margin: 0;
padding: 0;
> img {
display: block; display: block;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
} }
figure {
margin: 0;
padding: 0;
} }
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>See also in {{ . }}</h3> <h3>More {{ . }} Articles</h3>
<nav> <nav>
<ul> <ul class="see-also-list">
{{ $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 }}