mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
76f809794f
- Simplify `resources.Get` calls to string paths in script pipeline callers (plugin/script.html handles resources.Get internally) - Refactor js-build.html to use $defaultOptions merge pattern matching style.html's ToCSS handling for better readability - Refactor style.html ToCSS with $defaultOptions merge pattern and automatic targetPath generation from resource name - Remove redundant custom $options dicts for targetPath that match the new default behavior - Update partial docs for script.html and style.html
28 lines
1.2 KiB
HTML
28 lines
1.2 KiB
HTML
{{- define "title" -}}
|
|
{{- T "linkRedirection.title" -}}
|
|
{{- if .Site.Params.withSiteTitle }} {{ .Site.Params.titleDelimiter }} {{ .Site.Title }}{{- end -}}
|
|
{{- end -}}
|
|
|
|
{{- define "content" -}}
|
|
<article class="page" id="content-link">
|
|
<main class="card">
|
|
<h2 class="title">{{ T "linkRedirection.title" }}</h2>
|
|
<p class="message">{{ dict "Title" .Site.Title | T "linkRedirection.message" }}</p>
|
|
<div class="target-wrapper">
|
|
<p class="target">-</p>
|
|
<button type="button" class="copy-icon-btn" aria-label="{{ T "assets.copyToClipboard" }}" disabled>
|
|
{{- dict "Class" "fa-regular fa-clone fa-width-auto" | partial "plugin/icon.html" -}}
|
|
</button>
|
|
</div>
|
|
<div class="actions">
|
|
<button type="button" class="confirm-btn" aria-label="{{ T "linkRedirection.confirm" }}" disabled>{{ T "linkRedirection.confirm" }}</button>
|
|
</div>
|
|
</main>
|
|
</article>
|
|
|
|
{{- /* link redirection page script */ -}}
|
|
{{- $fingerprint := .Site.Store.Get "fingerprint" -}}
|
|
{{- $options := dict "targetPath" "js/pages/link.js" -}}
|
|
{{- dict "Source" "js/pages/link.ts" "Build" $options "Fingerprint" $fingerprint "Defer" true | dict "Page" . "Data" | partial "store/script.html" -}}
|
|
{{- end -}}
|