{{- $t := replace (replace .Name "-" " ") (now.Format "2006 01 02 ") "" -}} {{- $d := replace (replace .Name "-" " ") (printf " %s" $t ) "" -}} {{- $d = replace $d " " "-" | time.Format "2006-01-02Tlala" -}} --- title: "{{ $t }}" date: {{ $d }} ---