Add site params content_max_width, metadata_max_width

This commit is contained in:
Will Faught
2022-12-30 23:17:37 -08:00
parent f98f3d1af2
commit 64455aeb92
7 changed files with 35 additions and 31 deletions

View File

@@ -1,8 +1,4 @@
<style>
article > div {
margin-bottom: 1rem;
}
body, html {
height: 100%;
}
@@ -21,6 +17,22 @@ h1:hover .paige-header-link, h2:hover .paige-header-link, h3:hover .paige-header
display: inline;
}
section[class="paige-content"] > div {
margin-bottom: 1rem;
}
{{ with .Site.Params.paige.content_max_width }}
section[class="paige-content"], section[class="paige-toc"] {
max-width: {{ . }};
}
{{ end }}
{{ with .Site.Params.paige.metadata_max_width }}
section[class="paige-metadata"] {
max-width: {{ . }};
}
{{ end }}
.paige-header-link {
display: none;
margin-left: 0.25ch;