diff options
Diffstat (limited to 'themes/PaperMod/layouts/shortcodes')
-rw-r--r-- | themes/PaperMod/layouts/shortcodes/collapse.html | 8 | ||||
-rw-r--r-- | themes/PaperMod/layouts/shortcodes/figure.html | 31 | ||||
-rw-r--r-- | themes/PaperMod/layouts/shortcodes/inTextImg.html | 5 | ||||
-rw-r--r-- | themes/PaperMod/layouts/shortcodes/ltr.html | 15 | ||||
-rw-r--r-- | themes/PaperMod/layouts/shortcodes/rawhtml.html | 2 | ||||
-rw-r--r-- | themes/PaperMod/layouts/shortcodes/rtl.html | 15 |
6 files changed, 0 insertions, 76 deletions
diff --git a/themes/PaperMod/layouts/shortcodes/collapse.html b/themes/PaperMod/layouts/shortcodes/collapse.html deleted file mode 100644 index 17d8d3b..0000000 --- a/themes/PaperMod/layouts/shortcodes/collapse.html +++ /dev/null @@ -1,8 +0,0 @@ -{{ if .Get "summary" }} -{{ else }} -{{ warnf "missing value for param 'summary': %s" .Position }} -{{ end }} -<p><details {{ if (eq (.Get "openByDefault") true) }} open=true {{ end }}> - <summary markdown="span">{{ .Get "summary" | markdownify }}</summary> - {{ .Inner | markdownify }} -</details></p> diff --git a/themes/PaperMod/layouts/shortcodes/figure.html b/themes/PaperMod/layouts/shortcodes/figure.html deleted file mode 100644 index 8c93eff..0000000 --- a/themes/PaperMod/layouts/shortcodes/figure.html +++ /dev/null @@ -1,31 +0,0 @@ -<figure{{ if or (.Get "class") (eq (.Get "align") "center") }} class=" - {{- if eq (.Get "align") "center" }}align-center {{ end }} - {{- with .Get "class" }}{{ . }}{{- end }}" -{{- end -}}> - {{- if .Get "link" -}} - <a href="{{ .Get "link" }}"{{ with .Get "target" }} target="{{ . }}"{{ end }}{{ with .Get "rel" }} rel="{{ . }}"{{ end }}> - {{- end }} - <img loading="lazy" src="{{ .Get "src" }}{{- if eq (.Get "align") "center" }}#center{{- end }}" - {{- 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 -}} - /> <!-- Closing img tag --> - {{- if .Get "link" }}</a>{{ end -}} - {{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}} - <figcaption> - {{ 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> diff --git a/themes/PaperMod/layouts/shortcodes/inTextImg.html b/themes/PaperMod/layouts/shortcodes/inTextImg.html deleted file mode 100644 index 0239fd6..0000000 --- a/themes/PaperMod/layouts/shortcodes/inTextImg.html +++ /dev/null @@ -1,5 +0,0 @@ -{{- $Img := (.Get "url") }} -{{- $height := (.Get "height") }} -{{- $alt := (.Get "alt") }} - -<img class="in-text" height="{{ $height | default `15` }}" src="{{$Img}}" alt="{{$alt}}"> diff --git a/themes/PaperMod/layouts/shortcodes/ltr.html b/themes/PaperMod/layouts/shortcodes/ltr.html deleted file mode 100644 index 4ad7682..0000000 --- a/themes/PaperMod/layouts/shortcodes/ltr.html +++ /dev/null @@ -1,15 +0,0 @@ -{{ $.Scratch.Set "md" false }} - -{{ if .IsNamedParams }} -{{ $.Scratch.Set "md" (.Get "md") }} -{{ else }} -{{ $.Scratch.Set "md" (.Get 0) }} -{{ end }} - -<div dir="ltr"> - {{ if eq ($.Scratch.Get "md") false }} - {{ .Inner }} - {{ else }} - {{ .Inner | markdownify }} - {{ end }} -</div> diff --git a/themes/PaperMod/layouts/shortcodes/rawhtml.html b/themes/PaperMod/layouts/shortcodes/rawhtml.html deleted file mode 100644 index 9350c13..0000000 --- a/themes/PaperMod/layouts/shortcodes/rawhtml.html +++ /dev/null @@ -1,2 +0,0 @@ -<!-- raw html --> -{{- .Inner -}}
\ No newline at end of file diff --git a/themes/PaperMod/layouts/shortcodes/rtl.html b/themes/PaperMod/layouts/shortcodes/rtl.html deleted file mode 100644 index a69b8ce..0000000 --- a/themes/PaperMod/layouts/shortcodes/rtl.html +++ /dev/null @@ -1,15 +0,0 @@ -{{ $.Scratch.Set "md" false }} - -{{ if .IsNamedParams }} -{{ $.Scratch.Set "md" (.Get "md") }} -{{ else }} -{{ $.Scratch.Set "md" (.Get 0) }} -{{ end }} - -<div dir="rtl"> - {{ if eq ($.Scratch.Get "md") false }} - {{ .Inner }} - {{ else }} - {{ .Inner | markdownify }} - {{ end }} -</div> |