mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-07 03:48:30 +02:00
* Improve rendering of Markdownified docs * Make frontmatter title rendering conditional
537 B
537 B
{{- $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 }}