Skip to content

Commit d99e979

Browse files
authored
theme: Display date on news items from content adapter
1 parent 6c93dac commit d99e979

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<a
2222
class="flex col-span-1 a--block cursor-pointer flex-col group border p-3 sm:p-4 hover:shadow-md dark:shadow-slate-800 border-gray-300 dark:border-gray-800 m-0"
2323
href="{{ or .Params.permalink .RelPermalink }}">
24-
{{ if .Params.show_publish_date }}
24+
{{ if or .Params.show_publish_date (eq .Section "news") }}
2525
{{ with .PublishDate }}
2626
<p
2727
class="text-gray-500 dark:text-gray-400 text-sm/5 md:text-base/2 mb-2 sm:mb-4">

0 commit comments

Comments
 (0)