File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed
themes/hugo-sustain/layouts Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 2525 </ div >
2626 < h3 > Documentation</ h3 >
2727 < h4 class ="selected-version ">
28- version: < strong > {{ replace (replace .File.Dir "documentation" "") "/" ""}}</ strong >
28+ version: < strong > {{ replace (replace .File.Dir "documentation" "") "/" "" }}</ strong >
2929 </ h4 >
3030 </ div >
3131 < div class ="panel panel-default ">
Original file line number Diff line number Diff line change @@ -39,14 +39,15 @@ <h1 class="home-section-title">Latest blog posts</h1>
3939 < section class ="home-section docs ">
4040 < h1 class ="home-section-title "> Check our documentation</ h1 >
4141 < div class ="docs-list ">
42- {{ range first 3 (where .Data.Pages "Type" "documentation") }}
43-
44- < a href ="{{ .RelPermalink }} " class ="doc-item ">
45- < div >
46- < h5 class ="doc-title "> {{ .Title | markdownify }}</ h5 >
47- < div class ="doc-description "> {{ .Description }}</ div >
48- </ div >
49- </ a >
42+ {{ $latestDocsDir := (print "documentation/" .Site.Params.latestDocs) }}
43+ {{ $latestDocsDir := (print $latestDocsDir "/") }}
44+ {{ range first 3 (where .Site.Pages "File.Dir" $latestDocsDir) }}
45+ < a href ="{{ .RelPermalink }} " class ="doc-item ">
46+ < div >
47+ < h5 class ="doc-title "> {{ .Title | markdownify }}</ h5 >
48+ < div class ="doc-description "> {{ .Description }}</ div >
49+ </ div >
50+ </ a >
5051 {{ end }}
5152 </ div >
5253 < div class ="home-section-more ">
You can’t perform that action at this time.
0 commit comments