diff --git a/layouts/partials/printsinglebody.html b/layouts/partials/printsinglebody.html index 1d5399b..007034a 100644 --- a/layouts/partials/printsinglebody.html +++ b/layouts/partials/printsinglebody.html @@ -62,7 +62,7 @@ {{ $authors = printf "%s%s" $prefix $authorPage.Title }} {{ end }}
{{ end }} diff --git a/layouts/print/single.html b/layouts/print/single.html index b229327..1468638 100644 --- a/layouts/print/single.html +++ b/layouts/print/single.html @@ -1,58 +1,58 @@ {{- define "singlebody" -}} {{ $cssTemplate := `.css-_rplc_-h2 { - counter-reset: css-_rplc_-h3; -} + counter-reset: css-_rplc_-h3; + } -.css-_rplc_-h3 { - counter-reset: css-_rplc_-h4; -} + .css-_rplc_-h3 { + counter-reset: css-_rplc_-h4; + } -.css-_rplc_-h4 { - counter-reset: css-_rplc_-h5; -} + .css-_rplc_-h4 { + counter-reset: css-_rplc_-h5; + } -.css-_rplc_-h5 { - counter-reset: css-_rplc_-h6; -} + .css-_rplc_-h5 { + counter-reset: css-_rplc_-h6; + } -.css-_rplc_-h2:before { - color: rgba(0, 0, 0, 0.4); - counter-increment: css-_rplc_-h2 1; - content: counter(css-_rplc_-h2) ". "; -} + .css-_rplc_-h2:before { + color: rgba(0, 0, 0, 0.4); + counter-increment: css-_rplc_-h2 1; + content: counter(css-_rplc_-h2) ". "; + } -.css-_rplc_-h3:before { - color: rgba(0, 0, 0, 0.4); - counter-increment: css-_rplc_-h3 1; - content: counter(css-_rplc_-h2) "." counter(css-_rplc_-h3) ". "; -} + .css-_rplc_-h3:before { + color: rgba(0, 0, 0, 0.4); + counter-increment: css-_rplc_-h3 1; + content: counter(css-_rplc_-h2) "." counter(css-_rplc_-h3) ". "; + } -.css-_rplc_-h4:before { - color: rgba(0, 0, 0, 0.4); - counter-increment: css-_rplc_-h4 1; - content: counter(css-_rplc_-h2) "." counter(css-_rplc_-h3) "." counter(css-_rplc_-h4) ". "; -} + .css-_rplc_-h4:before { + color: rgba(0, 0, 0, 0.4); + counter-increment: css-_rplc_-h4 1; + content: counter(css-_rplc_-h2) "." counter(css-_rplc_-h3) "." counter(css-_rplc_-h4) ". "; + } -.css-_rplc_-h5:before { - color: rgba(0, 0, 0, 0.4); - counter-increment: css-_rplc_-h5 1; - content: counter(css-_rplc_-h2) "." counter(css-_rplc_-h3) "." counter(css-_rplc_-h4) "." counter(css-_rplc_-h5) ". "; -} + .css-_rplc_-h5:before { + color: rgba(0, 0, 0, 0.4); + counter-increment: css-_rplc_-h5 1; + content: counter(css-_rplc_-h2) "." counter(css-_rplc_-h3) "." counter(css-_rplc_-h4) "." counter(css-_rplc_-h5) ". "; + } -.css-_rplc_-h6:before { - color: rgba(0, 0, 0, 0.4); - counter-increment: css-_rplc_-h6 1; - content: counter(css-_rplc_-h2) "." counter(css-_rplc_-h3) "." counter(css-_rplc_-h4) "." counter(css-_rplc_-h5) "." + .css-_rplc_-h6:before { + color: rgba(0, 0, 0, 0.4); + counter-increment: css-_rplc_-h6 1; + content: counter(css-_rplc_-h2) "." counter(css-_rplc_-h3) "." counter(css-_rplc_-h4) "." counter(css-_rplc_-h5) "." counter(css-_rplc_-h6) ". "; -} + } -.css-_rplc_-h2.nocount:before, -.css-_rplc_-h3.nocount:before, -.css-_rplc_-h4.nocount:before, -.css-_rplc_-h5.nocount:before, -.css-_rplc_-h6.nocount:before { - content: ""; - counter-increment: none; + .css-_rplc_-h2.nocount:before, + .css-_rplc_-h3.nocount:before, + .css-_rplc_-h4.nocount:before, + .css-_rplc_-h5.nocount:before, + .css-_rplc_-h6.nocount:before { + content: ""; + counter-increment: none; }` }} {{ $cssOutput := "" }} @@ -74,7 +74,10 @@ {{ range $scratch.has_children }}