added updated, rawhtml and file shortcodes

master
Kebler Network System Administrator 2022-04-26 19:56:47 -07:00
parent 1ad4d928af
commit 69c9a476a9
4 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,5 @@
{{ $path := "/files/" }}
{{ with $.Site.Params.filespath }} {{ $path := ( . ) }}{{ end }}
{{ $numOfParams := ( len .Params ) }}
{{ if eq $numOfParams 1 }} <a href="{{ $path }}{{ .Get 0 }}">{{ .Get 0 }}</a>{{ end }}
{{ if eq $numOfParams 2 }} <a href="{{ $path }}{{ .Get 0 }}">{{ .Get 1 }}</a> {{ end }}

View File

@ -0,0 +1,2 @@
<!-- raw html -->
{{.Inner}}

View File

@ -0,0 +1,6 @@
<div class="updated">
{{/* {{ now | .Format " Jan 1 " }} */}}
{{ $now := (now) }}
site updated: {{ $now | time.Format ":date_long" }}@{{ $now | time.Format ":time_short" }}</br>
{{ with $.Site.Params.status }} status: {{ . }}{{ end }}</br>
</div>

View File

@ -3,3 +3,4 @@
font-size: 2em;
font-weight: bold;
}