Improve a few things
This commit is contained in:
parent
ba3d0e6b4a
commit
87a89af128
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
title: "Title"
|
|
||||||
date: {{ .Date }}
|
|
||||||
lastmod:
|
|
||||||
tags:
|
|
||||||
- Tag
|
|
||||||
---
|
|
|
@ -1,6 +0,0 @@
|
||||||
---
|
|
||||||
title: "Title"
|
|
||||||
date: {{ .Date }}
|
|
||||||
lastmod:
|
|
||||||
externalURL: "https://link.tld/"
|
|
||||||
---
|
|
|
@ -1,14 +1,14 @@
|
||||||
{{ if .Param "post_navigation" }}
|
{{ if .Param "post_navigation" }}
|
||||||
{{ if or (.PrevInSection) (.NextInSection) }}
|
{{ if or (.PrevInSection) (.NextInSection) }}
|
||||||
<nav class="post-nav">
|
<nav class="post-nav">
|
||||||
{{ if .PrevInSection }}
|
{{ with .PrevInSection }}
|
||||||
<div class="item item--prev">
|
<div class="item item--prev">
|
||||||
<a class="link" href="{{.PrevInSection.RelPermalink}}" rel="prev"><span class="caption">{{ T "post_nav_prev" }}</span>{{ with .PrevInSection.Title }}<p class="post-title">{{ . }}</p>{{ end }}</a>
|
<a class="link" href="{{.RelPermalink}}" rel="prev"><span class="caption">{{ T "post_nav_prev" }}</span>{{ with .Title }}<p class="post-title">{{ . }}</p>{{ end }}</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .NextInSection }}
|
{{ with .NextInSection }}
|
||||||
<div class="item item--next">
|
<div class="item item--next">
|
||||||
<a class="link" href="{{.NextInSection.RelPermalink}}" rel="next"><span class="caption">{{ T "post_nav_next" }}</span>{{ with .NextInSection.Title }}<p class="post-title">{{ . }}</p>{{ end }}</a>
|
<a class="link" href="{{.RelPermalink}}" rel="next"><span class="caption">{{ T "post_nav_next" }}</span>{{ with .Title }}<p class="post-title">{{ . }}</p>{{ end }}</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</nav>
|
</nav>
|
||||||
|
|
|
@ -1,10 +1,15 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<main class="main list h-feed">
|
<main class="main list h-feed">
|
||||||
{{- with .Title }}
|
|
||||||
<header class="main-header">
|
<header class="main-header">
|
||||||
|
{{ with .Title }}
|
||||||
<h1 class="main-title">{{ . }}</h1>
|
<h1 class="main-title">{{ . }}</h1>
|
||||||
|
{{ end }}
|
||||||
|
{{ if not .Params.nometa }}
|
||||||
|
{{ with partialCached "list_meta" . .RelPermalink }}
|
||||||
|
<div class="post-meta">{{ . }}</div>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
</header>
|
</header>
|
||||||
{{- end }}
|
|
||||||
{{- with .Content }}
|
{{- with .Content }}
|
||||||
<div class="main-content">
|
<div class="main-content">
|
||||||
{{ . }}
|
{{ . }}
|
||||||
|
|
|
@ -1,10 +1,15 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<main class="main list">
|
<main class="main list">
|
||||||
{{- with .Title }}
|
|
||||||
<header class="main-header">
|
<header class="main-header">
|
||||||
|
{{ with .Title }}
|
||||||
<h1 class="main-title">{{ . }}</h1>
|
<h1 class="main-title">{{ . }}</h1>
|
||||||
|
{{ end }}
|
||||||
|
{{ if not .Params.nometa }}
|
||||||
|
{{ with partialCached "list_meta" . .RelPermalink }}
|
||||||
|
<div class="post-meta">{{ . }}</div>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
</header>
|
</header>
|
||||||
{{- end }}
|
|
||||||
<div class="tags">
|
<div class="tags">
|
||||||
<ul class="tags-list">
|
<ul class="tags-list">
|
||||||
{{ range (.Paginate ( .Pages.ByTitle ) 100).Pages }}
|
{{ range (.Paginate ( .Pages.ByTitle ) 100).Pages }}
|
||||||
|
|
Reference in New Issue