website/docs/segments/cli/umbraco.mdx
Display current Umbraco Version if found inside the current working directory. The segment will only show based on the following logic
import Config from '@site/src/components/Config.js';
<Config data={{ "type": "umbraco", "background": "#ffffff", "foreground": "#d886f1", "style": "diamond", "leading_diamond": "\ue0b6", "trailing_diamond": "\ue0b4", "template": "\udb81\udd49 {{ .Version }}", "background_templates": [ "{{ if (.Modern) }}#3544B1{{ end }}", "{{ if not (.Modern) }}#F79C37{{ end }}" ] }}/>
:::note default template
{{ .Version }}
:::
| Name | Type | Description |
|---|---|---|
.Modern | boolean | a boolean to determine if this is modern Umbraco V9+ using modern .NET or if it's legacy Umbraco using .NET Framework |
.Version | string | the version of umbraco found |