Skip to content

Commit ee2b9a2

Browse files
authored
expiryDate references removed
1 parent d5bfcbb commit ee2b9a2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

content/post/_content.gotmpl

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,8 @@
5757
{{ $startAt := time.AsTime .attributes.startAt }}
5858
{{ $weight := mul -1 $startAt.Unix }}
5959

60-
{{/* Set expiryDate one day later */}}
61-
{{ $expiryDate := $startAt.AddDate 0 0 1 }}
62-
63-
{{/* Set "Posted on" and expiry date. */}}
64-
{{ $dates := dict "date" (time.AsTime .attributes.publishedAt) /*"expiryDate" $expiryDate */}}
60+
{{/* Set "Posted on" date. */}}
61+
{{ $dates := dict "date" (time.AsTime .attributes.publishedAt) }}
6562

6663
{{/* Add page. */}}
6764
{{ $page := dict

0 commit comments

Comments
 (0)