clean up a bunch of layouts, especially social-images function

also made even more config.toml parameters optional, will help when finally releasing theme
This commit is contained in:
2020-06-25 10:35:59 -04:00
parent 0a48ce296f
commit f3198e0235
31 changed files with 167 additions and 162 deletions
+2 -2
View File
@@ -12,8 +12,8 @@
{{ block "main" . }}{{ end }}
</div>
{{ partialCached "page/footer" . }}
{{ partial "scripts/_bundle" . }}
{{ partial "scripts/shortcodes" . }}
{{ partial "scripts/_bundle" . -}}
{{ partial "scripts/shortcodes" . -}}
</body>
</html>
+3 -3
View File
@@ -90,7 +90,7 @@
padding-left: 1em;
}
article {
max-width: {{ printf "%d%s" .Site.Params.pageMaxWidth "px" }};
max-width: {{ printf "%d%s" .Site.Params.maxWidth "px" }};
margin: 0 auto;
padding: 0 15px;
line-height: 1.75;
@@ -147,7 +147,7 @@
text-decoration: none;
}
nav {
max-width: {{ printf "%d%s" .Site.Params.pageMaxWidth "px" }};
max-width: {{ printf "%d%s" .Site.Params.maxWidth "px" }};
margin: 0 auto;
padding: 0 15px;
display: flex;
@@ -198,7 +198,7 @@
}
footer div.row {
width: 100%;
max-width: {{ printf "%d%s" .Site.Params.pageMaxWidth "px" }};
max-width: {{ printf "%d%s" .Site.Params.maxWidth "px" }};
margin: 0 auto;
display: flex;
justify-content: space-between;
+1 -1
View File
@@ -2,7 +2,7 @@
<main id="single">
<article>
<div id="meta">
<a class="no-underline" href="{{ .Permalink }}" title="{{ .Date.Format "Mon, Jan 2 2006 3:04:05 PM MST" }}">{{ .Date.Format "January 2, 2006" }}</a>{{ with .Site.Params.github }}<span class="dash"></span><a class="no-underline" href="https://github.com/{{ . }}/blob/main/content/{{ $.File.Path }}" title="Edit this post on GitHub" target="_blank" rel="noopener">Improve This Post</a>{{ end }}
<a class="no-underline" href="{{ .Permalink }}" title="{{ .Date.Format "Mon, Jan 2 2006 3:04:05 PM MST" }}">{{ .Date.Format "January 2, 2006" }}</a>{{ with .Site.Params.githubRepo }}<span class="dash"></span><a class="no-underline" href="https://github.com/{{ . }}/blob/main/content/{{ $.File.Path }}" title="Edit this post on GitHub" target="_blank" rel="noopener">Improve This Post</a>{{ end }}
</div>
<h1 id="title"><a class="no-underline" href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>