M layouts/_default/single.html => layouts/_default/single.html +15 -11
@@ 1,17 1,21 @@
{{ define "main" }}
{{ partial "header.html" (dict "context" . "IsDetailed" false) }}
<main class="blogpost">
- <article>
- <header>
- <h1 class="article-title">{{ .Title }}</h1>
- {{ .Render "meta" }}
- </header>
- {{ $content := .Content }}
- {{- if in .Params.tags "math" }}
- {{ $content = replace $content "$" "<span class=\"inline-math\">$</span>" | safeHTML }}
- {{- end }}
- <section>{{ $content }}</section>
- </article>
+ <article>
+ <header>
+ {{- if .Params.Tournaments }}
+ <h1 class="article-title">{{ .Params.Tournaments }} - {{ .Title }}</h1>
+ {{- else }}
+ <h1 class="article-title">{{ .Title }}</h1>
+ {{- end }}
+ {{ .Render "meta" }}
+ </header>
+ {{ $content := .Content }}
+ {{- if in .Params.tags "math" }}
+ {{ $content = replace $content "$" "<span class=\"inline-math\">$</span>" | safeHTML }}
+ {{- end }}
+ <section>{{ $content }}</section>
+ </article>
</main>
{{ partial "openring.html" . }}
{{ partial "footer.html" . }}