Files
FixIt/layouts/home.link.html
T
Cell dd6d320654 refactor!: build with Dart Sass and update Vercel deployment scripts (#746)
* BREAKING CHANGE: refactor with Dart Sass (supplement to #741)

* chore: update .gitignore to include .vercel and .env*.local

* CI: add build script for Hugo site deployment on Vercel

* CI: update build script for Hugo site deployment on Vercel

* refactor: update SCSS layout styles and introduce page-style mixin

* refactor: reorganize SCSS files and improve layout structure

* refactor: rename copy button classes and update related styles
2026-05-10 23:02:54 +08:00

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-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.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 -}}