Skip to content

Commit

Permalink
Don't try to format non-existent date
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodmillman committed Mar 15, 2022
1 parent f7182c0 commit c27d64c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layouts/shortcodes/youtube.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@
{{- $title = $page.Params.title -}}
{{- $venue = $page.Params.venue -}}
{{- $author = $page.Params.author -}}
{{- $date = time.Format "Jan 2, 2006" $page.Params.date -}}
{{ if $page.Params.date }}
{{- $date = time.Format "Jan 2, 2006" $page.Params.date -}}
{{ end }}
{{- $transcript = $page.RawContent -}}

{{- end -}}
Expand Down

0 comments on commit c27d64c

Please sign in to comment.