14 Zeilen
403 B
HTML
14 Zeilen
403 B
HTML
|
<!--
|
||
|
date renderer
|
||
|
Params:
|
||
|
date
|
||
|
Creates a lightSlider on your page, call it with: {{/*
|
||
|
{{% lightslider name="<your-slider-name>" url="<url_or_path-to-your-slider.json" [includejs="true"] %}}
|
||
|
*/}}
|
||
|
Example: {{/*
|
||
|
{{% date "2006-01-02" "2. Jan" %}}
|
||
|
*/}}
|
||
|
-->
|
||
|
{{ $t := .Get 0 | time }}
|
||
|
{{ $format := .Get 1 }}
|
||
|
<time datetime="{{ time.Format "2006-01-02" $t }}">{{ time.Format $format $t }}</time>
|