added first version of theme
This commit is contained in:
8
layouts/shortcodes/figure.html
Normal file
8
layouts/shortcodes/figure.html
Normal file
@@ -0,0 +1,8 @@
|
||||
{{ if .Get "src" }}
|
||||
<figure class="{{ with .Get "position"}}{{ . }}{{ else -}} left {{- end }}" >
|
||||
<img src="{{ .Get "src" | safeURL }}" {{ with .Get "alt" }} alt="{{ . | plainify }}" {{ end }} {{ with .Get "style" }} style="{{ . | safeCSS }}" {{ end }} />
|
||||
{{ if .Get "caption" }}
|
||||
<figcaption class="{{ with .Get "captionPosition"}}{{ . }}{{ else -}} center {{- end }}" {{ with .Get "captionStyle" }} style="{{ . | safeCSS }}" {{ end }}>{{ .Get "caption" }}</figcaption>
|
||||
{{ end }}
|
||||
</figure>
|
||||
{{ end }}
|
3
layouts/shortcodes/image.html
Normal file
3
layouts/shortcodes/image.html
Normal file
@@ -0,0 +1,3 @@
|
||||
{{ if .Get "src" }}
|
||||
<img src="{{ .Get "src" | safeURL }}" {{ with .Get "alt" }} alt="{{ . | plainify }}" {{ end }} class="{{ with .Get "position"}}{{ . }}{{ else -}} left {{- end }}" {{ with .Get "style" }} style="{{ . | safeCSS }}" {{ end }} />
|
||||
{{ end }}
|
11
layouts/shortcodes/linkBlank.html
Normal file
11
layouts/shortcodes/linkBlank.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!-- {{/*
|
||||
Usage: {{< linkBlank "URL" "TITLE" >}}
|
||||
*/}}-->
|
||||
{{ $linkTitle := .Get 1 }}
|
||||
{{ $linkUrl := .Get 0 }}
|
||||
|
||||
{{ if $linkTitle }}
|
||||
<a target="_blank" rel="nofollow" href="{{ $linkUrl | absLangURL }}">{{ $linkTitle | markdownify }} <i class="fa fa-external-link"></i></a>
|
||||
{{ else }}
|
||||
<a target="_blank" rel="nofollow" href="{{ $linkUrl | absLangURL }}">{{ $linkUrl }} <i class="fa fa-external-link"></i></a>
|
||||
{{ end }}
|
Reference in New Issue
Block a user