+ {{ end }}
{{ end }}
diff --git a/layouts/partials/components/post-meta.html b/layouts/partials/components/post-meta.html
index a031a28..502e185 100644
--- a/layouts/partials/components/post-meta.html
+++ b/layouts/partials/components/post-meta.html
@@ -1,37 +1,38 @@
{{- /*
The component where it will display the metadata of the post.
- This is used on list templates but feel free to change that.
*/ -}}
-{{- $RFC3339 := "2006-01-02T15:04:05Z07:00" }}
-
- {{- if ne (.PublishDate.Format "2006") "0001" -}}
-
- {{ partial "components/heroicon.html" "calendar" }}
-
-
- {{- end }}
-
- {{- if and .GitInfo (ne (.PublishDate.Format "2006-01-02") (.Lastmod.Format "2006-01-02")) }}
-
- {{ partial "components/heroicon.html" "arrow-path" }}
-
-
- {{- end }}
-
- {{- /* The authors are appended with 'et al' if there's more than one author in the map. */ -}}
- {{ with .Params.author }}
- {{- $names := slice }}
- {{- range . }}{{ $names = $names | append .name }}{{ end }}
- {{- $author := index (first 1 $names) 0 }}
-
- {{ partial "components/heroicon.html" "pencil" }}
-
- {{ $author }}{{ if ge (len .) 2 }}, et al.{{ end }}
+{{- if or .PublishDate .Lastmod }}
+ {{- $RFC3339 := "2006-01-02T15:04:05Z07:00" }}
+
+ {{- if .PublishDate -}}
+
+ {{ partial "components/heroicon.html" "calendar" }}
+
-
- {{ end }}
-
+ {{- end }}
+
+ {{- if ne (.PublishDate.Format "2006-01-02") (.Lastmod.Format "2006-01-02") }}
+
+ {{ partial "components/heroicon.html" "arrow-path" }}
+
+
+ {{- end }}
+
+ {{- /* The authors are appended with 'et al' if there's more than one author in the map. */ -}}
+ {{- with .Params.author }}
+ {{- $names := slice }}
+ {{- range . }}{{ $names = $names | append .name }}{{ end }}
+ {{- $author := index (first 1 $names) 0 }}
+
+ {{ partial "components/heroicon.html" "pencil" }}
+
+ {{ $author }}{{ if ge (len .) 2 }}, et al.{{ end }}
+
+
+ {{- end }}
+