feat: add some style

This commit is contained in:
Matthieu Bessat 2022-10-14 20:56:56 +02:00
parent 55bd450438
commit e87f1a4e6b
21 changed files with 291 additions and 96 deletions

View file

@ -1,6 +1,6 @@
{{ define "main" }}
<main class="page-container">
<article>
<article class="article">
<h1>{{ .Title }}</h1>
{{ with .Date }}
@ -9,16 +9,16 @@
{{ if .Params.featured_image }}
{{ $featuredImage := .Resources.GetMatch (.Params.featured_image.src | safeURL) }}
{{ if $featuredImage }}
{{ $featuredImage := $featuredImage.Resize "600x" }}
<figure>
<img alt="" src="{{ $featuredImage.RelPermalink }}" />
{{ with .Params.featured_image.caption }}
<figcaption>{{ . }}</figcaption>
{{ end }}
</figure>
{{ end }}
{{ $featuredImage := .Resources.GetMatch (.Params.featured_image.src | safeURL) }}
{{ if $featuredImage }}
{{ $featuredImage = $featuredImage.Resize "600x" }}
<figure>
<img alt="" src="{{ $featuredImage.RelPermalink }}" />
{{ with .Params.featured_image.caption }}
<figcaption>{{ . }}</figcaption>
{{ end }}
</figure>
{{ end }}
{{ end }}
{{ range .Params.tags }}