mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-08 20:38:31 +02:00
* Improve rendering of Markdownified docs * Make frontmatter title rendering conditional
8 lines
537 B
Markdown
8 lines
537 B
Markdown
{{- $content := .RenderShortcodes -}}
|
|
{{- if not (strings.TrimSpace $content) }}# {{ .Title }}
|
|
{{ end -}}
|
|
{{- /* Rewrite internal absolute links: ](/path/to/page/) → ](https://qdrant.tech/path/to/page/index.md) */}}
|
|
{{- $content = replaceRE `\]\((/[^):]*/)([\)#?])` `](https://qdrant.tech${1}index.md${2}` $content -}}
|
|
{{- /* Rewrite internal relative links: ](../page/) or (./page/) → same with index.md */}}
|
|
{{- $content = replaceRE `\]\((\.\.?/[^):]*/)([\)#?])` `](https://qdrant.tech/${1}index.md${2}` $content -}}
|
|
{{ $content }} |