I’m trying to copy this style but don’t see how I’m able to stylize the formatted date: <time>{{ .Date.Format "Jan 2 '06" }}</time>
:
And what I’m outputting:
I’m trying to copy this style but don’t see how I’m able to stylize the formatted date: <time>{{ .Date.Format "Jan 2 '06" }}</time>
:
And what I’m outputting:
1 - It is impossible to even guess what you’re doing without seing more code.
2 - style is pure html/css, not hugo.
<time>{{ .Date.Format "Jan 2 '06" }}</time>
is all the code there is what else do you need?, that’s outputting the formatted date this is what it looks like with my current format "“Jan 2 '06"”:
I understand that, how can I (if possible) insert styling elements into dateFormat | Hugo (gohugo.io)? Can I escape characters to add class elements inline with formatting?
I guess this is the best way to do it?
<date>{{ .Date.Format "Mon" }}</date>
<br>
<date>{{ .Date.Format "01" }}</date>
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.