Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions assets/sass/_theme/blocks/pages.sass
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
> li
border-bottom: none
padding: 0
.page-title
.page-title,
.page-subtitle
@include h3
+ li
margin-top: $spacing-4
Expand Down Expand Up @@ -149,7 +150,8 @@
&--alternate
.pages
@include layout-alternate
.page-title
hgroup,
> .page-title
+ p
margin-top: $spacing-1
&--large
Expand Down
4 changes: 4 additions & 0 deletions assets/sass/_theme/design-system/article.sass
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
position: relative
display: flex
flex-direction: column
*:where([class$="-subtitle"])
color: var(--color-text-alt)
.media
margin-bottom: $spacing-3
order: -1
Expand Down Expand Up @@ -33,3 +35,5 @@
@include stretched-link(before)
display: block
text-decoration: none
+ *:where([class$="-subtitle"])
@include h3
8 changes: 4 additions & 4 deletions assets/sass/_theme/design-system/layouts/cards.sass
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
color: $color
padding: $spacing-3
position: relative
transition: background $background-duration, color $background-duration
[class$="-title"]
@include h3
transition: background $background-duration
*:where([class$="-title"])
@include article-title
a
color: inherit
[class$="-content"]
Expand All @@ -29,7 +29,7 @@
padding-top: $spacing-4
margin-top: auto
a, p
transition: text-decoration-color .3s ease, color .3s ease
transition: text-decoration-color $background-duration ease, color $background-duration ease
&:hover
background-color: $background-hover
&, a, p
Expand Down
2 changes: 1 addition & 1 deletion assets/sass/_theme/design-system/layouts/grid.sass
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@include layout-item
@include small-arrow-right-hover('.more')
*:where([class$="-title"])
@include h2
@include article-title
&:not(:has(.more))
[class$="-title"]
a
Expand Down
6 changes: 4 additions & 2 deletions assets/sass/_theme/design-system/layouts/large.sass
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
@include article
@include layout-item
@include small-arrow-right-hover('.more')
[class$="-title"]
[class$="-title"],
[class$="-subtitle"]
@include h2
@include media-breakpoint-down(desktop)
.media
Expand All @@ -26,7 +27,8 @@
@include in-page-without-sidebar
article
align-items: center
[class$="-title"]
[class$="-title"],
[class$="-subtitle"]
@include lead
[class$="-content"]
width: columns(6)
Expand Down
15 changes: 4 additions & 11 deletions assets/sass/_theme/sections/categories.sass
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,7 @@ body:where([class*="_categories__term"])
margin-bottom: var(--grid-gutter)
margin-top: var(--grid-gutter)

.categories
&--alternate
@include layout-alternate
&--cards
@include layout-cards
&--grid
@include layout-grid
&--large
@include layout-large
&--list
@include layout-list
@include layout-defaults(".categories")

.categories--cards
@include layout-cards
1 change: 0 additions & 1 deletion assets/sass/_theme/sections/events/item.sass
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
@include stretched-link
text-decoration: none
&-subtitle
@include h3
color: var(--color-text-alt)
&-categories
@include item-categories-list
Expand Down
3 changes: 0 additions & 3 deletions assets/sass/_theme/sections/events/layouts.sass
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,6 @@
&-schedule
@include meta
margin-top: $spacing-2
&-content
.event-title, hgroup
@include h3
&-description
margin-top: $spacing-2
.media
Expand Down
4 changes: 0 additions & 4 deletions assets/sass/_theme/sections/exhibitions/layouts.sass
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
@include layout-list
&--grid
@include layout-grid(2)
.exhibition
&-title,
&-subtitle
@include h3
&--cards
@include layout-cards
&--large
Expand Down
2 changes: 0 additions & 2 deletions assets/sass/_theme/sections/locations.sass
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@
@include in-page-without-sidebar
@include grid(3)
.location
.location-title
@include h3
address + .location-description
margin-top: $spacing-2

Expand Down
9 changes: 2 additions & 7 deletions assets/sass/_theme/sections/pages.sass
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
.page
@include article($aspect-ratio: $page-media-aspect-ratio)
.page-title
@include h4
.more
@include icon(arrow-right-line, after, true)
@include hover-translate-icon(after)
Expand All @@ -23,10 +21,7 @@
&--grid
@include layout-grid
.page
.page-title
@include h3
a
@include icon(arrow-right-line, after, true)
@include hover-translate-icon(after)
hgroup,
> .page-title
+ p
margin-top: $spacing-1
10 changes: 2 additions & 8 deletions assets/sass/_theme/sections/posts.sass
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
.post
@include article
.post-title
@include h3
a
@include stretched-link
display: block
text-decoration: none
.post-subtitle
@include h3
color: var(--color-text-alt)
@include article-title

.federated
order: -1
.post-meta,
Expand Down
4 changes: 0 additions & 4 deletions assets/sass/_theme/sections/projects.sass
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
.project-title,
.project-subtitle
@include article-title
.project-subtitle
color: var(--color-text-alt)
.project-summary
margin-top: $spacing-2
.project-categories
Expand All @@ -29,8 +27,6 @@
.project
&-content
align-items: baseline
&-subtitle
@include h3
@include media-breakpoint-down(md)
> li + li
margin-top: $spacing-4
Expand Down
1 change: 1 addition & 0 deletions hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ params:
image: true
main_summary: false
summary: true
subtitle: true
truncate_description: 200 # Set to 0 to disable truncate
single:
taxonomies:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{{ $options := .options }}
{{ $heading_tag := partial "GetHeadingTag" (dict
"level" ( .heading_level | default 3 )
"attributes" "class='page-title'"
) }}
{{ $heading_level := .heading_level }}

<ul class="pages pages--alternate">
{{ range .pages }}
Expand All @@ -14,11 +11,11 @@
{{ end }}
<li>
<article class="page {{ $image_class }}">
{{ $heading_tag.open }}
<a href="{{- .Permalink -}}">
{{- partial "PrepareHTML" .Title -}}
</a>
{{ $heading_tag.close }}
{{ partial "pages/partials/page/heading.html" (dict
"item" .
"level" $heading_level
"options" $options
) }}

{{- partial "pages/partials/page/hook-after-title.html" . -}}

Expand Down
15 changes: 6 additions & 9 deletions layouts/partials/pages/partials/layouts/cards/cards.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{{ $options := .options }}
{{ $heading_tag := partial "GetHeadingTag" (dict
"level" ( .heading_level | default 3 )
"attributes" "class='page-title'"
) }}
{{ $heading_level := .heading_level }}

<ul class="pages pages--cards">
{{ range .pages }}
Expand All @@ -11,11 +8,11 @@
<li>
<article class="page">
<div class="page-content">
{{ $heading_tag.open }}
<a href="{{- .Permalink -}}">
{{- partial "PrepareHTML" .Title -}}
</a>
{{ $heading_tag.close }}
{{ partial "pages/partials/page/heading.html" (dict
"item" .
"level" $heading_level
"options" $options
) }}

{{- partial "pages/partials/page/hook-after-title.html" . -}}

Expand Down
15 changes: 6 additions & 9 deletions layouts/partials/pages/partials/layouts/grid/grid.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{{ $options := .options }}
{{ $heading_tag := partial "GetHeadingTag" (dict
"level" ( .heading_level | default 3 )
"attributes" "class='page-title'"
) }}
{{ $heading_level := .heading_level }}

{{ with .pages }}
<ul class="pages pages--grid">
Expand All @@ -19,11 +16,11 @@
{{ with $page }}
<li>
<article class="page">
{{ $heading_tag.open }}
<a href="{{- .Permalink -}}">
{{- partial "PrepareHTML" .Title -}}
</a>
{{ $heading_tag.close }}
{{ partial "pages/partials/page/heading.html" (dict
"item" .
"level" $heading_level
"options" $options
) }}

{{- partial "pages/partials/page/hook-after-title.html" . -}}

Expand Down
15 changes: 6 additions & 9 deletions layouts/partials/pages/partials/layouts/large/large.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{{ $options := .options }}
{{ $heading_tag := partial "GetHeadingTag" (dict
"level" ( .heading_level | default 3 )
"attributes" "class='page-title'"
) }}
{{ $heading_level := .heading_level }}

<ul class="pages pages--large">
{{ range .pages }}
Expand All @@ -11,11 +8,11 @@
<li>
<article class="page">
<div class="page-content">
{{ $heading_tag.open }}
<a href="{{- .Permalink -}}">
{{- partial "PrepareHTML" .Title -}}
</a>
{{ $heading_tag.close }}
{{ partial "pages/partials/page/heading.html" (dict
"item" .
"level" $heading_level
"options" $options
) }}

{{- partial "pages/partials/page/hook-after-title.html" . -}}

Expand Down
15 changes: 6 additions & 9 deletions layouts/partials/pages/partials/layouts/list/list.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{{ $options := .options }}
{{ $heading_tag := partial "GetHeadingTag" (dict
"level" ( .heading_level | default 3 )
"attributes" "class='page-title'"
) }}
{{ $heading_level := .heading_level }}

<ul class="pages pages--list list {{- if and (not $options.summary) (not $options.image) }} title-only {{- end }}">
{{ range .pages }}
Expand All @@ -20,11 +17,11 @@
<li>
<article class="page">
<div class="page-content">
{{ $heading_tag.open }}
<a href="{{- .Permalink -}}">
{{- partial "PrepareHTML" .Title -}}
</a>
{{ $heading_tag.close }}
{{ partial "pages/partials/page/heading.html" (dict
"item" .
"level" $heading_level
"options" $options
) }}

{{- partial "pages/partials/page/hook-after-title.html" . -}}

Expand Down
1 change: 1 addition & 0 deletions layouts/partials/pages/partials/page/heading.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ partial "commons/item/heading.html" . }}