diff --git a/layouts/partials/changelog-date.html b/layouts/partials/changelog-date.html new file mode 100644 index 0000000..b239a72 --- /dev/null +++ b/layouts/partials/changelog-date.html @@ -0,0 +1,21 @@ + +{{ $productUrl := .Page.Permalink }} +{{ $baseUrl := .Site.BaseURL }} +{{ $linkSplit := split (replace $productUrl $baseUrl "") "/" }} +{{ $productName := index $linkSplit 0 }} + +{{ $changelogContent := readFile (printf "content/%s/changelog.md" $productName) }} +{{ $maxNumLogs := 3 }} +{{ $headings := first $maxNumLogs (findRE `(?m)^##\s(.+)$` $changelogContent) }} + +
No changelog found...