Remove inner shortcodes for util repo
This commit is contained in:
parent
d309391ce7
commit
b65d0a8507
10 changed files with 13 additions and 68 deletions
|
@ -8,6 +8,9 @@ jobs:
|
||||||
- npm_config_loglevel: notice
|
- npm_config_loglevel: notice
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
- run:
|
||||||
|
name: Checkout submodules
|
||||||
|
command: git submodule sync && git submodule update --init
|
||||||
- run:
|
- run:
|
||||||
name: Install Hugo
|
name: Install Hugo
|
||||||
command: wget https://github.com/gohugoio/hugo/releases/download/v0.41.2/hugo_0.42.1_Linux-64bit.deb -O /tmp/hugo.deb && sudo dpkg -i /tmp/hugo.deb
|
command: wget https://github.com/gohugoio/hugo/releases/download/v0.41.2/hugo_0.42.1_Linux-64bit.deb -O /tmp/hugo.deb && sudo dpkg -i /tmp/hugo.deb
|
||||||
|
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "themes/utils"]
|
||||||
|
path = themes/utils
|
||||||
|
url = https://github.com/RealOrangeOne/hugo-theme-utils
|
|
@ -47,8 +47,11 @@ pygmentsCodefences: true
|
||||||
pygmentsUseClasses: true
|
pygmentsUseClasses: true
|
||||||
|
|
||||||
imaging:
|
imaging:
|
||||||
resampleFilter: Lanczos
|
resampleFilter: Lanczos
|
||||||
quality: 100
|
quality: 100
|
||||||
|
|
||||||
blackfriday:
|
blackfriday:
|
||||||
smartypants: false
|
smartypants: false
|
||||||
|
|
||||||
|
theme:
|
||||||
|
- utils
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
{{ define "img" }}
|
|
||||||
<img src='{{ .Get "src" }}' class='{{ .Get "class" }}' alt="{{ .Inner | plainify }}" />
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ if .Inner }}
|
|
||||||
<figure>
|
|
||||||
{{ template "img" . }}
|
|
||||||
<figcaption>
|
|
||||||
<small>{{ .Inner }}</small>
|
|
||||||
</figcaption>
|
|
||||||
</figure>
|
|
||||||
{{ else }}
|
|
||||||
{{ template "img" . }}
|
|
||||||
{{ end }}
|
|
|
@ -1,10 +0,0 @@
|
||||||
{{ if .Inner }}
|
|
||||||
<figure>
|
|
||||||
<iframe src='{{ .Get "src" }}' class='{{ .Get "class" }}'></iframe>
|
|
||||||
<figcaption>
|
|
||||||
<small>{{ .Inner }} <a href='{{ .Get "src" }}' class="d-inline-block">View Full</a></small>
|
|
||||||
</figcaption>
|
|
||||||
</figure>
|
|
||||||
{{ else }}
|
|
||||||
<iframe src='{{ .Get "src" }}' class='{{ .Get "class" }}'></iframe>
|
|
||||||
{{ end }}
|
|
|
@ -1,8 +0,0 @@
|
||||||
<figure class="my-3">
|
|
||||||
<div class="mermaid" align="center">
|
|
||||||
{{ safeHTML .Inner }}
|
|
||||||
</div>
|
|
||||||
<figcaption class="text-center">
|
|
||||||
<small>{{ .Get "caption" }}</small>
|
|
||||||
</figcaption>
|
|
||||||
</figure>
|
|
|
@ -1 +0,0 @@
|
||||||
{{ .Page.Param (.Get 0) -}}
|
|
|
@ -1,31 +0,0 @@
|
||||||
{{ $original := .Page.Resources.GetMatch (.Get "src") }}
|
|
||||||
{{ $options := default "1000x" (.Get "options") }}
|
|
||||||
|
|
||||||
{{ .Scratch.Set "image" $original }}
|
|
||||||
|
|
||||||
{{ $command := (default "Resize" (.Get "command")) }}
|
|
||||||
|
|
||||||
{{ if eq $command "Fit"}}
|
|
||||||
{{ .Scratch.Set "image" ($original.Fit $options) }}
|
|
||||||
{{ else if eq $command "Resize"}}
|
|
||||||
{{ .Scratch.Set "image" ($original.Resize $options) }}
|
|
||||||
{{ else if eq $command "Fill"}}
|
|
||||||
{{ .Scratch.Set "image" ($original.Fill $options) }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
|
|
||||||
{{ define "img" }}
|
|
||||||
{{ $image := .Scratch.Get "image" }}
|
|
||||||
<img src='{{ $image.RelPermalink }}' class='{{ .Get "class" }}' alt="{{ .Inner | plainify }}" />
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ if .Inner }}
|
|
||||||
<figure>
|
|
||||||
{{ template "img" . }}
|
|
||||||
<figcaption>
|
|
||||||
<small>{{ .Inner }}</small>
|
|
||||||
</figcaption>
|
|
||||||
</figure>
|
|
||||||
{{ else }}
|
|
||||||
{{ template "img" . }}
|
|
||||||
{{ end }}
|
|
|
@ -1 +0,0 @@
|
||||||
{{ .Page.Site.Param (.Get 0) -}}
|
|
1
themes/utils
Submodule
1
themes/utils
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 535441207acb5213291c5e989a9e28989d590eec
|
Loading…
Reference in a new issue