First standalone version

This commit is contained in:
Gregory Trolliet 2020-04-28 12:26:34 +02:00
commit 9d22a63950
49 changed files with 1367 additions and 0 deletions

View file

@ -0,0 +1 @@
<abbr title="{{ .Get "title" }}">{{ .Get "text" }}</abbr>

View file

@ -0,0 +1,4 @@
<details><summary>{{ .Get "title" }}</summary>
{{ .Inner }}
</details>

View file

@ -0,0 +1,21 @@
{{ $img := $.Page.Resources.GetMatch (.Get "src")}}
{{ $test := $img.Permalink }}
{{ $name_splitted := split $img.RelPermalink "." }}
{{ $name_base := index $name_splitted 0 }}
<figure {{ with .Get "class" }} class="{{ . }}"{{ end }}>
{{ with .Get "link" }}
<a href="{{ . }}">
{{ end }}
<picture>
<source srcset="{{$img.RelPermalink}}" type="image/jpg">
<img src="{{ $img.RelPermalink }}" alt="{{.Get "alt" }}" />
</picture>
{{ with .Get "link" }}
</a>
{{ end }}
{{ with .Get "title" }}
<figcaption>
<p>{{ . }}</p>
</figcaption>
{{ end }}
</figure>

View file

@ -0,0 +1,18 @@
<blockquote {{ with .Get "class" }}class="{{ . }}"{{ end }}{{ with .Get "url" }} cite="{{ . }}" {{ end }}>
{{ $s := split (trim .Inner "\t \n") "\n\n" }}
{{ if eq ( first 1 $s) ( last 1 $s )}}
<p>{{ .Inner | markdownify }}</p>
{{ else }}
{{ .Inner | markdownify }}
{{ end }}
{{ if .Get "author" }}
<footer>
<cite>
{{ with .Get "url" }}
<a href={{ . }} {{ with $.Get "title"}}title="{{ . }}"{{ end }}>
{{ end }}
{{ .Get "author" | markdownify }}
{{ with .Get "url" }}</a>{{end}}</cite>
</footer>
{{ end }}
</blockquote>

View file

@ -0,0 +1,8 @@
<figure class="tabular {{ with .Get "class"}}{{ . }}{{ end }}">
{{ .Inner | markdownify }}
{{ with .Get "title" }}
<figcaption>
<p>{{ . }}</p>
</figcaption>
{{ end }}
</figure>