migrating from old theme name

This commit is contained in:
2020-05-22 00:23:23 +01:00
parent 3e761a81bc
commit fc10ac84c4
120 changed files with 9019 additions and 16 deletions

View File

@@ -0,0 +1,27 @@
<figure class="figure{{ with .Get "class" }} {{ . }}{{ end }}">
<a href="{{ .Get "src" }}" class="d-block" data-toggle="lightbox" data-gallery="post-gallery">
<img src="{{ .Get "src" }}"
{{- if or (.Get "alt") (.Get "caption") }}
alt="{{ with .Get "alt" }}{{ . }}{{ else }}{{ .Get "caption" | markdownify| plainify }}{{ end }}"
{{- end -}}
{{- with .Get "width" }} width="{{ . }}"{{ end -}}
{{- with .Get "height" }} height="{{ . }}"{{ end -}}
class="figure-img img-fluid"
/> <!-- Closing img tag -->
</a>
{{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}}
<figcaption class="figure-caption text-center">
{{ with (.Get "title") -}}
{{ . }}
{{- end -}}
{{- if or (.Get "caption") (.Get "attr") -}}<p>
{{- .Get "caption" | markdownify -}}
{{- with .Get "attrlink" }}
<a href="{{ . }}">
{{- end -}}
{{- .Get "attr" | markdownify -}}
{{- if .Get "attrlink" }}</a>{{ end }}</p>
{{- end }}
</figcaption>
{{- end }}
</figure>

View File

@@ -0,0 +1,5 @@
{{ $img := $.Page.Resources.GetMatch (.Get 0)}}
<figure>
<img src="{{ $img.RelPermalink }}" alt="(.Get 1)" />
<figcaption>{{.Get 1}}</figcaption>
</figure>