Skip to content
Snippets Groups Projects
volume.html 786 B
Newer Older
Olivia206's avatar
Olivia206 committed
<article class="volume" itemscope itemtype="https://schema.org/Book https://schema.org/PublicationVolume">
alexisben's avatar
alexisben committed
  <hgroup>
Olivia206's avatar
Olivia206 committed
    <p class="suptitle" itemprop="volumeNumber">{{ i18n "volumes.volume_number" (dict "Number" .Params.Number) }}</p>
    <h2><a href="{{ .Permalink }}" title="{{ i18n "commons.more_aria" (dict "Title" .Title) }}" itemprop="name">{{ partial "PrepareHTML" .Title }}</a></h2>
alexisben's avatar
alexisben committed
  </hgroup>
alexisben's avatar
alexisben committed
  <div class="media">
    {{- if .Params.image -}}
      {{- partial "commons/image.html"
            (dict
              "image"    .Params.image
              "alt"      .Title
alexisben's avatar
alexisben committed
              "sizes"    site.Params.image_sizes.sections.volumes.item
alexisben's avatar
alexisben committed
            ) -}}
    {{- else -}}
      {{- partial "commons/image-default.html" "volumes" -}}
alexisben's avatar
alexisben committed
    {{- end -}}
  </div>
</article>