added updated, rawhtml and file shortcodes
parent
1ad4d928af
commit
69c9a476a9
|
@ -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 }}
|
|
@ -0,0 +1,2 @@
|
|||
<!-- raw html -->
|
||||
{{.Inner}}
|
|
@ -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>
|
|
@ -3,3 +3,4 @@
|
|||
font-size: 2em;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
Loading…
Reference in New Issue