mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
Make all shortcodes render in old hugo "style"
This commit is contained in:
parent
6d1ac48fb5
commit
6b3ae716cf
6 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
{{ $_hugo_config := `{ "version": 1 }` }}
|
||||||
<section class="attachments {{ with .Get "style"}}{{.}}{{ end }}">
|
<section class="attachments {{ with .Get "style"}}{{.}}{{ end }}">
|
||||||
<label>
|
<label>
|
||||||
<i class="fas fa-paperclip" aria-hidden="true"></i>
|
<i class="fas fa-paperclip" aria-hidden="true"></i>
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{{ $_hugo_config := `{ "version": 1 }` }}
|
||||||
<a {{ with .Get "href"}} href="{{.}}" target="_blank" {{ end }} class="btn btn-default">
|
<a {{ with .Get "href"}} href="{{.}}" target="_blank" {{ end }} class="btn btn-default">
|
||||||
{{ $icon := .Get "icon" }}
|
{{ $icon := .Get "icon" }}
|
||||||
{{ $iconposition := .Get "icon-position" }}
|
{{ $iconposition := .Get "icon-position" }}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{{ $_hugo_config := `{ "version": 1 }` }}
|
||||||
{{ $showhidden := .Get "showhidden"}}
|
{{ $showhidden := .Get "showhidden"}}
|
||||||
{{ $style := .Get "style" | default "li" }}
|
{{ $style := .Get "style" | default "li" }}
|
||||||
{{ $depth := .Get "depth" | default 1 }}
|
{{ $depth := .Get "depth" | default 1 }}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{{ $_hugo_config := `{ "version": 1 }` }}
|
||||||
<div class="expand">
|
<div class="expand">
|
||||||
<div class="expand-label" style="cursor: pointer;" onclick="$h = $(this);$h.next('div').slideToggle(100,function () {$h.children('i').attr('class',function () {return $h.next('div').is(':visible') ? 'fas fa-chevron-down' : 'fas fa-chevron-right';});});">
|
<div class="expand-label" style="cursor: pointer;" onclick="$h = $(this);$h.next('div').slideToggle(100,function () {$h.children('i').attr('class',function () {return $h.next('div').is(':visible') ? 'fas fa-chevron-down' : 'fas fa-chevron-right';});});">
|
||||||
<i style="font-size:x-small;" class="fas fa-chevron-right"></i>
|
<i style="font-size:x-small;" class="fas fa-chevron-right"></i>
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
|
{{ $_hugo_config := `{ "version": 1 }` }}
|
||||||
<div class="mermaid" align="{{ if .Get "align" }}{{ .Get "align" }}{{ else }}center{{ end }}">{{ safeHTML .Inner }}</div>
|
<div class="mermaid" align="{{ if .Get "align" }}{{ .Get "align" }}{{ else }}center{{ end }}">{{ safeHTML .Inner }}</div>
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
|
{{ $_hugo_config := `{ "version": 1 }` }}
|
||||||
<div class="notices {{ .Get 0 }}" {{ if len .Params | eq 2 }} id="{{ .Get 1 }}" {{ end }}>{{ .Inner }}</div>
|
<div class="notices {{ .Get 0 }}" {{ if len .Params | eq 2 }} id="{{ .Get 1 }}" {{ end }}>{{ .Inner }}</div>
|
||||||
|
|
Loading…
Reference in a new issue