mirror of
https://gitlab.com/EternalWanderer/vugo.git
synced 2024-11-28 21:13:51 +01:00
Rewrote lists to use tables instead of flexbox
This commit is contained in:
parent
321d3a19f9
commit
0934cae834
|
@ -8,45 +8,25 @@
|
|||
{{ if .IsHome }}
|
||||
{{ $PageContext = .Site }}
|
||||
{{ end }}
|
||||
|
||||
{{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }}
|
||||
|
||||
{{ range $paginator.Pages }}
|
||||
<article class="post on-list">
|
||||
<div class="post-meta">
|
||||
{{ if .Params.Date }}
|
||||
<span>
|
||||
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
|
||||
<span> - </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 }}
|
||||
|
||||
{{ with .Params.Author }}
|
||||
<span> - </span>
|
||||
<span class="post-author">{{ . }}</span>
|
||||
{{ end }}
|
||||
|
||||
<div class="posts">
|
||||
<table class="post-meta">
|
||||
{{ range .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>
|
||||
<!--
|
||||
{{ if and (.Param "readingTime") (eq (.Param "readingTime") true) }}
|
||||
<span class="post-reading-time">- {{ .ReadingTime }} min read ({{ .WordCount }} words)</span>
|
||||
<td class="post-reading-time">- {{ .ReadingTime }} min read ({{ .WordCount }} words)</td>
|
||||
{{ end }}
|
||||
|
||||
</span>
|
||||
|
||||
{{ if .Params.tags }}
|
||||
<span class="post-tags">
|
||||
{{ range .Params.tags }}
|
||||
#<a href="{{ (urlize (printf "tags/%s/" .)) | absLangURL }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
</span>
|
||||
-->
|
||||
</tr>
|
||||
{{ end }}
|
||||
</table>
|
||||
</div>
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ partial "pagination.html" . }}
|
||||
{{ partial "stickers.html" . }}
|
||||
</div>
|
||||
|
|
|
@ -4,42 +4,22 @@
|
|||
{{ .Content -}}
|
||||
</article>
|
||||
{{ end }}
|
||||
<div class="posts">
|
||||
<div class="posts">
|
||||
<table class="post-meta">
|
||||
{{ range .Paginator.Pages }}
|
||||
<div class="post-meta">
|
||||
{{ if .Params.Date }}
|
||||
<span>
|
||||
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
|
||||
<span> - </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 }}
|
||||
|
||||
{{ with .Params.Author }}
|
||||
<span> - </span>
|
||||
<span class="post-author">{{ . }}</span>
|
||||
{{ end }}
|
||||
|
||||
<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>
|
||||
<!--
|
||||
{{ if and (.Param "readingTime") (eq (.Param "readingTime") true) }}
|
||||
<span class="post-reading-time">- {{ .ReadingTime }} min read ({{ .WordCount }} words)</span>
|
||||
<td class="post-reading-time">- {{ .ReadingTime }} min read ({{ .WordCount }} words)</td>
|
||||
{{ end }}
|
||||
|
||||
</span>
|
||||
|
||||
{{ if .Params.tags }}
|
||||
<span class="post-tags">
|
||||
{{ range .Params.tags }}
|
||||
#<a href="{{ (urlize (printf "tags/%s/" .)) | absLangURL }}">{{ . }}</a>
|
||||
-->
|
||||
</tr>
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</table>
|
||||
</div>
|
||||
{{ partial "pagination.html" . }}
|
||||
{{ end }}
|
||||
|
|
|
@ -76,10 +76,10 @@ 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;
|
||||
}
|
||||
.post-meta{margin-bottom: .5em; border-bottom: solid 1pt;}
|
||||
.on-list{color: var(--ansi07);}
|
||||
.post-meta{color: var(--ansi07); display:flex; justify-content: space-between; }
|
||||
.post-tags a{text-decoration:none; color:inherit;}
|
||||
table{color: var(--ansi07); margin-bottom: .5em; }
|
||||
.post-meta{ width: 100%; background-color: var(--ansi00); border-radius: 1em; padding:.5em;}
|
||||
.post-meta a{text-decoration: none;}
|
||||
.post-tags a{ color:inherit;}
|
||||
.post-tags a:hover{text-decoration:none; color:var(--ansi15); background:inherit;}
|
||||
.button{padding:.3em;border-radius:.3em;}
|
||||
.pagination__buttons{display:flex; justify-content:center;}
|
||||
|
|
Loading…
Reference in a new issue