mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 23:38:56 +00:00
5322a15ceb
Add `{{/* ... */}}` header comments to 25 partials that had no documentation,
enabling `pnpm gen:docs` to generate their reference docs. Also fix
base/head/index.html leading blank line that prevented parser matching.
Groups covered: base/, feed/, function/, home/, init/, plugin/, single/, store/, (root).
9 lines
253 B
HTML
9 lines
253 B
HTML
{{- /*
|
|
Check if a parsed URL is remote (has both scheme and host).
|
|
|
|
@param {Object} . - A parsed URL object (from urls.Parse)
|
|
@return {Boolean} True if the URL has a non-empty scheme and host
|
|
*/ -}}
|
|
|
|
{{- return and (not (eq .Scheme "")) .Host -}}
|