Skip to content

Commit 385a8b0

Browse files
authored
Consolidate & clean up output fmt config (#9586)
1 parent c64fc02 commit 385a8b0

File tree

16 files changed

+32
-44
lines changed

16 files changed

+32
-44
lines changed

config/_default/hugo.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ outputFormats:
9696
notAlternative: true
9797

9898
outputs:
99-
home: [HTML, RSS]
100-
section: [HTML]
99+
home: &home-outputs [HTML, RSS]
100+
section: &section-outputs [HTML]
101101

102102
services:
103103
rss: { limit: 20 }
@@ -106,6 +106,22 @@ cascade:
106106
- build: { list: never, publishResources: false, render: never }
107107
target: { path: '{,/**}/_includes{,/**}' }
108108

109+
# Enable redirects for site root (and not locales)
110+
- outputs:
111+
# This must match the equivalent of [*home-outputs, redirects]
112+
[HTML, RSS, redirects]
113+
target:
114+
kind: home
115+
sites: { matrix: { languages: [en] } }
116+
117+
# Enable RSS for blog section
118+
- outputs:
119+
# This must match the equivalent of [*section-outputs, RSS]
120+
[HTML, RSS]
121+
target:
122+
kind: section
123+
path: '/blog'
124+
109125
params:
110126
copyright:
111127
authors: >-

content/bn/_index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
title: OpenTelemetry
33
description: >-
44
ইফেক্টিভ অবজারভেবিলিটির জন্য উচ্চ-মানের, সর্বজনীন ও পোর্টেবল টেলিমেট্রি প্রদান
5-
outputs:
6-
- HTML
75
developer_note:
86
The blocks/cover shortcode (used below) will use as a background image any
97
image file containing "background" in its name.

content/en/_index.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
---
22
title: OpenTelemetry
33
description: The open standard for telemetry
4-
outputs:
5-
- HTML
6-
# Include the following for `content/en` ONLY
7-
- REDIRECTS
8-
- RSS
9-
developer_note: >
4+
developer_note:
105
The blocks/cover shortcode (used below) will use as a background image any
116
image file containing "background" in its name.
127
params:

content/en/blog/_index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: Blog
33
menu: { main: { weight: 50 } }
4-
outputs: [HTML, RSS]
54
htmltest:
65
# 2024-11-07 DO NOT COPY the following IgnoreDirs to non-en pages because it handles all locales.
76
IgnoreDirs:

content/en/ecosystem/registry/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ weight: 20
1515
# =============================================================================
1616

1717
aliases: [/registry/*]
18-
outputs: [html, json]
18+
outputs: [HTML, JSON]
1919

2020
# The redirects and aliases implement catch-all rules for old registry entries;
2121
# we don't publish individual entry pages anymore.

content/es/_index.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
---
22
title: OpenTelemetry
33
description: El estándar abierto para telemetría
4-
outputs:
5-
- HTML
6-
developer_note: >
4+
developer_note:
75
La macro para los bloques/portada usa como imagen de fondo cualquier archivo
86
de imagen que contenga la palabra "background" en su nombre.
9-
default_lang_commit: 48f579c733f727417a51edb81a294151e5878d4d
7+
default_lang_commit: 48f579c733f727417a51edb81a294151e5878d4d # patched
108
params:
119
btn-lg: class="btn btn-lg btn-{1}" role="button"
1210
show_banner: true

content/es/blog/_index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
22
title: Blog
33
menu: { main: { weight: 50 } }
4-
outputs: [HTML, RSS]
54
description: Blog de OpenTelemetry
6-
default_lang_commit: 8db6d6246fb8479c02c320d9acb451d9f3c9df4b
5+
default_lang_commit: 8db6d6246fb8479c02c320d9acb451d9f3c9df4b # patched
76
drifted_from_default: true
87
---

content/ja/blog/_index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
---
22
title: ブログ
33
menu: { main: { weight: 50 } }
4-
outputs: [HTML, RSS]
54
description: OpenTelemetry ブログ
6-
default_lang_commit: 94d77ab8cbfe5552a7cd68bf677be86c574a613a
5+
default_lang_commit: 94d77ab8cbfe5552a7cd68bf677be86c574a613a # patched
76
drifted_from_default: true
87
---
98

content/pl/_index.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
---
22
title: OpenTelemetry
33
description: The open standard for telemetry
4-
outputs:
5-
- HTML
6-
developer_note: >
4+
developer_note:
75
The blocks/cover shortcode (used below) will use as a background image any
86
image file containing "background" in its name.
97
params:
108
btn-lg: class="btn btn-lg btn-{1}" role="button"
119
show_banner: true
12-
default_lang_commit: 48f579c733f727417a51edb81a294151e5878d4d
10+
default_lang_commit: 48f579c733f727417a51edb81a294151e5878d4d # patched
1311
---
1412

1513
{{% blocks/cover image_anchor="top" height="max td-below-navbar" %}}

content/pt/_index.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
---
22
title: OpenTelemetry
33
description: O padrão aberto para telemetria
4-
outputs:
5-
- HTML
6-
developer_note: >
4+
developer_note:
75
O shortcode blocks/cover (usado abaixo) vai servir como imagem de background
86
para qualquer arquivo de imagem que contenha "background" no nome.
9-
default_lang_commit: 48f579c733f727417a51edb81a294151e5878d4d
7+
default_lang_commit: 48f579c733f727417a51edb81a294151e5878d4d # patched
108
params:
119
btn-lg: class="btn btn-lg btn-{1}" role="button"
1210
show_banner: true

0 commit comments

Comments
 (0)