From 239d68f94c6250276850fbe95eaa6cdd5c38fb26 Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Sat, 16 Nov 2024 19:32:18 +0300 Subject: Своя тема, полностью всё переделал MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../layouts/shortcodes/bilibili.html | 23 ---------------------- .../layouts/shortcodes/gitlab.html | 4 ---- .../hugo-theme-stack/layouts/shortcodes/quote.html | 15 -------------- .../layouts/shortcodes/tencent.html | 10 ---------- .../hugo-theme-stack/layouts/shortcodes/video.html | 14 ------------- .../layouts/shortcodes/youtube.html | 13 ------------ 6 files changed, 79 deletions(-) delete mode 100644 themes/hugo-theme-stack/layouts/shortcodes/bilibili.html delete mode 100644 themes/hugo-theme-stack/layouts/shortcodes/gitlab.html delete mode 100644 themes/hugo-theme-stack/layouts/shortcodes/quote.html delete mode 100644 themes/hugo-theme-stack/layouts/shortcodes/tencent.html delete mode 100644 themes/hugo-theme-stack/layouts/shortcodes/video.html delete mode 100644 themes/hugo-theme-stack/layouts/shortcodes/youtube.html (limited to 'themes/hugo-theme-stack/layouts/shortcodes') diff --git a/themes/hugo-theme-stack/layouts/shortcodes/bilibili.html b/themes/hugo-theme-stack/layouts/shortcodes/bilibili.html deleted file mode 100644 index cb72e43..0000000 --- a/themes/hugo-theme-stack/layouts/shortcodes/bilibili.html +++ /dev/null @@ -1,23 +0,0 @@ -{{ $vid := (.Get 0) }} -{{ $videopage := default 1 (.Get 1) }} -{{ $basicQuery := querify "page" $videopage "high_quality" 1 "as_wide" 1 }} -{{ $videoQuery := "" }} - -{{ if strings.HasPrefix (lower $vid) "av" }} - {{ $videoQuery = querify "aid" (strings.TrimPrefix "av" (lower $vid)) }} -{{ else if strings.HasPrefix (lower $vid) "bv" }} - {{ $videoQuery = querify "bvid" $vid }} -{{ else }} -

Bilibili 视频av号或BV号错误!请检查视频av号或BV号是否正确

-

当前视频av或BV号:{{ $vid }},视频分P:{{ $videopage }}

-{{ end }} - -
- -
diff --git a/themes/hugo-theme-stack/layouts/shortcodes/gitlab.html b/themes/hugo-theme-stack/layouts/shortcodes/gitlab.html deleted file mode 100644 index b5a16cf..0000000 --- a/themes/hugo-theme-stack/layouts/shortcodes/gitlab.html +++ /dev/null @@ -1,4 +0,0 @@ - \ No newline at end of file diff --git a/themes/hugo-theme-stack/layouts/shortcodes/quote.html b/themes/hugo-theme-stack/layouts/shortcodes/quote.html deleted file mode 100644 index 09bb07c..0000000 --- a/themes/hugo-theme-stack/layouts/shortcodes/quote.html +++ /dev/null @@ -1,15 +0,0 @@ -
-

{{ .Inner | markdownify }}

- {{- if or (.Get "author") (.Get "source") -}} - - {{- if .Get "author" -}} - - {{- .Get "author" -}}{{- if .Get "source" -}}, {{ end -}} - - {{- end -}} - {{- with .Get "url" -}}{{- end -}} - {{ .Get "source" }} - {{- if .Get "url" -}}{{- end -}} - - {{- end -}} -
\ No newline at end of file diff --git a/themes/hugo-theme-stack/layouts/shortcodes/tencent.html b/themes/hugo-theme-stack/layouts/shortcodes/tencent.html deleted file mode 100644 index 463dec5..0000000 --- a/themes/hugo-theme-stack/layouts/shortcodes/tencent.html +++ /dev/null @@ -1,10 +0,0 @@ -{{ $vid := .Get 0 }} -
- -
\ No newline at end of file diff --git a/themes/hugo-theme-stack/layouts/shortcodes/video.html b/themes/hugo-theme-stack/layouts/shortcodes/video.html deleted file mode 100644 index 5324754..0000000 --- a/themes/hugo-theme-stack/layouts/shortcodes/video.html +++ /dev/null @@ -1,14 +0,0 @@ -{{- $src := .Get "src" | default (.Get 0) -}} -
- -
diff --git a/themes/hugo-theme-stack/layouts/shortcodes/youtube.html b/themes/hugo-theme-stack/layouts/shortcodes/youtube.html deleted file mode 100644 index 2f85931..0000000 --- a/themes/hugo-theme-stack/layouts/shortcodes/youtube.html +++ /dev/null @@ -1,13 +0,0 @@ -{{- $pc := .Page.Site.Config.Privacy.YouTube -}} -{{- if not $pc.Disable -}} -{{- $ytHost := cond $pc.PrivacyEnhanced "www.youtube-nocookie.com" "www.youtube.com" -}} -{{- $id := .Get "id" | default (.Get 0) -}} -
- -
-{{ end -}} \ No newline at end of file -- cgit v1.2.3