Skip to content
Snippets Groups Projects
single.html 1.28 KiB
Newer Older
alexisben's avatar
alexisben committed
{{ define "main" }}
  {{ partial "posts/hero-single.html" . }}

  <article itemscope itemtype="https://schema.org/NewsArticle">
    <meta itemprop="headline" content="{{ partial "PrepareHTML" .Title }}">
    <meta itemprop="url" content="{{ .Permalink }}">
    {{ if .Date }}<meta itemprop="datePublished" content="{{ .Date.Format "2006-01-02T15:04" }}">{{ end }}
    {{ if .Params.description_short }}<meta itemprop="abstract" content="{{ partial "PrepareHTML" .Params.description_short }}">{{ end }}
    {{ if .Summary }}<meta itemprop="description" content="{{ partial "PrepareHTML" .Summary }}">{{ end }}

alexisben's avatar
alexisben committed
    <div class="content-blocks">
      {{ partial "posts/aside.html" . }}
      <div class="blocks blocks-chapo">
        <div class="container">
          <div class="block-content">
alexisben's avatar
alexisben committed
            {{ partial "posts/chapo.html" .Params.description_short }}
            {{ partial "posts/image.html" .Params.image }}
            {{ partial "posts/body.html" . }}
alexisben's avatar
alexisben committed
          </div>
        </div>
      </div>
      {{ partial "blocks/list.html" .Params.blocks }}
      <div class="blocks blocks-pagination">
        <div class="container">
          <div class="block-content">
alexisben's avatar
alexisben committed
            {{ partial "posts/prevnext.html" . }}
          </div>
        </div>
      </div>
alexisben's avatar
alexisben committed
    </div>
alexisben's avatar
alexisben committed
  </article>
{{ end }}