mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 23:38:56 +00:00
🚚 Feat: the type: offline in front matter is deprecated. use layout: offline instead
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
{{- /* TODO remove this template */ -}}
|
||||
{{- warnf "The `type:offline` in front matter is deprecated. Use `layout:offline` instead.\n" -}}
|
||||
{{- warnf "Front matter 参数 `type:offline` 已弃用。请改用 `layout:offline`。" -}}
|
||||
{{- define "title" -}}
|
||||
{{- T "offlineTitle" }} - {{ .Site.Title -}}
|
||||
{{- end -}}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
{{- define "title" -}}
|
||||
{{- T "offlineTitle" }} - {{ .Site.Title -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "content" -}}
|
||||
<article class="page" id="content-offline">
|
||||
<div class="header">
|
||||
<h1 class="offline-title animate__animated animate__pulse animate__faster">{{- T "offlineTitle" -}}</h1>
|
||||
<p class="offline-subtitle animate__animated animate__headShake">
|
||||
<i class="fa-stack fa-xs" aria-hidden="true">
|
||||
<i class="fa-solid fa-wifi fa-stack-1x" aria-hidden="true"></i>
|
||||
<i class="fa-solid fa-ban fa-stack-2x" aria-hidden="true"></i>
|
||||
</i>
|
||||
<span>ERROR_INTERNET_DISCONNECTED</span>
|
||||
</p>
|
||||
</div>
|
||||
<p class="error-text">{{- T "offlineText" -}}</p>
|
||||
</article>
|
||||
{{- end -}}
|
||||
Reference in New Issue
Block a user