summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--layouts/partials/article-header.html44
-rw-r--r--layouts/partials/sidebar.html20
2 files changed, 21 insertions, 43 deletions
diff --git a/layouts/partials/article-header.html b/layouts/partials/article-header.html
index 55f6af1..abc7689 100644
--- a/layouts/partials/article-header.html
+++ b/layouts/partials/article-header.html
@@ -3,7 +3,7 @@
{{ $typeData := index $typeConfig $articleType }}
{{ $hasType := .Params.type }}
-<div class="mb-8 pb-8 border-b border-border">
+<div class="mb-8">
<!-- Title with accent corner -->
<div class="relative mb-6">
<!-- Vertical accent line (left side) -->
@@ -26,46 +26,4 @@
{{ .Title }}
</h1>
</div>
-
- <!-- Metadata -->
- <div class="flex flex-wrap items-center gap-4 text-sm text-text-dim">
- <!-- Publish date -->
- {{ if .PublishDate }}
- <div class="flex items-center gap-1">
- <i data-feather="calendar" class="w-4 h-4" aria-hidden="true"></i>
- <time datetime="{{ .PublishDate.Format "2006-01-02T15:04:05Z07:00" }}">
- {{ .PublishDate.Format "Jan 2, 2006" }}
- </time>
- </div>
- {{ end }}
-
- <!-- Update date if different -->
- {{ if .Lastmod }}
- {{ $lastmodDate := .Lastmod.Format "2006-01-02" }}
- {{ $pubDate := .PublishDate.Format "2006-01-02" }}
- {{ if ne $lastmodDate $pubDate }}
- <div class="flex items-center gap-1">
- <i data-feather="edit-2" class="w-4 h-4" aria-hidden="true"></i>
- <time datetime="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}">
- {{ .Lastmod.Format "Jan 2, 2006" }}
- </time>
- </div>
- {{ end }}
- {{ end }}
-
- <!-- Reading time -->
- {{ if .Site.Params.readingTime }}
- <div class="flex items-center gap-1">
- <i data-feather="clock" class="w-4 h-4" aria-hidden="true"></i>
- <span>{{ .ReadingTime }} {{ i18n "min" }} {{ i18n "readingTime" }}</span>
- </div>
- {{ end }}
-
- <!-- Type badge -->
- {{ if and $typeData $hasType }}
- <span class="inline-flex items-center px-2.5 py-1 rounded text-sm font-mono font-semibold whitespace-nowrap transition-all duration-200" style="background-color: var(--type-{{ $articleType }}); border: 1px solid var(--type-{{ $articleType }}); color: var(--type-{{ $articleType }}-text);">
- {{ i18n $articleType }}
- </span>
- {{ end }}
- </div>
</div>
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index 483e90b..5562215 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -17,6 +17,26 @@
<i data-feather="user" class="w-4 h-4 shrink-0" aria-hidden="true"></i>
<span>{{ .Site.Params.author }}</span>
</li>
+ {{ if .PublishDate }}
+ <li class="flex items-center gap-2">
+ <i data-feather="calendar" class="w-4 h-4 shrink-0" aria-hidden="true"></i>
+ <time datetime="{{ .PublishDate.Format "2006-01-02T15:04:05Z07:00" }}">
+ {{ .PublishDate.Format "Jan 2, 2006" }}
+ </time>
+ </li>
+ {{ end }}
+ {{ if .Lastmod }}
+ {{ $lastmodDate := .Lastmod.Format "2006-01-02" }}
+ {{ $pubDate := .PublishDate.Format "2006-01-02" }}
+ {{ if ne $lastmodDate $pubDate }}
+ <li class="flex items-center gap-2">
+ <i data-feather="edit-2" class="w-4 h-4 shrink-0" aria-hidden="true"></i>
+ <time datetime="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}">
+ {{ .Lastmod.Format "Jan 2, 2006" }}
+ </time>
+ </li>
+ {{ end }}
+ {{ end }}
<li class="flex items-center gap-2">
<i data-feather="file-text" class="w-4 h-4 shrink-0" aria-hidden="true"></i>
<span>{{ .WordCount }} {{ i18n "words" }}</span>