Fix: theme and layouts various updates
parent
d0b2bab3ee
commit
0b28a1ec71
|
@ -4,7 +4,18 @@ date: 2021-10-22T10:44:54Z
|
|||
draft: false
|
||||
---
|
||||
|
||||
# About
|
||||
|
||||
About
|
||||
|
||||
## Colophon
|
||||
|
||||
Lorem...
|
||||
|
||||
## Social
|
||||
|
||||
- 🔴 [Youtube Principal](https://www.youtube.com/c/oscarmlage)
|
||||
- 🔴 [Youtube VODs](https://www.youtube.com/channel/UCXOWqIc9Qh8nEBoxBVNnjyQ)
|
||||
- 🟣 [Twitch](https://twitch.tv/oscarmlag)
|
||||
- 🟡 [Github](https://github.com/oscarmlage)
|
||||
- 🔵 [Twitter](https://twitter.com/oscarmlage)
|
||||
- 🟠 [Instagram](https://instagram.com/oscarmlage)
|
||||
- 🟢 [Web](https://oscarmlage.com)
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
---
|
||||
title: "Archive"
|
||||
date: 2021-10-22T10:44:54Z
|
||||
date: 2001-10-22T10:44:54Z
|
||||
draft: false
|
||||
layout: archive
|
||||
---
|
||||
|
||||
# Archive
|
||||
My custom archive
|
||||
|
|
|
@ -2,15 +2,26 @@
|
|||
|
||||
<main class="main wrapper">
|
||||
|
||||
<div class="hero">
|
||||
{{ range (where .Site.Pages "Type" "heros") }}
|
||||
<div {{ if .Params.current }}class="active"{{ end }}>
|
||||
{{ if .Params.link }}<a href="{{ .Params.link }}">{{ end }}
|
||||
{{ if .Params.image }}
|
||||
<img src="heros/{{ .Params.image }}"
|
||||
alt="{{ .Content | plainify | htmlUnescape | truncate 10 }}" />
|
||||
{{ end }}
|
||||
{{ .Content }}
|
||||
{{ if .Params.link }}</a>{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div class="posts-container">
|
||||
{{ range (.Paginate (where .Site.RegularPages "Type" "posts")).Pages }}
|
||||
{{ .Render "summary" }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div class="pagination">
|
||||
{{ partial "pagination.html" . }}
|
||||
</div>
|
||||
</main>
|
||||
|
||||
{{ end }}
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
{{ if .Paginator.HasPrev }}
|
||||
<a href="{{ .Paginator.Prev.URL }}" class="left arrow" rel="prev">←</a>
|
||||
{{ end }}
|
||||
<span>{{ .Paginator.PageNumber }}</span>
|
||||
{{ if .Paginator.HasNext }}
|
||||
<a href="{{ .Paginator.Next.URL }}" class="right arrow" rel="next">→</a>
|
||||
{{ end }}
|
||||
|
||||
<span>{{ .Paginator.PageNumber }}</span>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
{{- if .PrevPage }}
|
||||
<a href="{{ .PrevPage.RelPermalink }}" class="left arrow">←</a>
|
||||
<a href="{{ .PrevPage.RelPermalink }}" class="left arrow">← {{ .PrevPage.Title }}</a>
|
||||
{{- end }}
|
||||
{{- if .NextPage }}
|
||||
<a href="{{ .NextPage.RelPermalink }}" class="right arrow">→</a>
|
||||
| <a href="{{ .NextPage.RelPermalink }}" class="right arrow">{{ .NextPage.Title }} →</a>
|
||||
{{- end }}
|
||||
|
|
|
@ -1,17 +1,16 @@
|
|||
{{ define "main" }}
|
||||
|
||||
<main>
|
||||
<h1>List: Posts</h1>
|
||||
<div class="catalogue">
|
||||
{{ range (.Paginate .Pages).Pages }}
|
||||
{{ .Render "summary" }}
|
||||
{{ end }}
|
||||
</div>
|
||||
<main class="main wrapper">
|
||||
|
||||
<div class="pagination">
|
||||
<div class="posts-container">
|
||||
{{ range (.Paginate (where .Site.RegularPages "Type" "posts")).Pages }}
|
||||
{{ .Render "summary" }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div class="pagination">
|
||||
{{ partial "pagination.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
{{ end }}
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
<div class="pagination">
|
||||
{{ partial "posts/pagination.html" . }}
|
||||
<a href="#" class="top">Top</a>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
|
|
|
@ -1,16 +1,12 @@
|
|||
{{ define "main" }}
|
||||
|
||||
<main class="main wrapper">
|
||||
<h1>Single: Sections</h1>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<div class="post">
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="pagination">
|
||||
<a href="#" class="top">Top</a>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue