{{ define "main" }}

  {{ $webmentions := false }}
  {{ if ne hugo.Environment "development" }}
    {{ $webmentions = getJSON "https://webmention.io/api/mentions.jf2?target=" .Permalink }}
  {{ end }}

  <section class="note h-entry">

    <p class="note-content p-content">{{ .Content | markdownify }}</p>

    <p class="meta-info">Published
      <time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
        {{ .Date.Format "Jan 02, 2006 15:04:05 MST" }}
      </time>
    </p>

    {{ if .Params.syndicated }}
      <h2>This post syndicated to:</h2>
      <ul>
        {{ range .Params.syndicated }}
          <li><a class="u-syndication" href="{{ . }}">{{ . }}</a></li>
        {{ end }}
      </ul>
    {{ end }}

    {{ if $webmentions }}{{ partial "mention-count" $webmentions }}{{ end }}
    {{ if $webmentions }}{{ partial "conversation" $webmentions }}{{ end }}

    <footer>
      <p><a href="/note">&larr; All notes</a></p>
    </footer>
  </section>

{{ end }}

{{ define "main" }}

  {{ $webmentions := false }}
  {{ if ne hugo.Environment "development" }}
    {{ $webmentions = getJSON "https://webmention.io/api/mentions.jf2?target=" .Permalink }}
  {{ end }}

  <section class="note h-entry">

    <p class="note-content p-content">{{ .Content | markdownify }}</p>

    <p class="meta-info">Published
      <time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
        {{ .Date.Format "Jan 02, 2006 15:04:05 MST" }}
      </time>
    </p>

    {{ with .Params.series }}
      <div>
        Part of the series
        {{ range . }}<a class="p-category" href="/series/{{ . | urlize }}">{{ . }}</a>{{ end }}
      </div>
    {{ end }}

    {{ if .Params.syndicated }}
      <h2>This post syndicated to:</h2>
      <ul>
        {{ range .Params.syndicated }}
          <li><a class="u-syndication" href="{{ . }}">{{ . }}</a></li>
        {{ end }}
      </ul>
    {{ end }}

    {{ if $webmentions }}{{ partial "mention-count" $webmentions }}{{ end }}
    {{ if $webmentions }}{{ partial "conversation" $webmentions }}{{ end }}

    <footer>
      <p><a href="/note">&larr; All notes</a></p>
    </footer>
  </section>

{{ end }}

Add series to notes template
Add series to notes template
