diff --git a/blog/templates/fragments/topbar.html b/blog/templates/fragments/topbar.html new file mode 100644 index 00000000..e47399be --- /dev/null +++ b/blog/templates/fragments/topbar.html @@ -0,0 +1,21 @@ +{{ define "blog/fragments/topbar" }} +
+ +
+{{ end }} diff --git a/blog/templates/index.html b/blog/templates/index.html index d85b4527..2e20e2a1 100644 --- a/blog/templates/index.html +++ b/blog/templates/index.html @@ -9,25 +9,7 @@ {{ define "bodyClasses" }}!bg-white dark:!bg-gray-900{{ end }} {{ define "topbarLayout" }} -
- -
+ {{ template "blog/fragments/topbar" . }} {{ end }} {{ define "content" }} diff --git a/blog/templates/post.html b/blog/templates/post.html index d0705434..0eaaa521 100644 --- a/blog/templates/post.html +++ b/blog/templates/post.html @@ -20,9 +20,7 @@ {{ define "bodyClasses" }}!bg-white dark:!bg-gray-900{{ end }} {{ define "topbarLayout" }} -
- {{ template "layouts/fragments/topbar" . }} -
+ {{ template "blog/fragments/topbar" . }} {{ end }} {{ define "footerLayout" }}{{ template "blog/fragments/footer" . }}{{ end }} @@ -33,10 +31,14 @@
{{ $authors := .Post.Meta.Authors }} -

- {{ $date := .Post.ParsedDate }} - {{ $date | shortTimeFmt }} -

+
+ {{ i "arrow-left" "size-4" }} all posts + ยท +

+ {{ $date := .Post.ParsedDate }} + {{ $date | shortTimeFmt }} +

+

{{ .Post.Meta.Title }}