diff options
| author | Nantha Sorubakanthan <nantha@mielota.com> | 2025-09-21 17:32:32 +0200 |
|---|---|---|
| committer | Nantha Sorubakanthan <nantha@mielota.com> | 2025-09-21 17:32:32 +0200 |
| commit | df3d7d5734855f72b72bdb18bbf9e3599dec0156 (patch) | |
| tree | eb7111173c5bb3660505ea565e0f7e79d9c04274 /layouts/partials | |
first commit
Diffstat (limited to 'layouts/partials')
| -rw-r--r-- | layouts/partials/buttons.html | 13 | ||||
| -rw-r--r-- | layouts/partials/footer.html | 17 | ||||
| -rw-r--r-- | layouts/partials/head.html | 23 | ||||
| -rw-r--r-- | layouts/partials/header.html | 3 |
4 files changed, 56 insertions, 0 deletions
diff --git a/layouts/partials/buttons.html b/layouts/partials/buttons.html new file mode 100644 index 0000000..7eab99d --- /dev/null +++ b/layouts/partials/buttons.html @@ -0,0 +1,13 @@ +<div style="text-align: center;"> + <a href="/"><img src="/favicon.ico" alt="Logo de mon site" + title="Page Web de Mielota" width="37" height="37"></a> + <a href="/index.xml"><img src="/assets/rss.png" alt="Rss Feed logo" + title="Rss Feed"></a> + <a href="/banporn/"><img src="/assets/banporn.png" alt="BAN PORN" + title="BAN PORN"></a> + <a href="https://codeberg.org/mielota"><img src="/assets/codeberg.png" alt="Codeberg logo" + title="Codeberg"></a> + <a href="https://github.com/mielota"><img src="/assets/github.png" alt="GitHub logo" + title="GitHub"></a> + +</div> diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..18bc220 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,17 @@ +{{- $isregular := (in .Site.RegularPages .Page) -}} + +{{- if $isregular }} +{{- $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} +{{ if .IsHome }}{{ else }} +<div class="finaline"> + <p class="no-print"><a href="{{ path.Dir .Path }}">Revenir à l'accueil</a></p>{{ end }} + <time datetime="{{ $dateMachine }}">{{ .Date.Format "02/01/2006" }}</time> +</div> +{{- end -}} + +<hr> +<nav> + {{- $title := .Title -}} + <p> + {{ partial "buttons.html" . }} +</nav> diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..477643d --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,23 @@ +<meta charset="utf-8"> +<meta name="viewport" content="width=device-width"> +{{ with .Params.css }} +<link rel="stylesheet" href="{{ . }}"> +{{- else -}} +<link rel="stylesheet" href="/style.css"> +{{- with .Section }} +<link rel="stylesheet" href="/{{ . }}/{{ . }}.css"> +{{- end }} +{{- end }} +<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ .Title }}{{ end }}</title> +<meta name="author" content="{{ .Site.Params.email }} ({{ .Site.Params.name }})"> +<meta name="description" content="{{- plainify (chomp .Summary) -}}"> +<!-- OpenGraph specification --> +<meta property="og:title" content="{{ if .IsHome }}{{ site.Title }}{{ else }}{{ .Title }}{{ end }}" /> +<meta property="og:description" content="{{- plainify (chomp .Summary) -}}" /> +<meta property="og:url" content="{{ .Permalink}}" /> +{{- $images := .Page.Resources.ByType "image" }} +{{- with index $images 0 }} +{{- $processed := .Resize "600x" }} +{{- $processed := $processed.Crop "512x512" }} +<meta property="og:image" content="{{ $processed.RelPermalink }}" /> +{{- end -}} diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..96f7542 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,3 @@ +<h1>{{ if .IsHome }}{{ site.Title }}</h1>{{ else }}{{ .Title }}</h1> +{{ end -}} +<hr> |
