Website: prevent newline after shortcodes

This commit is contained in:
Sybren A. Stüvel 2025-01-09 11:12:55 +01:00
parent e4692e77e8
commit 94687f78e9
8 changed files with 19 additions and 13 deletions

View File

@ -3,3 +3,4 @@
{{- $extension := .Get "ext" | default "tar.gz" -}}
{{- $filename := printf "flamenco-%s-%s-%s.%s" $.Site.Data.flamenco.latestExperimentalVersion $os $arch $extension -}}
<a class="flamenco-download-link" href="/downloads/{{ $filename }}">{{ $filename }}</a>
{{- "" -}}

View File

@ -4,3 +4,4 @@
{{- $version := .Get "version" | default $.Site.Data.flamenco.latestVersion -}}
{{- $filename := printf "flamenco-%s-%s-%s.%s" $version $os $arch $extension -}}
<a class="flamenco-download-link" href="/downloads/{{ $filename }}">{{ $filename }}</a>
{{- "" -}}

View File

@ -1 +1 @@
{{ $.Site.Data.flamenco.latestExperimentalVersion }}
{{- $.Site.Data.flamenco.latestExperimentalVersion -}}

View File

@ -1 +1 @@
{{ $.Site.Data.flamenco.latestVersion }}
{{- $.Site.Data.flamenco.latestVersion -}}

View File

@ -9,3 +9,5 @@
<a class="{{ with $class }}{{ printf " %s" . }}{{ end }}"
{{- with $ref }}{{ printf " href=\"%s\"" . | safeHTMLAttr }}{{ end }}
>{{ $.Inner }}</a>
{{- "" -}}

View File

@ -1,2 +1,3 @@
{{- $filename := printf "flamenco-%s.sha256" $.Site.Data.flamenco.latestVersion -}}
<a class="flamenco-download-link" href="/downloads/{{ $filename }}">{{ $filename }}</a>
{{- "" -}}

View File

@ -1,2 +1,3 @@
{{- $filename := printf "flamenco-%s.sha256" $.Site.Data.flamenco.latestExperimentalVersion -}}
<a class="flamenco-download-link" href="/downloads/{{ $filename }}">{{ $filename }}</a>
{{- "" -}}

View File

@ -7,14 +7,14 @@
<!-- This TOC Excludes the current section index and the current page -->
<div>
{{ $current_page_title := .Page.Title }}
<ul>
{{ range .Page.CurrentSection.Data.Pages.ByWeight }}
{{ if ne .Page.Title $current_page_title }}
<li>
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
</li>
{{ end }}
{{ end }}
</ul>
</div>
{{ $current_page_title := .Page.Title }}
<ul>
{{ range .Page.CurrentSection.Data.Pages.ByWeight }}
{{ if ne .Page.Title $current_page_title }}
<li>
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
</li>
{{ end }}
{{ end }}
</ul>
</div>