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>
{{partial "header" .}}
{{partial "banner-item" .}}
{{partial "spritesheet" .}}
<main>
{{partial "metadata" .}}
<article>
{{.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>
<hr>
{{ partial "related" .}}
</main>
{{partial "footer" .}}
{{partial "spritesheet" .}}
</body>
</html>

View file

@ -1,10 +1,10 @@
<section class="metadata">
{{$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>
{{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}}
{{if .Params.updated}}
<br><strong>Updated:</strong> {{.Params.updated | time.Format "Jan 02 2006"}}
@ -13,7 +13,6 @@
</div>
{{if .GetTerms "tags"}}
<div id="tags">
<h2>Tags:</h3>
{{ range (.GetTerms "tags")}}
<a href="{{.Permalink}}" class="tag">

View file

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