mirror of
https://gitlab.com/EternalWanderer/vugo.git
synced 2024-11-28 21:13:51 +01:00
Cleanup
This commit is contained in:
parent
e37d635186
commit
866ddf338e
|
@ -1,29 +1,14 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ .Content -}}
|
{{ .Content -}}
|
||||||
<div class="posts">
|
<div class="posts">
|
||||||
{{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "rambles") (eq (trim $.Site.Params.contentTypeName " ") "")) }}
|
{{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "rambles") (eq (trim $.Site.Params.contentTypeName " ") "")) }} {{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "rambles" }} {{ $PageContext := . }} {{ if .IsHome }} {{ $PageContext = .Site }} {{ end }} {{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }}
|
||||||
{{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "rambles" }}
|
<table class="post-entry-meta"> {{ range first 10 .Paginator.Pages }}
|
||||||
|
|
||||||
{{ $PageContext := . }}
|
|
||||||
{{ if .IsHome }}
|
|
||||||
{{ $PageContext = .Site }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }}
|
|
||||||
<table class="post-entry-meta">
|
|
||||||
{{ range first 5 .Paginator.Pages }}
|
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{{ .RelPermalink }}">{{ .Title | markdownify}}</a></td>
|
<td><a href="{{ .RelPermalink }}">{{ .Title | markdownify}}</a></td>
|
||||||
<td>{{ .Params.Date.Format "2006-01-02" }}</td>
|
<td>{{ .Params.Date.Format "2006-01-02" }}</td>
|
||||||
<td>{{ .Params.Author }}</td>
|
<td>{{ .Params.Author }}</td>
|
||||||
<td > {{ range .Params.tags }} #<a href="{{ (urlize (printf "tags/%s/" .)) | absLangURL }}">{{ . }}</a> {{ end }}</td>
|
<td>{{ range .Params.tags }} #<a href="{{ (urlize (printf "tags/%s/" .)) | absLangURL }}">{{ . }}</a>{{ end }}</td>
|
||||||
<!--
|
</tr> {{ end }}
|
||||||
{{ if and (.Param "readingTime") (eq (.Param "readingTime") true) }}
|
|
||||||
<td class="post-reading-time">- {{ .ReadingTime }} min read ({{ .WordCount }} words)</td>
|
|
||||||
{{ end }}
|
|
||||||
-->
|
|
||||||
</tr>
|
|
||||||
{{ end }}
|
|
||||||
</table>
|
</table>
|
||||||
<p><a class="button" href="/rambles">Read more</a></p>
|
<p><a class="button" href="/rambles">Read more</a></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -15,7 +15,7 @@ html{
|
||||||
background-color: var(--ansi00-hard);
|
background-color: var(--ansi00-hard);
|
||||||
}
|
}
|
||||||
body{ padding: 0; margin: 0; }
|
body{ padding: 0; margin: 0; }
|
||||||
a:hover:active{ transform: translate(0, 3pt) ; background-color: var(--ansi03); }
|
a:hover:active{ background-color: var(--ansi03); }
|
||||||
a{ color: var(--ansi11); }
|
a{ color: var(--ansi11); }
|
||||||
a:hover{ color: var(--ansi00-hard); background-color: var(--ansi11); text-decoration: none;}
|
a:hover{ color: var(--ansi00-hard); background-color: var(--ansi11); text-decoration: none;}
|
||||||
a:hover > code{ color: var(--ansi00-hard); background-color: var(--ansi11); text-decoration: none;}
|
a:hover > code{ color: var(--ansi00-hard); background-color: var(--ansi11); text-decoration: none;}
|
||||||
|
|
Loading…
Reference in a new issue