~bfiedler/website

0e5743b931be2fa05e7795af9268c57f56ed0ec4 — Ben Fiedler 2 years ago 35a475e
layout/post: put tags on top under date
2 files changed, 14 insertions(+), 11 deletions(-)

M assets/style.scss
M layouts/blog/single.html
M assets/style.scss => assets/style.scss +5 -0
@@ 129,6 129,11 @@ time.post-time {
    }
}

.post-metadata-small {
    color: var(--aside-fg-color);
    font-size: 0.9em;
}

.blogpost, .aboutme {
    header {
        margin: 0;

M layouts/blog/single.html => layouts/blog/single.html +9 -11
@@ 4,11 4,18 @@
    <article>
        <header>
            <h1 class="post-title">{{ .Title }}</h1>
            <span class="post-metadata">
            <aside class="post-metadata">
                <time class="post-time" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "2006-01-02" }}</time>
                on <a href="/blog/">this blog</a>
                {{ partial "feed-icon.html" }}
            </span>
            </aside>
            {{- with .Params.Tags -}}
            <aside class="post-metadata-small">
            tags: <ul class="post-tags">
                {{- range . }}<li><a href="/tags/{{ . }}">{{ . }}</a></li>{{- end }}
            </ul>
            </aside>
            {{- end }}
        </header>
        {{ $content := .Content }}
        {{- if in .Params.tags "math" }}


@@ 36,15 43,6 @@
        {{- else }}
        <section>{{ $content }}</section>
        <footer class="post-metadata">
            tags: [
            <ul class="post-tags">
                {{- range .Params.tags }}
                <li>
                    <a href="/tags/{{ . }}">{{ . }}</a>
                </li>
                {{- end }}
            </ul>
            ]
        </footer>
        {{- end -}}
        {{- else }}