Compare commits

...

2 commits

4 changed files with 12 additions and 4 deletions

View file

@ -44,7 +44,6 @@ html {
color: $dark;
background-color: $light;
font-family: $default-font;
font-variant-numeric: oldstyle-nums slashed-zero;
writing-mode: horizontal-tb;
}
@ -65,6 +64,7 @@ hgroup {
p {
text-wrap: pretty;
font-variant-numeric: oldstyle-nums;
margin-block: 1em;
margin-block: 1lh;
}

View file

@ -35,7 +35,7 @@ table {
& td {
padding: 0.5em 1em;
border: 1px solid $dark;
font-variant-numeric: lining-nums tabular-nums;
font-variant-numeric: lining-nums tabular-nums slashed-zero;
}
}
}

View file

@ -86,7 +86,11 @@
</span>
{{ end }}
{{- partial "text/item-title.html" ( dict "pc" . "sc" $ "class" "item-tile" ) -}}
{{- if .File -}}
{{- partialCached "text/item-title.html" ( dict "pc" . "sc" $ "class" "item-tile" ) .File.Filename -}}
{{- else -}}
{{- partial "text/item-title.html" ( dict "pc" . "sc" $ "class" "item-tile" ) -}}
{{- end -}}
<p style="display: none;">

View file

@ -40,7 +40,11 @@
<div class="article-header__title-wrapper">
<a class="u-url u-uid" style="display: none" href="{{ .pc.Permalink }}"></a>
{{- partialCached "text/item-title.html" ( dict "pc" .pc "sc" .sc "class" "article-header" ) .File.Filename -}}
{{- with .pc.File -}}
{{- partialCached "text/item-title.html" ( dict "pc" $.pc "sc" $.sc "class" "article-header" ) .Filename -}}
{{- else -}}
{{- partial "text/item-title.html" ( dict "pc" $.pc "sc" $.sc "class" "article-header" ) -}}
{{- end -}}
</div>
{{ with ( .pc.Resources.GetMatch .pc.Params.featured_image ) }}