Skip to content

Commit

Permalink
Fix PD block times (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
illicitonion authored Oct 1, 2023
1 parent b5ece8a commit ae8580b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layouts/partials/block/pd.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
}}
{{ $markdownContent := index $contentParts 1 }}
{{ $parsedFrontMatter := $frontMatter | transform.Unmarshal }}
{{/* We get PD times from the font-matter in the PD CMS, not the block's own front-matter */}}
{{ .Page.Scratch.SetInMap "blockData" "time" $parsedFrontMatter.time }}
{{ $block := $parsedFrontMatter | default $blockData }}


Expand Down

0 comments on commit ae8580b

Please sign in to comment.