python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Changing Hugo's built-in figure shortcode to add lazy loading to images
In my Hugo-generated website I'm making use of the built-in shortcode figure. Example:
{{< figure src="myImage.svg" width="100%" alt="Some description" >}}
This re...
Steven
Votes: 0
Answers: 2
Image Processing in Hugo
I am using the following code {{< figure src="../img/img.png" title="the image title" >}} to display image on hugo website and it works fine. I found this piece of code from:...
Naresh Chaurasia
Votes: 0
Answers: 2
How to pass markdown parameter to javascript file?
Im using Hugo and Im trying to pass a markdown parameters from md file to JavaScript file.
This is the markdown file
This is my javascript file
Rafael De La Cruz
Votes: 0
Answers: 2
Hugo Template eq Operation Not Functioning as Expected
I have a Hugo shortcode where I am checking the day of the week:
{{ $weekDay := now.Weekday }}
{{ if eq $weekDay "Monday" }}
...display content here...
{{ end }}
However, the $weekDay v...

m2web
Votes: 0
Answers: 1