diff options
author | Christian Segundo | 2024-07-25 02:12:22 +0200 |
---|---|---|
committer | Christian Segundo | 2024-07-28 12:58:19 +0200 |
commit | 15e3dedcee1d0830871ffc692143318a87646101 (patch) | |
tree | 3e15f8a3f5082b7df89d208a4c8189b8ad453998 /_vendor/github.com/adityatelange/hugo-PaperMod/layouts/shortcodes | |
parent | a248abee10bbcda6282982d72788acf689deb7aa (diff) | |
download | check-caps-lock-15e3dedcee1d0830871ffc692143318a87646101.tar.gz |
wip
Diffstat (limited to '_vendor/github.com/adityatelange/hugo-PaperMod/layouts/shortcodes')
6 files changed, 76 insertions, 0 deletions
diff --git a/_vendor/github.com/adityatelange/hugo-PaperMod/layouts/shortcodes/collapse.html b/_vendor/github.com/adityatelange/hugo-PaperMod/layouts/shortcodes/collapse.html new file mode 100644 index 0000000..17d8d3b --- /dev/null +++ b/_vendor/github.com/adityatelange/hugo-PaperMod/layouts/shortcodes/collapse.html @@ -0,0 +1,8 @@ +{{ 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/_vendor/github.com/adityatelange/hugo-PaperMod/layouts/shortcodes/figure.html b/_vendor/github.com/adityatelange/hugo-PaperMod/layouts/shortcodes/figure.html new file mode 100644 index 0000000..8c93eff --- /dev/null +++ b/_vendor/github.com/adityatelange/hugo-PaperMod/layouts/shortcodes/figure.html @@ -0,0 +1,31 @@ +<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/_vendor/github.com/adityatelange/hugo-PaperMod/layouts/shortcodes/inTextImg.html b/_vendor/github.com/adityatelange/hugo-PaperMod/layouts/shortcodes/inTextImg.html new file mode 100644 index 0000000..0239fd6 --- /dev/null +++ b/_vendor/github.com/adityatelange/hugo-PaperMod/layouts/shortcodes/inTextImg.html @@ -0,0 +1,5 @@ +{{- $Img := (.Get "url") }} +{{- $height := (.Get "height") }} +{{- $alt := (.Get "alt") }} + +<img class="in-text" height="{{ $height | default `15` }}" src="{{$Img}}" alt="{{$alt}}"> diff --git a/_vendor/github.com/adityatelange/hugo-PaperMod/layouts/shortcodes/ltr.html b/_vendor/github.com/adityatelange/hugo-PaperMod/layouts/shortcodes/ltr.html new file mode 100644 index 0000000..4ad7682 --- /dev/null +++ b/_vendor/github.com/adityatelange/hugo-PaperMod/layouts/shortcodes/ltr.html @@ -0,0 +1,15 @@ +{{ $.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/_vendor/github.com/adityatelange/hugo-PaperMod/layouts/shortcodes/rawhtml.html b/_vendor/github.com/adityatelange/hugo-PaperMod/layouts/shortcodes/rawhtml.html new file mode 100644 index 0000000..9350c13 --- /dev/null +++ b/_vendor/github.com/adityatelange/hugo-PaperMod/layouts/shortcodes/rawhtml.html @@ -0,0 +1,2 @@ +<!-- raw html --> +{{- .Inner -}}
\ No newline at end of file diff --git a/_vendor/github.com/adityatelange/hugo-PaperMod/layouts/shortcodes/rtl.html b/_vendor/github.com/adityatelange/hugo-PaperMod/layouts/shortcodes/rtl.html new file mode 100644 index 0000000..a69b8ce --- /dev/null +++ b/_vendor/github.com/adityatelange/hugo-PaperMod/layouts/shortcodes/rtl.html @@ -0,0 +1,15 @@ +{{ $.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> |