mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
09e08d0772
**Breaking changes**: 1. Legacy custom style/script files are no longer loaded automatically. 2. Users must migrate custom files to: - `custom.scss` - `override.scss` - `_variables.scss` - `assets/js/custom.js` **Migration guide**: 1. Move `assets/css/_custom.scss` to `assets/scss/custom.scss`. 2. Move `assets/css/_override.scss` to `assets/scss/override.scss`. 3. Keep variables in `assets/scss/_variables.scss`. 4. Move `assets/js/_custom.js` to `assets/js/custom.js`. 5. Rebuild site and verify no deprecation warnings remain.
31 lines
1.4 KiB
HTML
31 lines
1.4 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-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.min.js" "minify" hugo.IsProduction -}}
|
|
{{- if not hugo.IsProduction -}}
|
|
{{- $options = dict "sourceMap" "external" | merge $options -}}
|
|
{{- end -}}
|
|
{{- dict "Source" (resources.Get "js/pages/link.js") "Build" $options "Fingerprint" $fingerprint "Defer" true | dict "Page" . "Data" | partial "store/script.html" -}}
|
|
{{- end -}}
|