From c0ec67eb1eae80a190b716c9ceaeabeb12375a71 Mon Sep 17 00:00:00 2001 From: Vezpi Date: Tue, 10 Jun 2025 09:00:31 +0000 Subject: [PATCH] feat: change article header --- assets/icons/refresh.svg | 1 + assets/icons/stopwatch.svg | 1 + .../partials/article/components/details.html | 58 +++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 assets/icons/refresh.svg create mode 100644 assets/icons/stopwatch.svg create mode 100644 layouts/partials/article/components/details.html diff --git a/assets/icons/refresh.svg b/assets/icons/refresh.svg new file mode 100644 index 0000000..8b656b5 --- /dev/null +++ b/assets/icons/refresh.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/icons/stopwatch.svg b/assets/icons/stopwatch.svg new file mode 100644 index 0000000..cb46a6a --- /dev/null +++ b/assets/icons/stopwatch.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html new file mode 100644 index 0000000..50cc5bd --- /dev/null +++ b/layouts/partials/article/components/details.html @@ -0,0 +1,58 @@ +
+ {{ if .Params.categories }} + + {{ end }} + +
+

+ + {{- .Title -}} + +

+ + {{ with .Params.description }} +

+ {{ . }} +

+ {{ end }} +
+ + {{ $showReadingTime := .Params.readingTime | default (.Site.Params.article.readingTime) }} + {{ $showDate := not .Date.IsZero }} + {{ $showFooter := or $showDate $showReadingTime }} + {{ if $showFooter }} + + {{ end }} +