refactor: make article-list/compact better for term pages (#1289)
* refactor: rename article-time class to article-footer for consistency * feat: show the number of subpages in `article-compact` when the page is a term
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
{{ $showDate := not $Page.Date.IsZero }}
|
||||
{{ $showFooter := or $showDate $showReadingTime }}
|
||||
{{ if $showFooter }}
|
||||
<footer class="article-time">
|
||||
<footer class="article-footer">
|
||||
{{ if $showDate }}
|
||||
<div>
|
||||
{{ partial "helper/icon" "date" }}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<h2 class="article-title">
|
||||
{{- $link.title -}}
|
||||
</h2>
|
||||
<footer class="article-time">
|
||||
<footer class="article-footer">
|
||||
{{ with $link.description }}
|
||||
{{ . }}
|
||||
{{ else }}
|
||||
|
||||
Reference in New Issue
Block a user