Skip to content

Commit 4941a75

Browse files
committed
Migrate the latest-*.txt files to Hugo
Now those are generated automatically, too. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 5d3cbce commit 4941a75

File tree

6 files changed

+22
-2
lines changed

6 files changed

+22
-2
lines changed

content/latest-tag.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
outputs:
3+
- latest
4+
type: tag
5+
---
6+

content/latest-version.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
outputs:
3+
- latest
4+
type: version
5+
---

hugo.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,16 @@ mediaTypes:
1313
application/vnd.curl:
1414
suffixes:
1515
- url
16+
application/vnd.latest:
17+
suffixes:
18+
- txt
1619
outputFormats:
1720
url:
1821
mediaType: application/vnd.curl
1922
noUgly: false
23+
latest:
24+
mediaType: application/vnd.latest
25+
noUgly: false
2026
module:
2127
mounts:
2228
- source: content

latest-tag.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

latest-version.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

layouts/_default/single.latest.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{{- if eq "tag" .Params.type -}}
2+
{{- .Site.Params.tag_name -}}
3+
{{- else if eq "version" .Params.type -}}
4+
{{- .Site.Params.version -}}
5+
{{- end -}}

0 commit comments

Comments
 (0)