mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-08 01:22:29 +00:00
Switch themes to minimo
This commit is contained in:
17
themes/minimo/layouts/shortcodes/text.html
Normal file
17
themes/minimo/layouts/shortcodes/text.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<div class='text-shortcode' style='
|
||||
{{- if .IsNamedParams -}}
|
||||
{{- with or ( .Get "s" ) ( .Get "size" ) -}}
|
||||
font-size: {{- . -}}em;
|
||||
{{- end -}}
|
||||
{{- with or ( .Get "c" ) ( .Get "color" ) -}}
|
||||
color: {{- . -}};
|
||||
{{- end -}}
|
||||
{{- else -}}
|
||||
{{- with .Get 0 -}} font-size: {{- . -}}em; {{- end -}}
|
||||
{{- if gt ( len .Params ) 1 -}}
|
||||
{{- with .Get 1 -}} color: {{- . -}}; {{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
'>
|
||||
{{- .Inner | markdownify -}}
|
||||
</div>
|
Reference in New Issue
Block a user