refactor: item tile headers
This commit is contained in:
parent
d81c72a9dd
commit
0ed6a77690
5 changed files with 72 additions and 68 deletions
|
@ -40,14 +40,7 @@
|
|||
|
||||
<div class="article-header__title-wrapper">
|
||||
<a class="u-url u-uid" style="display: none" href="{{ .pc.Permalink }}"></a>
|
||||
<hgroup class="p-name" itemprop="name">
|
||||
<h2 class="article-header__title {{ if gt ( len ( .pc.Title | plainify ) ) 40 }}article-header__title--long{{ end }}">
|
||||
{{- default .pc.Title .pc.Params.markup_title | .pc.Page.RenderString -}}
|
||||
</h2>
|
||||
{{ with .pc.Params.subtitle }}
|
||||
<p class="article-header__subtitle">{{ . | $.pc.Page.RenderString }}</p>
|
||||
{{ end }}
|
||||
</hgroup>
|
||||
{{- partialCached "text/item-title.html" ( dict "pc" .pc "sc" .sc "class" "article-header" ) .File.Filename -}}
|
||||
</div>
|
||||
|
||||
{{ with ( .pc.Resources.GetMatch .pc.Params.featured_image ) }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue