First standalone version
This commit is contained in:
commit
9d22a63950
49 changed files with 1367 additions and 0 deletions
1
layouts/shortcodes/abbr.html
Normal file
1
layouts/shortcodes/abbr.html
Normal file
|
@ -0,0 +1 @@
|
|||
<abbr title="{{ .Get "title" }}">{{ .Get "text" }}</abbr>
|
4
layouts/shortcodes/details.html
Normal file
4
layouts/shortcodes/details.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
<details><summary>{{ .Get "title" }}</summary>
|
||||
|
||||
{{ .Inner }}
|
||||
</details>
|
21
layouts/shortcodes/img.html
Normal file
21
layouts/shortcodes/img.html
Normal 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>
|
18
layouts/shortcodes/quote.html
Normal file
18
layouts/shortcodes/quote.html
Normal 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>
|
8
layouts/shortcodes/tabular.html
Normal file
8
layouts/shortcodes/tabular.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
<figure class="tabular {{ with .Get "class"}}{{ . }}{{ end }}">
|
||||
{{ .Inner | markdownify }}
|
||||
{{ with .Get "title" }}
|
||||
<figcaption>
|
||||
<p>{{ . }}</p>
|
||||
</figcaption>
|
||||
{{ end }}
|
||||
</figure>
|
Loading…
Add table
Add a link
Reference in a new issue