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

alexisben's avatar
alexisben committed
  <div class="document-content" itemscope itemtype="https://schema.org/NewsArticle">
alexisben's avatar
alexisben committed
    <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
    {{ partial "posts/aside.html" . }}
alexisben's avatar
alexisben committed

    {{ partial "posts/chapo.html" (dict
        "context" .
        "block_wrapped" true
      ) }}

alexisben's avatar
alexisben committed
    {{ partial "blocks/list.html" . }}
alexisben's avatar
alexisben committed
    <div class="block block-pagination">
alexisben's avatar
alexisben committed
      <div class="container">
        <div class="block-content">
          {{ partial "posts/prevnext.html" . }}
alexisben's avatar
alexisben committed
        </div>
      </div>
alexisben's avatar
alexisben committed
    </div>
alexisben's avatar
alexisben committed
  </div>
alexisben's avatar
alexisben committed
{{ end }}