Chris Connelly
Posted on September 28, 2020
layouts/shortcodes/placehold.html
{{ $width := .Get 0 }}
{{ $height := .Get 1 }}
<img src="https://placehold.it/{{$width}}x{{$height}}" alt="Placehold image"/>
We can now call
{{placehold 250 250}}
we end up with
have you built any cool custom shortcodes?
đź’– đź’Ş đź™… đźš©
Chris Connelly
Posted on September 28, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
undefined How to adpot a WordPress site under the best metrics for Core Web Vitals load speed?
April 12, 2024