Fix: theme and layouts various updates

feature/oscar-theme
Óscar M. Lage 2022-03-01 00:00:19 +01:00
parent d0b2bab3ee
commit 0b28a1ec71
8 changed files with 43 additions and 27 deletions

View File

@ -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)

View File

@ -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

View File

@ -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 }}

View File

@ -1,8 +1,7 @@
{{ if .Paginator.HasPrev }}
<a href="{{ .Paginator.Prev.URL }}" class="left arrow" rel="prev">&#8592;</a>
{{ end }}
<span>{{ .Paginator.PageNumber }}</span>
{{ if .Paginator.HasNext }}
<a href="{{ .Paginator.Next.URL }}" class="right arrow" rel="next">&#8594;</a>
{{ end }}
<span>{{ .Paginator.PageNumber }}</span>

View File

@ -1,7 +1,7 @@
{{- if .PrevPage }}
<a href="{{ .PrevPage.RelPermalink }}" class="left arrow">&#8592;</a>
<a href="{{ .PrevPage.RelPermalink }}" class="left arrow">&#8592; {{ .PrevPage.Title }}</a>
{{- end }}
{{- if .NextPage }}
<a href="{{ .NextPage.RelPermalink }}" class="right arrow">&#8594;</a>
| <a href="{{ .NextPage.RelPermalink }}" class="right arrow">{{ .NextPage.Title }} &#8594;</a>
{{- end }}

View File

@ -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 }}

View File

@ -14,7 +14,6 @@
<div class="pagination">
{{ partial "posts/pagination.html" . }}
<a href="#" class="top">Top</a>
</div>
</main>

View File

@ -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 }}