mirror of
https://github.com/maikka39/Personal-Website.git
synced 2026-10-02 14:46:25 +00:00
Add breadcrumbs and cleanup writeup ui
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
{{ $paginator := .Paginate .Data.Pages }}
|
||||
|
||||
<main class="posts">
|
||||
<p class="posts-breadcrumbs">{{ partial "breadcrumbs.html" (dict "page" . "end" ">" "min" 1) }}</p>
|
||||
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
||||
{{- if and .Content (not .Paginator.HasPrev) }}
|
||||
@@ -43,6 +45,7 @@
|
||||
{{- end }}
|
||||
|
||||
{{- if .Params.Cover }}
|
||||
<a href="{{ .Permalink }}" class="nostyle">
|
||||
<figure class="post-cover">
|
||||
{{- partial "image.html" (dict "path" .Params.Cover "alt" (.Title | plainify)) }}
|
||||
|
||||
@@ -50,6 +53,7 @@
|
||||
<figcaption class="center">{{ .Params.CoverCaption | markdownify }}</figcaption>
|
||||
{{- end }}
|
||||
</figure>
|
||||
</a>
|
||||
{{- end }}
|
||||
|
||||
<div class="post-content">
|
||||
|
||||
@@ -9,23 +9,29 @@
|
||||
<circle cx="12" cy="12" r="10"></circle>
|
||||
<polyline points="12 6 12 12 16 14"></polyline>
|
||||
</svg>
|
||||
{{ i18n "readingTime" .Page.ReadingTime }}
|
||||
{{- $readingTime := .Page.ReadingTime }}
|
||||
{{- if eq .Type "writeups" }}
|
||||
{{- $readingTime = mul 1.5 .Page.ReadingTime | int }}
|
||||
{{- end }}
|
||||
{{ i18n "readingTime" $readingTime }}
|
||||
|
||||
{{- if .IsTranslated }} | {{ i18n "postAvailable" }}
|
||||
{{- range .Translations }}
|
||||
<a href="{{ .Permalink }}"><span
|
||||
class="flag flag-icon flag-icon-{{ index $.Site.Data.langFlags (.Lang) }} flag-icon-squared"></span></a>
|
||||
{{- end}}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<article>
|
||||
<p class="post-breadcrumbs">{{ partial "breadcrumbs.html" (dict "page" . "end" ">" "min" 1) }}</p>
|
||||
|
||||
<h1 class="post-title">
|
||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||
</h1>
|
||||
{{- with .Params.Subtitle }}
|
||||
<p class="post-subtitle">{{ . | markdownify }}</p>
|
||||
{{- with .Params.Description }}
|
||||
<p class="post-description">{{ . | markdownify }}</p>
|
||||
{{- end }}
|
||||
|
||||
{{- if .Params.Cover }}
|
||||
|
||||
Reference in New Issue
Block a user