Fix: theme and layouts various updates
This commit is contained in:
parent
d0b2bab3ee
commit
0b28a1ec71
@ -4,7 +4,18 @@ date: 2021-10-22T10:44:54Z
|
|||||||
draft: false
|
draft: false
|
||||||
---
|
---
|
||||||
|
|
||||||
# About
|
|
||||||
|
|
||||||
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"
|
title: "Archive"
|
||||||
date: 2021-10-22T10:44:54Z
|
date: 2001-10-22T10:44:54Z
|
||||||
draft: false
|
draft: false
|
||||||
|
layout: archive
|
||||||
---
|
---
|
||||||
|
|
||||||
# Archive
|
My custom archive
|
||||||
|
@ -2,15 +2,26 @@
|
|||||||
|
|
||||||
<main class="main wrapper">
|
<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">
|
<div class="posts-container">
|
||||||
{{ range (.Paginate (where .Site.RegularPages "Type" "posts")).Pages }}
|
{{ range (.Paginate (where .Site.RegularPages "Type" "posts")).Pages }}
|
||||||
{{ .Render "summary" }}
|
{{ .Render "summary" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pagination">
|
|
||||||
{{ partial "pagination.html" . }}
|
|
||||||
</div>
|
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
{{ if .Paginator.HasPrev }}
|
{{ if .Paginator.HasPrev }}
|
||||||
<a href="{{ .Paginator.Prev.URL }}" class="left arrow" rel="prev">←</a>
|
<a href="{{ .Paginator.Prev.URL }}" class="left arrow" rel="prev">←</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
<span>{{ .Paginator.PageNumber }}</span>
|
||||||
{{ if .Paginator.HasNext }}
|
{{ if .Paginator.HasNext }}
|
||||||
<a href="{{ .Paginator.Next.URL }}" class="right arrow" rel="next">→</a>
|
<a href="{{ .Paginator.Next.URL }}" class="right arrow" rel="next">→</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<span>{{ .Paginator.PageNumber }}</span>
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
{{- if .PrevPage }}
|
{{- if .PrevPage }}
|
||||||
<a href="{{ .PrevPage.RelPermalink }}" class="left arrow">←</a>
|
<a href="{{ .PrevPage.RelPermalink }}" class="left arrow">← {{ .PrevPage.Title }}</a>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .NextPage }}
|
{{- if .NextPage }}
|
||||||
<a href="{{ .NextPage.RelPermalink }}" class="right arrow">→</a>
|
| <a href="{{ .NextPage.RelPermalink }}" class="right arrow">{{ .NextPage.Title }} →</a>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -1,17 +1,16 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
|
||||||
<main>
|
<main class="main wrapper">
|
||||||
<h1>List: Posts</h1>
|
|
||||||
<div class="catalogue">
|
|
||||||
{{ range (.Paginate .Pages).Pages }}
|
|
||||||
{{ .Render "summary" }}
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<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" . }}
|
{{ partial "pagination.html" . }}
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
|
|
||||||
<div class="pagination">
|
<div class="pagination">
|
||||||
{{ partial "posts/pagination.html" . }}
|
{{ partial "posts/pagination.html" . }}
|
||||||
<a href="#" class="top">Top</a>
|
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
@ -1,16 +1,12 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
|
||||||
<main class="main wrapper">
|
<main class="main wrapper">
|
||||||
<h1>Single: Sections</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
<div class="post">
|
<div class="post">
|
||||||
|
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pagination">
|
|
||||||
<a href="#" class="top">Top</a>
|
|
||||||
</div>
|
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user