noticket - updates
This commit is contained in:
11
layouts/shortcodes/img.html
Normal file
11
layouts/shortcodes/img.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{{- $src := .Get "src" }}
|
||||
{{- $sub := .Get "sub" -}}
|
||||
{{- $alt := .Get "alt" -}}
|
||||
<div class="thumbnail-container">
|
||||
<a href="{{ $src }}"><div class="thumbnail">
|
||||
<center><img src="{{ $src }}" alt="{{ $alt }}" title="{{ $alt }}"></center>
|
||||
{{- if $sub -}}
|
||||
<sub>{{ $sub }}</sub>
|
||||
{{- end -}}
|
||||
</div></a>
|
||||
</div>
|
||||
1
layouts/shortcodes/sub.html
Normal file
1
layouts/shortcodes/sub.html
Normal file
@@ -0,0 +1 @@
|
||||
<center><sub><i>{{ .Inner | markdownify }}</i></sub></center>
|
||||
15
layouts/shortcodes/thumb.html
Normal file
15
layouts/shortcodes/thumb.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{{- $src := .Get "src" }}
|
||||
{{- $sub := .Get "sub" -}}
|
||||
{{- $alt := .Get "alt" -}}
|
||||
{{ if not .Parent }}
|
||||
<div class="thumbnail-container">
|
||||
{{ end }}
|
||||
<a href="{{ $src }}"><div class="thumbnail">
|
||||
<center><img src="{{ $src | replaceRE "^(.*static/img)/(.*)$" "$1/w_500/$2" }}" alt="{{ $alt }}" title="{{ $alt }}"></center>
|
||||
{{- if $sub -}}
|
||||
<center><sub>{{ $sub }}</sub></center>
|
||||
{{- end -}}
|
||||
</div></a>
|
||||
{{ if not .Parent }}
|
||||
</div>
|
||||
{{ end }}
|
||||
3
layouts/shortcodes/thumbgallery.html
Normal file
3
layouts/shortcodes/thumbgallery.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<div class="thumbnail-gallery">
|
||||
{{.Inner}}
|
||||
</div>
|
||||
Reference in New Issue
Block a user