summaryrefslogtreecommitdiffstats
path: root/layouts/home.html
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-22 12:42:56 +0200
committerDanilo M. <danix@danix.xyz>2026-04-22 12:42:56 +0200
commit631547a75142326a7c71bdf123e1475217a5ad73 (patch)
treef3cfef6b3c5b42bf626fc823ddcf63b8dcf4cdbb /layouts/home.html
parent77ccbe72fad5a4870185fff374f75471c16a9043 (diff)
downloaddanixxyz-theme-631547a75142326a7c71bdf123e1475217a5ad73.tar.gz
danixxyz-theme-631547a75142326a7c71bdf123e1475217a5ad73.zip
chore: replace with extracted danix.xyz-hacker theme (danix2-hugo-theme)
Diffstat (limited to 'layouts/home.html')
-rw-r--r--layouts/home.html48
1 files changed, 0 insertions, 48 deletions
diff --git a/layouts/home.html b/layouts/home.html
deleted file mode 100644
index 54d8087..0000000
--- a/layouts/home.html
+++ /dev/null
@@ -1,48 +0,0 @@
-{{ define "canvas-mode" }}hero{{ end }}
-
-{{ define "main" }}
- {{ partial "hero.html" . }}
-
- <section id="articles" class="section-container reveal-group"
- style="background: var(--bg2); padding: 6rem 2rem;">
-
- <div class="section-header">
- <p class="section-eyebrow">// latest posts</p>
- <h2 class="section-title">Recent Articles</h2>
- </div>
-
- {{ $articlesSection := .Site.GetPage "/articles" }}
- {{ if $articlesSection }}
- {{ $articles := $articlesSection.Pages }}
- {{ $articles = sort $articles "Date" "desc" }}
- <div class="articles-grid">
- {{ range first 6 $articles }}
- {{ $type := .Params.type }}
- {{ if not $type }}{{ $type = "article" }}{{ end }}
-
- {{ $excerpt := .Params.excerpt }}
- {{ if not $excerpt }}
- {{ $excerpt = .Summary | plainify | truncate 150 }}
- {{ end }}
-
- {{ $data := dict
- "title" .Title
- "type" $type
- "description" $excerpt
- "date" .Date
- "url" .RelPermalink
- "image" .Params.image
- "featured" .Params.featured
- "context" "home"
- }}
- {{ partial "post-card.html" $data }}
- {{ end }}
- </div>
- {{ end }}
-
- <div style="text-align: center; margin-top: 3rem;">
- <a href="/articles/" class="btn btn-outline">View All Articles</a>
- </div>
-
- </section>
-{{ end }}