open-telemetry / opentelemetry.io

The OpenTelemetry website and documentation
https://opentelemetry.io
Creative Commons Attribution 4.0 International
528 stars 1.14k forks source link

Codify common page weights #2850

Open svrnm opened 1 year ago

svrnm commented 1 year ago

Follow up to https://github.com/open-telemetry/opentelemetry.io/issues/2829: to avoid drift we should find a way to codify the page weights so that new pages have them set properly ootb or that existing pages are not changed by accident.

svrnm commented 1 year ago

@chalin question, would it be possible to use a variable for the weight, e.g. something like

---
title: Manual Instrumentation
linkTitle: Manual
weight: {{ .weights.manual }}
---
chalin commented 1 year ago

Unfortunately, Hugo doesn't support the use of template expressions in front matter. I'll need to think about a solution bit more.

svrnm commented 1 year ago

Unfortunately, Hugo doesn't support the use of template expressions in front matter. I'll need to think about a solution bit more.

Thank you! It's not super urgent, more a matter of "if we forget about this in 12 months from now we will have drift again"