mirror of
https://gitlab.com/EternalWanderer/vugo.git
synced 2024-11-28 21:13:51 +01:00
Some more fuckery with post listing
This commit is contained in:
parent
f5c6b310c1
commit
04e10eb676
|
@ -10,13 +10,14 @@
|
|||
{{ end }}
|
||||
|
||||
{{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }}
|
||||
<table class="post-meta">
|
||||
{{ range .Paginator.Pages }}
|
||||
<table class="post-entry-meta">
|
||||
{{ range first 5 .Paginator.Pages }}
|
||||
<tr>
|
||||
<td><a href="{{ .RelPermalink }}">{{ .Title | markdownify}}</a></td>
|
||||
<td>{{ .Params.Date.Format "2006-01-02" }}</td>
|
||||
<td>{{ .Params.Author }}</td>
|
||||
<td > {{ range .Params.tags }} #<a href="{{ (urlize (printf "tags/%s/" .)) | absLangURL }}">{{ . }}</a> {{ end }}</td>
|
||||
<td class="post-reading-time">- {{ .ReadingTime }} min read ({{ .WordCount }} words)</td>
|
||||
<!--
|
||||
{{ if and (.Param "readingTime") (eq (.Param "readingTime") true) }}
|
||||
<td class="post-reading-time">- {{ .ReadingTime }} min read ({{ .WordCount }} words)</td>
|
||||
|
|
|
@ -2,12 +2,8 @@
|
|||
{{ if eq .Type $.Site.Params.contentTypeName }}
|
||||
<div class="post-meta">
|
||||
{{ if .Params.Date }}
|
||||
<span>
|
||||
<span class="post-date">
|
||||
{{ .Date.Format "2006-01-02" }}
|
||||
{{ if $.Site.Params.showLastUpdated }}
|
||||
[{{or $.Site.Params.updatedDatePrefix "Updated"}}: {{ .Lastmod.Format "2006-01-02" }}]
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
|
||||
|
|
|
@ -76,12 +76,14 @@ header{text-transform: capitalize; text-align:center;border-bottom:2pt solid; fo
|
|||
-moz-animation: gay 8s ease-in-out infinite;
|
||||
-webkit-animation: gay 8s ease-in-out infinite;
|
||||
}
|
||||
table{ border: 1pt solid; padding:1em; margin:1em 0; }
|
||||
td{ border-bottom: 1pt dashed; }
|
||||
.posts{ overflow-x: auto; }
|
||||
.post-meta{ width: 100%; background-color: var(--ansi00); border-radius: 1em; padding:.5em;}
|
||||
table{color: var(--ansi07); margin-bottom: .5em;}
|
||||
.post-meta a{text-decoration: none;}
|
||||
.post-tags a{ color:inherit;}
|
||||
.post-tags a:hover{text-decoration:none; color:var(--ansi15); background:inherit;}
|
||||
.post-meta{ color: var(--ansi08); border-bottom: 1pt solid var(--ansi15); padding-bottom:.25em; margin-bottom: 1em;}
|
||||
.post-meta a{ color: inherit;}
|
||||
.post-meta a:hover{ color: var(--ansi15); background-color: var(--ansi00-hard);}
|
||||
.post-entry-meta{ width: 100%; background-color: var(--ansi00); padding:.5em;}
|
||||
.post-entry-meta table{color: var(--ansi07); margin-bottom: .5em;}
|
||||
.button{padding:.3em;border-radius:.3em;}
|
||||
.pagination__buttons{display:flex; justify-content:center;}
|
||||
.pagination__buttons .next::after{content:" →";}
|
||||
|
|
Loading…
Reference in a new issue