From 5b476f8905f411768e23cb01d577a60e5a5fd725 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 22 Apr 2026 12:43:22 +0200 Subject: chore: extract theme into git submodule (danix2-hugo-theme) --- .../danix-xyz-hacker/layouts/shortcodes/video.html | 37 ---------------------- 1 file changed, 37 deletions(-) delete mode 100644 themes/danix-xyz-hacker/layouts/shortcodes/video.html (limited to 'themes/danix-xyz-hacker/layouts/shortcodes/video.html') diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/video.html b/themes/danix-xyz-hacker/layouts/shortcodes/video.html deleted file mode 100644 index 1e2645d..0000000 --- a/themes/danix-xyz-hacker/layouts/shortcodes/video.html +++ /dev/null @@ -1,37 +0,0 @@ -{{- $src := .Get "src" -}} -{{- $id := .Get "id" -}} -{{- $title := .Get "title" | default "Video" -}} -{{- $class := .Get "class" | default "" -}} - -{{- if $id -}} -
- -
-{{- else if $src -}} - {{- $ext := $src | path.Ext -}} - {{- $filetype := slicestr $ext 1 -}} - {{- $videoURL := $src -}} - {{- $resource := .Page.Resources.GetMatch $src -}} - {{- if $resource -}}{{- $videoURL = $resource.RelPermalink -}}{{- end -}} - -{{- else -}} - {{- errorf "video shortcode: either 'src' or 'id' parameter is required" -}} -{{- end -}} -- cgit v1.2.3