move metadata to start

This commit is contained in:
Gabriel 2023-07-01 04:53:37 -04:00
parent 1ef824a437
commit 2bec07f636
3 changed files with 8 additions and 20 deletions

View file

@ -6,22 +6,15 @@
<body> <body>
{{partial "header" .}} {{partial "header" .}}
{{partial "banner-item" .}} {{partial "banner-item" .}}
{{partial "spritesheet" .}}
<main> <main>
{{partial "metadata" .}}
<article> <article>
{{.Content}} {{.Content}}
{{ if .Params.author}}
{{end}}
<hr>
{{$author := index .Site.Data.details.staff (.Params.author | default "default")}}
{{partial "metadata" .}}
{{if $author}}
<p>Thoughts or questions? <a href="mailto:{{$author.email}}?RE:subject={{.Title}}">Reply to this post</a></p>
{{end}}
</article> </article>
<hr>
{{ partial "related" .}} {{ partial "related" .}}
</main> </main>
{{partial "footer" .}} {{partial "footer" .}}
{{partial "spritesheet" .}}
</body> </body>
</html> </html>

View file

@ -1,10 +1,10 @@
<section class="metadata"> <section class="metadata">
{{$author := index .Site.Data.details.staff (.Params.author | default "default")}} {{$author := index .Site.Data.details.staff (.Params.author | default "default")}}
<div><img src="{{$author.image}}" style="max-width:64px;border-radius:64px;"> <div><a href="{{$author.url}}"><img src="{{$author.image}}" style="max-width:64px;border-radius:64px;"></a>
<h2>{{$author.name}}</h2> <h2>{{$author.name}}</h2>
{{if .Date }} {{if .Date }}
<p><strong>Published:</strong> {{.Date | time.Format "Jan 02 2006"}} <p style="width:100%;"><strong>Published:</strong> {{.Date | time.Format "Jan 02 2006"}}
{{end}} {{end}}
{{if .Params.updated}} {{if .Params.updated}}
<br><strong>Updated:</strong> {{.Params.updated | time.Format "Jan 02 2006"}} <br><strong>Updated:</strong> {{.Params.updated | time.Format "Jan 02 2006"}}
@ -13,7 +13,6 @@
</div> </div>
{{if .GetTerms "tags"}} {{if .GetTerms "tags"}}
<div id="tags"> <div id="tags">
<h2>Tags:</h3>
{{ range (.GetTerms "tags")}} {{ range (.GetTerms "tags")}}
<a href="{{.Permalink}}" class="tag"> <a href="{{.Permalink}}" class="tag">

View file

@ -168,7 +168,7 @@ audio {
.metadata>* { .metadata>* {
margin: 1rem; margin: 1rem;
display: flex; display: flex;
flex-direction: column; flex-direction: row;
flex-wrap: wrap; flex-wrap: wrap;
align-items: center; align-items: center;
align-items: center; align-items: center;
@ -225,7 +225,7 @@ article {
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
font-family: Verdana, Geneva, Tahoma, sans-serif; font-family: Verdana, Geneva, Tahoma, sans-serif;
width: 60rem; width: 70rem;
font-size:25px; font-size:25px;
line-height:34px; line-height:34px;
max-width:90vw; max-width:90vw;
@ -719,16 +719,12 @@ article a[href^="https"]:where(:not([href*="{{.Site.BaseURL}}"]))::after {conten
} }
#tags a { #tags a {
margin: 5px; margin: 5px;
padding:2px;
border-radius: 3px; border-radius: 3px;
font-size:16px; font-size:16px;
font-weight: bolder; font-weight: bolder;
display:flex; display:flex;
flex-direction: row; flex-direction: row;
border:2px solid var(--theme-accent);
align-items: center; align-items: center;
background-color: var(--theme-accent);
color: var(--theme-color-primary);
border-radius:25px; border-radius:25px;
padding:5px; padding:0px;
} }