style blog list template
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
c8ef01c064
commit
348b26bee6
|
@ -185,3 +185,17 @@ footer .separator {
|
|||
background-position: calc(100% - 20px) ;
|
||||
}
|
||||
}
|
||||
|
||||
.blog-archive {
|
||||
padding: 3rem 3rem;
|
||||
h3 {
|
||||
padding-bottom: 1em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
}
|
||||
|
||||
.blog-listing {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 2fr;
|
||||
gap: 2rem;
|
||||
}
|
|
@ -1,12 +1,19 @@
|
|||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ range .Pages.ByPublishDate.Reverse }}
|
||||
<p>
|
||||
<h3><a class="title" href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
||||
{{/* partial "metadata.html" . */}}
|
||||
<a class="summary" href="{{ .RelPermalink }}">
|
||||
<p>{{ .Summary }}</p>
|
||||
</a>
|
||||
</p>
|
||||
{{ end }}
|
||||
<div class="blog-archive">
|
||||
<h1 class="title is-uppercase is-size-2">BLOG</h1>
|
||||
<hr>
|
||||
{{ range .Pages.ByPublishDate.Reverse }}
|
||||
<div class="blog-listing">
|
||||
<img src="{{ with .Params.image }}{{ . }}{{ end }}" alt="">
|
||||
<div class="text">
|
||||
<h3><a class="title" href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
||||
{{/* partial "metadata.html" . */}}
|
||||
<p class="summary block has-text-weight-light is-size-4">
|
||||
{{ .Summary }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
Reference in New Issue