mirror of https://github.com/artifacthub/blog.git
Merge pull request #1 from mattfarina/fix-layout
Making blog layout consistent
This commit is contained in:
commit
57942428ca
|
|
@ -1,12 +1,11 @@
|
|||
{{ define "main" }}
|
||||
{{ $dateFormat := default "January 2, 2006" .Site.Params.GeekdocDateFormat }}
|
||||
{{ range sort .Paginator.Pages }}
|
||||
<article class="gdoc-markdown gdoc-post">
|
||||
<header>
|
||||
<h1 class="gdoc-post__title">
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
</h1>
|
||||
<div class="gdoc-post__date">{{ .Date.Format $dateFormat }}</div>
|
||||
<div class="gdoc-post__date">{{ partial "byline" . }}</div>
|
||||
</header>
|
||||
<div>
|
||||
{{ .Summary }}
|
||||
|
|
@ -18,4 +17,8 @@
|
|||
</div>
|
||||
</article>
|
||||
{{ end }}
|
||||
|
||||
<nav role="pagination">
|
||||
{{ template "_internal/pagination.html" . }}
|
||||
</nav>
|
||||
{{ end }}
|
||||
|
|
|
|||
|
|
@ -1,14 +1,22 @@
|
|||
{{ define "main" }}
|
||||
<main aria-role="main">
|
||||
<div>
|
||||
<article class="gdoc-markdown">
|
||||
{{ range (.Paginate .Site.RegularPages).Pages }}
|
||||
<h1><a href="{{ .Permalink }}">{{ partial "title" . }}</a></h1>
|
||||
{{ .Summary }}
|
||||
{{ end }}
|
||||
{{ range sort .Paginator.Pages }}
|
||||
<article class="gdoc-markdown gdoc-post">
|
||||
<header>
|
||||
<h1 class="gdoc-post__title">
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
</h1>
|
||||
<div class="gdoc-post__date">{{ partial "byline" . }}</div>
|
||||
</header>
|
||||
<div>
|
||||
{{ .Summary }}
|
||||
{{ if .Truncated }}
|
||||
<a class="gdoc-post__readmore" title="Read full post" href="{{ .RelPermalink }}">
|
||||
Read full post
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
</main>
|
||||
{{ end }}
|
||||
|
||||
<nav role="pagination">
|
||||
{{ template "_internal/pagination.html" . }}
|
||||
|
|
|
|||
|
|
@ -502,7 +502,7 @@ img {
|
|||
color: #0a539a
|
||||
}
|
||||
.gdoc-post__readmore:after {
|
||||
content: "\1f82a"
|
||||
content: "»"
|
||||
}
|
||||
.gdoc-footer {
|
||||
background: #2f333e;
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue