summaryrefslogtreecommitdiffstats
path: root/layouts/_partials
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/_partials
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/_partials')
-rw-r--r--layouts/_partials/article-single.html56
-rw-r--r--layouts/_partials/featured-card.html23
-rw-r--r--layouts/_partials/footer.html14
-rw-r--r--layouts/_partials/head.html8
-rw-r--r--layouts/_partials/head/css.html15
-rw-r--r--layouts/_partials/head/js.html15
-rw-r--r--layouts/_partials/header.html29
-rw-r--r--layouts/_partials/hero.html41
-rw-r--r--layouts/_partials/menu.html51
-rw-r--r--layouts/_partials/photo-article.html32
-rw-r--r--layouts/_partials/post-card.html30
-rw-r--r--layouts/_partials/share-sidebar.html28
-rw-r--r--layouts/_partials/static-page.html33
-rw-r--r--layouts/_partials/terms.html23
-rw-r--r--layouts/_partials/timeline-item.html31
15 files changed, 0 insertions, 429 deletions
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 @@
-<article class="article-single">
- <!-- Article Hero -->
- {{ if .Params.image }}
- <div class="article-hero" style="background-image: url('{{ .Params.image }}')">
- <div class="article-hero-overlay"></div>
- <div class="article-hero-content">
- <nav class="article-breadcrumb">
- <a href="/articles/">Articles</a>
- <span>/</span>
- <span>{{ .Title }}</span>
- </nav>
- <h1>{{ .Title }}</h1>
- </div>
- </div>
- {{ end }}
-
- <!-- Article Meta Bar -->
- <div class="article-meta-bar">
- <div class="article-meta">
- <span class="article-type-badge type-{{ .Params.type }}">{{ .Params.type }}</span>
- <span class="article-date">{{ .Date.Format "Jan 02, 2006" }}</span>
- <span class="article-read-time">{{ .ReadingTime }} min read</span>
- </div>
- </div>
-
- <!-- Share Sidebar (for large screens) -->
- {{ partial "share-sidebar.html" . }}
-
- <!-- Article Body -->
- <div class="article-body container-narrow">
- {{ .Content }}
- </div>
-
- <!-- Article Footer Nav -->
- {{ $section := .Site.GetPage .Section }}
- {{ if $section }}
- {{ $prevPage := .PrevInSection }}
- {{ $nextPage := .NextInSection }}
- {{ if or $prevPage $nextPage }}
- <nav class="article-footer-nav">
- {{ if $prevPage }}
- <a href="{{ $prevPage.RelPermalink }}" class="nav-prev">
- <span class="nav-label">← Previous</span>
- <span class="nav-title">{{ $prevPage.Title }}</span>
- </a>
- {{ end }}
- {{ if $nextPage }}
- <a href="{{ $nextPage.RelPermalink }}" class="nav-next">
- <span class="nav-label">Next →</span>
- <span class="nav-title">{{ $nextPage.Title }}</span>
- </a>
- {{ end }}
- </nav>
- {{ end }}
- {{ end }}
-</article>
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 }}
-
-<article class="featured-article">
- {{ if $page.Params.image }}
- <div class="featured-image">
- <img src="{{ $page.Params.image }}" alt="{{ $page.Title }}" loading="lazy">
- </div>
- {{ end }}
-
- <div class="featured-body">
- <div class="featured-header">
- <span class="featured-type-badge" style="color: var(--type-{{ $page.Params.type }});">
- {{ $page.Params.type }}
- </span>
- <span class="featured-date">$ {{ $page.Date.Format "2006-01-02" }}</span>
- </div>
- <h2 class="featured-title">{{ $page.Title }}</h2>
- {{ with $page.Params.description }}
- <p class="featured-excerpt">{{ . }}</p>
- {{ end }}
- <a href="{{ $page.RelPermalink }}" class="featured-link">Read the full article →</a>
- </div>
-</article>
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 @@
-<div class="footer-container">
- <div class="footer-content">
- <div class="footer-copyright">
- © {{ now.Year }} {{ .Site.Params.author }}. All rights reserved.
- </div>
- <nav>
- <ul class="footer-nav">
- {{ range .Site.Menus.main }}
- <li><a href="{{ .URL }}">{{ .Name }}</a></li>
- {{ end }}
- </ul>
- </nav>
- </div>
-</div>
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 @@
-<meta charset="utf-8">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-<meta name="description" content="{{ .Site.Params.description }}">
-<meta name="theme-color" content="#060b10">
-<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
-
-{{ 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 }}
- <link rel="stylesheet" href="{{ .RelPermalink }}">
- {{- else }}
- {{- with . | fingerprint }}
- <link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
- {{- 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 }}
- <script src="{{ .RelPermalink }}"></script>
- {{- else }}
- {{- with . | fingerprint }}
- <script src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script>
- {{- 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 @@
-<nav class="nav-header" role="navigation" aria-label="Main navigation">
- <button class="hamburger" id="hamburger-btn" aria-label="Toggle menu" aria-expanded="false">
- <span></span>
- <span></span>
- <span></span>
- </button>
-
- <div class="menu-overlay" id="menu-overlay">
- <div class="menu-items">
- <a href="/" class="menu-logo">{{ .Site.Params.author }}</a>
-
- <ul class="menu-links">
- {{ range .Site.Menus.main }}
- <li>
- <a href="{{ .URL }}" {{ if (in $.RelPermalink .URL) }}aria-current="page"{{ end }}>
- {{ .Name }}
- </a>
- </li>
- {{ end }}
- </ul>
-
- <div class="menu-footer">
- <button class="theme-switch" id="theme-switch" aria-label="Toggle theme">
- <span class="theme-switch-dot"></span>
- </button>
- </div>
- </div>
- </div>
-</nav>
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 @@
-<section class="hero" role="region" aria-label="Hero">
- <canvas id="matrix-canvas" data-mode="hero" aria-hidden="true"></canvas>
- <div class="hero-container">
- <div class="hero-left">
- <div class="hero-prompt">welcome to</div>
- <h1 class="hero-name" data-text="{{ .Site.Params.author }}">{{ .Site.Params.author }}</h1>
- <div class="hero-role" id="typed" data-phrases='{{ .Site.Params.typingPhrases | jsonify }}'></div>
- <p class="hero-tagline">{{ .Site.Params.description }}</p>
- <div class="hero-buttons">
- <a href="/articles/" class="btn btn-primary">Read Articles</a>
- <a href="/is/" class="btn btn-outline">About Me</a>
- </div>
- </div>
- <div class="hero-right">
- <div class="hero-terminal">
- <div class="terminal-bar">
- <span class="terminal-dot" style="background: #ff5f57;"></span>
- <span class="terminal-dot" style="background: #febc2e;"></span>
- <span class="terminal-dot" style="background: #28c840;"></span>
- <span class="terminal-title">root@danix.xyz</span>
- </div>
- <div class="terminal-content">
- <div class="tl tl-d1"><span class="tc-dim">$ </span><span class="tc-ok">whoami</span></div>
- <div class="tl tl-d2">danilo</div>
- <div class="tl tl-d3"><span class="tc-dim">$ </span><span class="tc-ok">cat roles.txt</span></div>
- <div class="tl tl-d4"><span class="tc-key">Security</span> &amp; Web Dev</div>
- <div class="tl tl-d5"><span class="tc-key">WordPress</span> Developer</div>
- <div class="tl tl-d6"><span class="tc-key">Bash</span> Enthusiast</div>
- <div class="tl tl-d7"><span class="tc-dim">$ </span><span class="tc-ok">uptime</span></div>
- <div class="tl tl-d8">up 4 years, still learning</div>
- <div class="tl tl-d9"><span class="tc-dim">$ </span><span class="tc-ok">_</span></div>
- </div>
- </div>
- </div>
- </div><!-- /.hero-container -->
-
- <div class="scroll-indicator" aria-hidden="true">
- <span>scroll</span>
- <div class="scroll-line"></div>
- </div>
-</section>
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 }}
- <nav>
- <ul>
- {{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) }}
- </ul>
- </nav>
-{{- 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 }}
- <li>
- <a
- {{- range $k, $v := $attrs }}
- {{- with $v }}
- {{- printf " %s=%q" $k $v | safeHTMLAttr }}
- {{- end }}
- {{- end -}}
- >{{ $name }}</a>
- {{- with .Children }}
- <ul>
- {{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) }}
- </ul>
- {{- end }}
- </li>
- {{- 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 @@
-<article class="article-single">
- <!-- Photo Hero -->
- {{ if .Params.image }}
- <div class="article-hero" style="background-image: url('{{ .Params.image }}')">
- <div class="article-hero-overlay"></div>
- <div class="article-hero-content">
- <h1>{{ .Title }}</h1>
- </div>
- </div>
- {{ end }}
-
- <!-- Article Meta Bar -->
- <div class="article-meta-bar">
- <div class="article-meta">
- <span class="article-type-badge type-{{ .Params.type }}">{{ .Params.type }}</span>
- <span class="article-date">{{ .Date.Format "Jan 02, 2006" }}</span>
- </div>
- </div>
-
- <!-- Photo Grid -->
- <div class="article-body container-narrow">
- <div class="photo-grid" data-lightbox="true">
- {{ .Content }}
- </div>
- </div>
-
- <!-- Load photo utilities -->
- {{ $photoUtils := resources.Get "js/photo-utils.js" }}
- {{ $lightbox := resources.Get "js/lightbox.js" | fingerprint }}
- <script src="{{ $photoUtils.RelPermalink }}"></script>
- <script src="{{ $lightbox.RelPermalink }}"></script>
-</article>
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" }}
- <article class="article-card reveal" data-type="{{ .type }}">
- <div class="article-type" style="background: var(--type-{{ .type }});">{{ .type }}</div>
- <div class="article-content">
- <h3 class="article-title"><a href="{{ .url }}">{{ .title }}</a></h3>
- <p class="article-excerpt">{{ .description }}</p>
- <div class="article-meta">
- <span>{{ dateFormat "Jan 2, 2006" .date }}</span>
- <a href="{{ .url }}" class="article-read">Read →</a>
- </div>
- </div>
- </article>
-{{ else }}
- {{ $featured := .featured }}
- <article class="post-card {{ if $featured }}featured{{ end }}">
- {{ if .image }}
- <img src="{{ .image }}" alt="{{ .title }}" class="post-card-image">
- {{ else }}
- <div class="post-card-image" style="background: linear-gradient(135deg, var(--color-{{ .type }}), var(--bg2));"></div>
- {{ end }}
- <div class="post-card-body">
- <div class="post-type-badge {{ .type }}">{{ .type }}</div>
- <h3 class="post-card-title"><a href="{{ .url }}">{{ .title }}</a></h3>
- <p class="post-card-excerpt">{{ .description }}</p>
- <div class="post-card-meta">
- <span>{{ dateFormat "Jan 2, 2006" .date }}</span>
- </div>
- </div>
- </article>
-{{ 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 @@
-<aside class="share-sidebar" id="share-sidebar" data-url="{{ .Permalink }}" data-title="{{ .Title | htmlEscape }}">
- <div class="share-buttons">
- <button class="share-btn" data-platform="whatsapp" title="Share on WhatsApp">
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg>
- </button>
- <button class="share-btn" data-platform="telegram" title="Share on Telegram">
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M8 14s1.5 2 4 2 4-2 4-2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line></svg>
- </button>
- <button class="share-btn" data-platform="linkedin" title="Share on LinkedIn">
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6zM2 9h4v12H2z"></path><circle cx="4" cy="4" r="2"></circle></svg>
- </button>
- <button class="share-btn" data-platform="twitter" title="Share on X (Twitter)">
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2s9 5 20 0a9.5 9.5 0 0 0 5-6.5"></path></svg>
- </button>
- <button class="share-btn" data-platform="facebook" title="Share on Facebook">
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 2h-3a6 6 0 0 0-6 6v4a6 6 0 0 0 6 6h3"></path><path d="M16 18v2"></path><path d="M6 6v12"></path></svg>
- </button>
- <button class="share-btn" data-platform="reddit" title="Share on Reddit">
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="1"></circle><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm7-3c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3z"></path></svg>
- </button>
- <button class="share-btn" data-platform="email" title="Share via Email">
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="4" width="20" height="16" rx="2"></rect><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"></path></svg>
- </button>
- <button class="share-btn" id="share-copy" title="Copy link">
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg>
- </button>
- </div>
-</aside>
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 @@
-<article class="static-page">
- <!-- Static Page Hero -->
- <div class="page-hero">
- <div class="page-hero-overlay"></div>
- <div class="page-hero-content">
- <h1>{{ .Title }}</h1>
- </div>
- </div>
-
- <!-- Page Content -->
- <div class="page-content container-narrow">
- {{ .Content }}
- </div>
-
- <!-- Related Pages Nav (for is/* section) -->
- {{ if eq .Section "is" }}
- <nav class="page-nav" style="margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border);">
- <h3 style="margin-bottom: 1rem;">Other pages</h3>
- <ul style="list-style: none; margin: 0;">
- {{ $section := .Site.GetPage "/is" }}
- {{ if $section }}
- {{ range $section.Pages }}
- <li style="margin-bottom: 0.5rem;">
- <a href="{{ .RelPermalink }}" {{ if eq $.RelPermalink .RelPermalink }}class="active"{{ end }}>
- {{ .Title }}
- </a>
- </li>
- {{ end }}
- {{ end }}
- </ul>
- </nav>
- {{ end }}
-</article>
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 }}
- <div>
- <div>{{ $label }}:</div>
- <ul>
- {{- range . }}
- <li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
- {{- end }}
- </ul>
- </div>
-{{- 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 }}
-
-<article class="timeline-item {{ $position }}" data-type="{{ $page.Params.type }}">
- <div class="timeline-dot"></div>
-
- <div class="article-card">
- {{ if $page.Params.image }}
- <div class="article-card-image">
- <img src="{{ $page.Params.image }}" alt="{{ $page.Title }}" loading="lazy">
- </div>
- {{ end }}
-
- <div class="article-card-body">
- <div class="article-card-header">
- <span class="article-type-badge type-{{ $page.Params.type }}">{{ $page.Params.type }}</span>
- <span class="article-date">{{ $page.Date.Format "Jan 02, 2006" }}</span>
- </div>
- <h3 class="article-card-title">
- <a href="{{ $page.RelPermalink }}">{{ $page.Title }}</a>
- </h3>
- {{ with $page.Params.description }}
- <p class="article-card-excerpt">{{ . }}</p>
- {{ end }}
- </div>
- </div>
-</article>