~bfiedler/website

a738c2b3fbfa84447dc59b42efc2111a941a6579 — Ben Fiedler 2 years ago be504b2
Use full name on chess post for consistency
1 files changed, 15 insertions(+), 11 deletions(-)

M layouts/_default/single.html
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" . }}