{{ $table := .Inner | markdownify }} {{ $old := "" }} {{ $class := "time-no-age" }} {{ $cols := "" }} {{ with .Get "age" }} {{ $class = "time-age" }} {{ $cols = "" }} {{ end }} {{ $new := printf "
%s" $class $cols }} {{ $newTable := replace $table $old $new }} {{ $newTable | safeHTML }}