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) --- .../layouts/shortcodes/actions.html | 19 ------- .../layouts/shortcodes/contact.html | 65 ---------------------- .../layouts/shortcodes/dropcap.html | 1 - themes/danix-xyz-hacker/layouts/shortcodes/em.html | 1 - .../layouts/shortcodes/gallery.html | 12 ---- .../layouts/shortcodes/gravatar.html | 17 ------ .../danix-xyz-hacker/layouts/shortcodes/image.html | 23 -------- .../danix-xyz-hacker/layouts/shortcodes/quote.html | 15 ----- .../layouts/shortcodes/strike.html | 1 - .../danix-xyz-hacker/layouts/shortcodes/video.html | 37 ------------ 10 files changed, 191 deletions(-) delete mode 100644 themes/danix-xyz-hacker/layouts/shortcodes/actions.html delete mode 100644 themes/danix-xyz-hacker/layouts/shortcodes/contact.html delete mode 100644 themes/danix-xyz-hacker/layouts/shortcodes/dropcap.html delete mode 100644 themes/danix-xyz-hacker/layouts/shortcodes/em.html delete mode 100644 themes/danix-xyz-hacker/layouts/shortcodes/gallery.html delete mode 100644 themes/danix-xyz-hacker/layouts/shortcodes/gravatar.html delete mode 100644 themes/danix-xyz-hacker/layouts/shortcodes/image.html delete mode 100644 themes/danix-xyz-hacker/layouts/shortcodes/quote.html delete mode 100644 themes/danix-xyz-hacker/layouts/shortcodes/strike.html delete mode 100644 themes/danix-xyz-hacker/layouts/shortcodes/video.html (limited to 'themes/danix-xyz-hacker/layouts/shortcodes') diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/actions.html b/themes/danix-xyz-hacker/layouts/shortcodes/actions.html deleted file mode 100644 index 7badab3..0000000 --- a/themes/danix-xyz-hacker/layouts/shortcodes/actions.html +++ /dev/null @@ -1,19 +0,0 @@ -{{- $url := .Get "url" -}} -{{- $desc := .Get "desc" | default "Download" -}} -{{- $outclass := .Get "outclass" | default "" -}} -{{- $inclass := .Get "inclass" | default "" -}} - -{{- if $url -}} -
- - - {{ $desc }} - -
-{{- else -}} - {{- errorf "actions shortcode: 'url' parameter is required" -}} -{{- end -}} diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/contact.html b/themes/danix-xyz-hacker/layouts/shortcodes/contact.html deleted file mode 100644 index 6c5748f..0000000 --- a/themes/danix-xyz-hacker/layouts/shortcodes/contact.html +++ /dev/null @@ -1,65 +0,0 @@ -
- -
- - -
- - -
- - -
- - -
- - -
- - -
- - - -
- diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/dropcap.html b/themes/danix-xyz-hacker/layouts/shortcodes/dropcap.html deleted file mode 100644 index 6114678..0000000 --- a/themes/danix-xyz-hacker/layouts/shortcodes/dropcap.html +++ /dev/null @@ -1 +0,0 @@ -{{ .Inner }} diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/em.html b/themes/danix-xyz-hacker/layouts/shortcodes/em.html deleted file mode 100644 index a3a096c..0000000 --- a/themes/danix-xyz-hacker/layouts/shortcodes/em.html +++ /dev/null @@ -1 +0,0 @@ -{{ .Inner }} diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/gallery.html b/themes/danix-xyz-hacker/layouts/shortcodes/gallery.html deleted file mode 100644 index b66c327..0000000 --- a/themes/danix-xyz-hacker/layouts/shortcodes/gallery.html +++ /dev/null @@ -1,12 +0,0 @@ -{{- $cols := .Get "cols" | default "2" -}} - -
- {{- range $line := strings.Split .Inner "\n" -}} - {{- if strings.Contains $line "![" -}} - {{- $image := strings.TrimSpace $line -}} - {{- if $image -}} - {{ $image | markdownify | safeHTML }} - {{- end -}} - {{- end -}} - {{- end -}} -
diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/gravatar.html b/themes/danix-xyz-hacker/layouts/shortcodes/gravatar.html deleted file mode 100644 index 3a1ebcc..0000000 --- a/themes/danix-xyz-hacker/layouts/shortcodes/gravatar.html +++ /dev/null @@ -1,17 +0,0 @@ -{{- $email := .Get "email" -}} -{{- $size := .Get "size" | default "256" | int -}} -{{- $alt := .Get "alt" | default "User avatar" -}} -{{- $class := .Get "class" | default "w-32 h-32 rounded-full" -}} - -{{- if $email -}} - {{- $hash := md5 (strings.TrimSpace (strings.ToLower $email)) -}} - {{- $gravatarURL := printf "https://www.gravatar.com/avatar/%s?s=%d&d=identicon" $hash $size -}} - {{ $alt }} -{{- else -}} - {{- errorf "gravatar shortcode: 'email' parameter is required" -}} -{{- end -}} diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/image.html b/themes/danix-xyz-hacker/layouts/shortcodes/image.html deleted file mode 100644 index 84dec3f..0000000 --- a/themes/danix-xyz-hacker/layouts/shortcodes/image.html +++ /dev/null @@ -1,23 +0,0 @@ -{{- $src := .Get "src" -}} -{{- $alt := .Get "alt" | default "Image" -}} -{{- $caption := .Get "caption" -}} -{{- $class := .Get "class" | default "w-full h-auto rounded-lg border border-border" -}} -{{- $link := .Get "link" -}} -{{- $figureClass := .Get "figure-class" -}} - -{{- if or $src .Inner -}} -
- {{- if .Inner -}} - {{- .Inner -}} - {{- else -}} - {{- if $link -}}{{- end -}} - {{ $alt }} - {{- if $link -}}{{- end -}} - {{- end -}} - {{- if $caption -}} -
{{ $caption }}
- {{- end -}} -
-{{- else -}} - {{- errorf "image shortcode: 'src' parameter or inner content is required" -}} -{{- end -}} diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/quote.html b/themes/danix-xyz-hacker/layouts/shortcodes/quote.html deleted file mode 100644 index 1ed5c3c..0000000 --- a/themes/danix-xyz-hacker/layouts/shortcodes/quote.html +++ /dev/null @@ -1,15 +0,0 @@ -{{- $source := .Get "source" -}} -{{- $src := .Get "src" -}} - -
-

{{ .Inner }}

- {{- if $source -}} -
- {{- if $src -}} - — {{ $source }} - {{- else -}} - — {{ $source }} - {{- end -}} -
- {{- end -}} -
diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/strike.html b/themes/danix-xyz-hacker/layouts/shortcodes/strike.html deleted file mode 100644 index 275b7c1..0000000 --- a/themes/danix-xyz-hacker/layouts/shortcodes/strike.html +++ /dev/null @@ -1 +0,0 @@ -{{ .Inner }} 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