From 631547a75142326a7c71bdf123e1475217a5ad73 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 22 Apr 2026 12:42:56 +0200 Subject: chore: replace with extracted danix.xyz-hacker theme (danix2-hugo-theme) --- layouts/_partials/article-single.html | 56 ----------------------------------- layouts/_partials/featured-card.html | 23 -------------- layouts/_partials/footer.html | 14 --------- layouts/_partials/head.html | 8 ----- layouts/_partials/head/css.html | 15 ---------- layouts/_partials/head/js.html | 15 ---------- layouts/_partials/header.html | 29 ------------------ layouts/_partials/hero.html | 41 ------------------------- layouts/_partials/menu.html | 51 ------------------------------- layouts/_partials/photo-article.html | 32 -------------------- layouts/_partials/post-card.html | 30 ------------------- layouts/_partials/share-sidebar.html | 28 ------------------ layouts/_partials/static-page.html | 33 --------------------- layouts/_partials/terms.html | 23 -------------- layouts/_partials/timeline-item.html | 31 ------------------- 15 files changed, 429 deletions(-) delete mode 100644 layouts/_partials/article-single.html delete mode 100644 layouts/_partials/featured-card.html delete mode 100644 layouts/_partials/footer.html delete mode 100644 layouts/_partials/head.html delete mode 100644 layouts/_partials/head/css.html delete mode 100644 layouts/_partials/head/js.html delete mode 100644 layouts/_partials/header.html delete mode 100644 layouts/_partials/hero.html delete mode 100644 layouts/_partials/menu.html delete mode 100644 layouts/_partials/photo-article.html delete mode 100644 layouts/_partials/post-card.html delete mode 100644 layouts/_partials/share-sidebar.html delete mode 100644 layouts/_partials/static-page.html delete mode 100644 layouts/_partials/terms.html delete mode 100644 layouts/_partials/timeline-item.html (limited to 'layouts/_partials') diff --git a/layouts/_partials/article-single.html b/layouts/_partials/article-single.html deleted file mode 100644 index f030869..0000000 --- a/layouts/_partials/article-single.html +++ /dev/null @@ -1,56 +0,0 @@ -
- - {{ if .Params.image }} -
-
-
- -

{{ .Title }}

-
-
- {{ end }} - - - - - - {{ partial "share-sidebar.html" . }} - - -
- {{ .Content }} -
- - - {{ $section := .Site.GetPage .Section }} - {{ if $section }} - {{ $prevPage := .PrevInSection }} - {{ $nextPage := .NextInSection }} - {{ if or $prevPage $nextPage }} - - {{ end }} - {{ end }} -
diff --git a/layouts/_partials/featured-card.html b/layouts/_partials/featured-card.html deleted file mode 100644 index cf2618f..0000000 --- a/layouts/_partials/featured-card.html +++ /dev/null @@ -1,23 +0,0 @@ -{{ $page := .page }} - -
- {{ if $page.Params.image }} - - {{ end }} - - -
diff --git a/layouts/_partials/footer.html b/layouts/_partials/footer.html deleted file mode 100644 index a9df047..0000000 --- a/layouts/_partials/footer.html +++ /dev/null @@ -1,14 +0,0 @@ - diff --git a/layouts/_partials/head.html b/layouts/_partials/head.html deleted file mode 100644 index 1a8a727..0000000 --- a/layouts/_partials/head.html +++ /dev/null @@ -1,8 +0,0 @@ - - - - -{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }} - -{{ partialCached "head/css.html" . }} -{{ partialCached "head/js.html" . }} diff --git a/layouts/_partials/head/css.html b/layouts/_partials/head/css.html deleted file mode 100644 index 8897866..0000000 --- a/layouts/_partials/head/css.html +++ /dev/null @@ -1,15 +0,0 @@ -{{- with resources.Get "css/main.css" }} - {{- $opts := dict - "minify" (cond hugo.IsDevelopment false true) - "sourceMap" (cond hugo.IsDevelopment "linked" "none") - }} - {{- with . | css.Build $opts }} - {{- if hugo.IsDevelopment }} - - {{- else }} - {{- with . | fingerprint }} - - {{- end }} - {{- end }} - {{- end }} -{{- end }} diff --git a/layouts/_partials/head/js.html b/layouts/_partials/head/js.html deleted file mode 100644 index 0210efa..0000000 --- a/layouts/_partials/head/js.html +++ /dev/null @@ -1,15 +0,0 @@ -{{- with resources.Get "js/main.js" }} - {{- $opts := dict - "minify" (cond hugo.IsDevelopment false true) - "sourceMap" (cond hugo.IsDevelopment "linked" "none") - }} - {{- with . | js.Build $opts }} - {{- if hugo.IsDevelopment }} - - {{- else }} - {{- with . | fingerprint }} - - {{- end }} - {{- end }} - {{- end }} -{{- end }} diff --git a/layouts/_partials/header.html b/layouts/_partials/header.html deleted file mode 100644 index 1f8efb8..0000000 --- a/layouts/_partials/header.html +++ /dev/null @@ -1,29 +0,0 @@ - diff --git a/layouts/_partials/hero.html b/layouts/_partials/hero.html deleted file mode 100644 index 57d223d..0000000 --- a/layouts/_partials/hero.html +++ /dev/null @@ -1,41 +0,0 @@ -
- -
-
-
welcome to
-

{{ .Site.Params.author }}

-
-

{{ .Site.Params.description }}

- -
-
-
-
- - - - root@danix.xyz -
-
-
$ whoami
-
danilo
-
$ cat roles.txt
-
Security & Web Dev
-
WordPress Developer
-
Bash Enthusiast
-
$ uptime
-
up 4 years, still learning
-
$ _
-
-
-
-
- - -
diff --git a/layouts/_partials/menu.html b/layouts/_partials/menu.html deleted file mode 100644 index 14245b5..0000000 --- a/layouts/_partials/menu.html +++ /dev/null @@ -1,51 +0,0 @@ -{{- /* -Renders a menu for the given menu ID. - -@context {page} page The current page. -@context {string} menuID The menu ID. - -@example: {{ partial "menu.html" (dict "menuID" "main" "page" .) }} -*/}} - -{{- $page := .page }} -{{- $menuID := .menuID }} - -{{- with index site.Menus $menuID }} - -{{- end }} - -{{- define "_partials/inline/menu/walk.html" }} - {{- $page := .page }} - {{- range .menuEntries }} - {{- $attrs := dict "href" .URL }} - {{- if $page.IsMenuCurrent .Menu . }} - {{- $attrs = merge $attrs (dict "class" "active" "aria-current" "page") }} - {{- else if $page.HasMenuCurrent .Menu .}} - {{- $attrs = merge $attrs (dict "class" "ancestor" "aria-current" "true") }} - {{- end }} - {{- $name := .Name }} - {{- with .Identifier }} - {{- with T . }} - {{- $name = . }} - {{- end }} - {{- end }} -
  • - {{ $name }} - {{- with .Children }} - - {{- end }} -
  • - {{- end }} -{{- end }} diff --git a/layouts/_partials/photo-article.html b/layouts/_partials/photo-article.html deleted file mode 100644 index 1040c9b..0000000 --- a/layouts/_partials/photo-article.html +++ /dev/null @@ -1,32 +0,0 @@ -
    - - {{ if .Params.image }} -
    -
    -
    -

    {{ .Title }}

    -
    -
    - {{ end }} - - - - - -
    -
    - {{ .Content }} -
    -
    - - - {{ $photoUtils := resources.Get "js/photo-utils.js" }} - {{ $lightbox := resources.Get "js/lightbox.js" | fingerprint }} - - -
    diff --git a/layouts/_partials/post-card.html b/layouts/_partials/post-card.html deleted file mode 100644 index f3a1362..0000000 --- a/layouts/_partials/post-card.html +++ /dev/null @@ -1,30 +0,0 @@ -{{ if eq .context "home" }} -
    -
    {{ .type }}
    -
    -

    {{ .title }}

    -

    {{ .description }}

    - -
    -
    -{{ else }} - {{ $featured := .featured }} -
    - {{ if .image }} - {{ .title }} - {{ else }} -
    - {{ end }} -
    -
    {{ .type }}
    -

    {{ .title }}

    -

    {{ .description }}

    -
    - {{ dateFormat "Jan 2, 2006" .date }} -
    -
    -
    -{{ end }} diff --git a/layouts/_partials/share-sidebar.html b/layouts/_partials/share-sidebar.html deleted file mode 100644 index 36b6d03..0000000 --- a/layouts/_partials/share-sidebar.html +++ /dev/null @@ -1,28 +0,0 @@ - diff --git a/layouts/_partials/static-page.html b/layouts/_partials/static-page.html deleted file mode 100644 index d557b2f..0000000 --- a/layouts/_partials/static-page.html +++ /dev/null @@ -1,33 +0,0 @@ -
    - -
    -
    -
    -

    {{ .Title }}

    -
    -
    - - -
    - {{ .Content }} -
    - - - {{ if eq .Section "is" }} - - {{ end }} -
    diff --git a/layouts/_partials/terms.html b/layouts/_partials/terms.html deleted file mode 100644 index 8a6ebec..0000000 --- a/layouts/_partials/terms.html +++ /dev/null @@ -1,23 +0,0 @@ -{{- /* -For a given taxonomy, renders a list of terms assigned to the page. - -@context {page} page The current page. -@context {string} taxonomy The taxonomy. - -@example: {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} -*/}} - -{{- $page := .page }} -{{- $taxonomy := .taxonomy }} - -{{- with $page.GetTerms $taxonomy }} - {{- $label := (index . 0).Parent.LinkTitle }} -
    -
    {{ $label }}:
    - -
    -{{- end }} diff --git a/layouts/_partials/timeline-item.html b/layouts/_partials/timeline-item.html deleted file mode 100644 index fcb3f50..0000000 --- a/layouts/_partials/timeline-item.html +++ /dev/null @@ -1,31 +0,0 @@ -{{ $page := .page }} -{{ $index := .index }} -{{ $position := "left" }} -{{ if (eq (mod $index 2) 1) }} - {{ $position = "right" }} -{{ end }} - -
    -
    - -
    - {{ if $page.Params.image }} -
    - {{ $page.Title }} -
    - {{ end }} - -
    -
    - {{ $page.Params.type }} - -
    -

    - {{ $page.Title }} -

    - {{ with $page.Params.description }} -

    {{ . }}

    - {{ end }} -
    -
    -
    -- cgit v1.2.3