layout: align article layout with homepage layout
ci/woodpecker/push/woodpecker Pipeline was successful Details

main
Ariadne Conill 2022-08-11 09:13:39 +00:00
parent 53fbfd96f1
commit 1539f13827
3 changed files with 11 additions and 12 deletions

View File

@ -1,17 +1,16 @@
{{ define "main" }}
<article class="h-entry">
<article class="h-entry article">
<a class="u-url" href="{{ .Permalink }}">
<h1 class="p-name">{{ .Title }}</h1>
{{ if .Date }}
<div>
<time class="dt-published" datetime="{{ .Date }}">{{ .Date.Format "Jan 2, 2006" }}</time>
</div>
{{ end }}
</a>
<div class="e-content">
{{ .Content }}
</div>
{{ if .Date }}
<p>
Published on
<a class="u-url" href="{{ .Permalink }}">
<time class="dt-published" datetime="{{ .Date }}">{{ .Date.Format "Jan 2, 2006" }}</time>
</a>
</p>
{{ end }}
</article>
{{ end }}

View File

@ -1,5 +1,5 @@
<section class="article">
<a href="{{ .Permalink }}">
<a class="u-url" href="{{ .Permalink }}">
<h1>{{ .Title }}</h1>
<div>
<span>{{ .Date.Format "Jan 2, 2006" }}</span>

View File

@ -61,7 +61,7 @@ main {
}
}
a {
a, .u-url {
color: #ccf;
text-decoration: none;
}