diff options
Diffstat (limited to 'themes/beautifulhugo/layouts/shortcodes')
7 files changed, 0 insertions, 83 deletions
diff --git a/themes/beautifulhugo/layouts/shortcodes/column.html b/themes/beautifulhugo/layouts/shortcodes/column.html deleted file mode 100644 index 5e07dfb..0000000 --- a/themes/beautifulhugo/layouts/shortcodes/column.html +++ /dev/null @@ -1 +0,0 @@ -</div><div class="right"> diff --git a/themes/beautifulhugo/layouts/shortcodes/columns.html b/themes/beautifulhugo/layouts/shortcodes/columns.html deleted file mode 100644 index fd457bc..0000000 --- a/themes/beautifulhugo/layouts/shortcodes/columns.html +++ /dev/null @@ -1 +0,0 @@ -<div class="splitbox"><div class="left"> diff --git a/themes/beautifulhugo/layouts/shortcodes/details.html b/themes/beautifulhugo/layouts/shortcodes/details.html deleted file mode 100644 index 3410075..0000000 --- a/themes/beautifulhugo/layouts/shortcodes/details.html +++ /dev/null @@ -1,3 +0,0 @@ -<details><summary>{{ .Get 0 }}</summary> -{{ .Inner }} -</details> diff --git a/themes/beautifulhugo/layouts/shortcodes/endcolumns.html b/themes/beautifulhugo/layouts/shortcodes/endcolumns.html deleted file mode 100644 index 13c2f9f..0000000 --- a/themes/beautifulhugo/layouts/shortcodes/endcolumns.html +++ /dev/null @@ -1 +0,0 @@ -</div><div style="clear:both"></div></div> diff --git a/themes/beautifulhugo/layouts/shortcodes/figure.html b/themes/beautifulhugo/layouts/shortcodes/figure.html deleted file mode 100644 index edf542a..0000000 --- a/themes/beautifulhugo/layouts/shortcodes/figure.html +++ /dev/null @@ -1,29 +0,0 @@ -<!-- -Put this file in /layouts/shortcodes/figure.html -NB this overrides Hugo's built-in "figure" shortcode but is backwards compatible -Documentation and licence at https://github.com/liwenyip/hugo-easy-gallery/ ---> -<!-- count how many times we've called this shortcode; load the css if it's the first time --> -{{- if not ($.Page.Scratch.Get "figurecount") }}<link rel="stylesheet" href="/css/hugo-easy-gallery.css" />{{ end }} -{{- $.Page.Scratch.Add "figurecount" 1 -}} -<!-- use either src or link-thumb for thumbnail image --> -{{- $thumb := .Get "src" | default (printf "%s." (.Get "thumb") | replace (.Get "link") ".") }} -<div class="box{{ with .Get "caption-position" }} fancy-figure caption-position-{{.}}{{end}}{{ with .Get "caption-effect" }} caption-effect-{{.}}{{end}}" {{ with .Get "width" }}style="max-width:{{.}}"{{end}}> - <figure {{ with .Get "class" }}class="{{.}}"{{ end }} itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject"> - <div class="img"{{ if .Parent }} style="background-image: url('{{ print .Site.BaseURL $thumb }}');"{{ end }}{{ with .Get "size" }} data-size="{{.}}"{{ end }}> - <img itemprop="thumbnail" src="{{ $thumb }}" {{ with .Get "alt" | default (.Get "caption") | default $thumb }}alt="{{.}}"{{ end }}/><!-- <img> hidden if in .gallery --> - </div> - {{ with .Get "link" | default (.Get "src") }}<a href="{{.}}" itemprop="contentUrl"></a>{{ end }} - {{- if or (or (.Get "title") (.Get "caption")) (.Get "attr")}} - <figcaption> - {{- with .Get "title" }}<h4>{{.}}</h4>{{ end }} - {{- if or (.Get "caption") (.Get "attr")}} - <p> - {{- .Get "caption" -}} - {{- with .Get "attrlink"}}<a href="{{.}}">{{ .Get "attr" }}</a>{{ else }}{{ .Get "attr"}}{{ end -}} - </p> - {{- end }} - </figcaption> - {{- end }} - </figure> -</div> diff --git a/themes/beautifulhugo/layouts/shortcodes/gallery.html b/themes/beautifulhugo/layouts/shortcodes/gallery.html deleted file mode 100644 index aac2ace..0000000 --- a/themes/beautifulhugo/layouts/shortcodes/gallery.html +++ /dev/null @@ -1,41 +0,0 @@ -<!-- -Put this file in /layouts/shortcodes/gallery.html -Documentation and licence at https://github.com/liwenyip/hugo-easy-gallery/ ---> -<!-- count how many times we've called this shortcode; load the css if it's the first time --> -{{- if not ($.Page.Scratch.Get "figurecount") }}<link rel="stylesheet" href="/css/hugo-easy-gallery.css" />{{ end }} -{{- $.Page.Scratch.Add "figurecount" 1 }} -{{ $baseURL := .Site.BaseURL }} -<div class="gallery caption-position-{{ with .Get "caption-position" | default "bottom" }}{{.}}{{end}} caption-effect-{{ with .Get "caption-effect" | default "slide" }}{{.}}{{end}} hover-effect-{{ with .Get "hover-effect" | default "zoom" }}{{.}}{{end}} {{ if ne (.Get "hover-transition") "none" }}hover-transition{{end}}" itemscope itemtype="http://schema.org/ImageGallery"> - {{- with (.Get "dir") -}} - <!-- If a directory was specified, generate figures for all of the images in the directory --> - {{- $files := readDir (print "/static/" .) }} - {{- range $files -}} - <!-- skip files that aren't images, or that inlcude the thumb suffix in their name --> - {{- $thumbext := $.Get "thumb" | default "-thumb" }} - {{- $isthumb := .Name | findRE ($thumbext | printf "%s\\.") }}<!-- is the current file a thumbnail image? --> - {{- $isimg := lower .Name | findRE "\\.(gif|jpg|jpeg|tiff|png|bmp)" }}<!-- is the current file an image? --> - {{- if and $isimg (not $isthumb) }} - {{- $caption := .Name | replaceRE "\\..*" "" | humanize }}<!-- humanized filename without extension --> - {{- $linkURL := print $baseURL ($.Get "dir") "/" .Name | absURL }}<!-- absolute URL to hi-res image --> - {{- $thumb := .Name | replaceRE "(\\.)" ($thumbext | printf "%s.") }}<!-- filename of thumbnail image --> - {{- $thumbexists := where $files "Name" $thumb }}<!-- does a thumbnail image exist? --> - {{- $thumbURL := print $baseURL ($.Get "dir") "/" $thumb | absURL }}<!-- absolute URL to thumbnail image --> - <div class="box"> - <figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject"> - <div class="img" style="background-image: url('{{ if $thumbexists }}{{ $thumbURL }}{{ else }}{{ $linkURL }}{{ end }}');" > - <img itemprop="thumbnail" src="{{ if $thumbexists }}{{ $thumbURL }}{{ else }}{{ $linkURL }}{{ end }}" alt="{{ $caption }}" /><!-- <img> hidden if in .gallery --> - </div> - <figcaption> - <p>{{ $caption }}</p> - </figcaption> - <a href="{{ $linkURL }}" itemprop="contentUrl"></a><!-- put <a> last so it is stacked on top --> - </figure> - </div> - {{- end }} - {{- end }} - {{- else -}} - <!-- If no directory was specified, include any figure shortcodes called within the gallery --> - {{ .Inner }} - {{- end }} -</div> diff --git a/themes/beautifulhugo/layouts/shortcodes/mermaid.html b/themes/beautifulhugo/layouts/shortcodes/mermaid.html deleted file mode 100644 index 6832cf1..0000000 --- a/themes/beautifulhugo/layouts/shortcodes/mermaid.html +++ /dev/null @@ -1,7 +0,0 @@ -<link href="{{"css/mermaid.css" | relURL}}" type="text/css" rel="stylesheet"/> -<script defer src="{{"js/mermaid.js" | relURL}}"> - mermaid.initialize({startOnLoad:true}); -</script> -<div class="mermaid" align="{{ if .Get "align" }}{{ .Get "align" }}{{ else }}center{{ end }}" > - {{ safeHTML .Inner }} -</div> |