Preparing Body Object for fetch()
When using fetch() for REST POST, we can easily prepare Body Object by Web API.
When using fetch() for REST POST, we can easily prepare Body Object by Web API.
Since Chrome is bad, we often use Brave to replace Chrome for development. We can still use Brave to preview on WebStorm.
If data is an Object, we can use Object.entries, map and join to convert Object into Query String.
Not only using Hugo’s variables with Go template language, but also Alpine’s directive.
The Go Templates make heavy use of range to iterate over a Map, Array, or Slice.
We can use range to iterate over an array to render HTML.
For site-level custom data, we can store them on the params section of config.json.
We can use .Content page variable to access Markdown content.
We can use relref to get the relative permalink to a page for the href attribute of <a>.
We can use ref to get the absolute permalink to a page for the href attribute of <a>.