Skip to content
Snippets Groups Projects
Commit 6914a11f authored by alexisben's avatar alexisben
Browse files

harden item title style

parent 9f6455ef
No related branches found
No related tags found
No related merge requests found
.post .post
@include article @include article
.post-title
@include h3
a
@include stretched-link
display: block
text-decoration: none
time time
color: $post-time-color color: $post-time-color
display: inline-block display: inline-block
......
.program .program
@include article @include article
h2, h3, .program-title
@include h3
a
@include stretched-link
display: block
text-decoration: none
div.programs, div.programs,
section.programs section.programs
......
.project .project
@include article(auto) @include article(auto)
.project-title
@include h3
a
@include stretched-link
display: block
text-decoration: none
.projects__section, .projects__section,
.projects_categories__term .projects_categories__term
......
.volume .volume
@include article @include article
.volume-title
@include h3
a
@include stretched-link
display: block
text-decoration: none
.suptitle .suptitle
@include meta @include meta
......
...@@ -32,12 +32,6 @@ ...@@ -32,12 +32,6 @@
object-fit: cover object-fit: cover
@if $aspect-ratio @if $aspect-ratio
aspect-ratio: $aspect-ratio aspect-ratio: $aspect-ratio
h2, h3, [itemprop=headline], [itemprop=name]
@include h3
a
@include stretched-link
display: block
text-decoration: none
p + time p + time
margin-top: $spacing-2 margin-top: $spacing-2
.post-categories, .project-categories .post-categories, .project-categories
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
{{ $title = .Title }} {{ $title = .Title }}
{{ end }} {{ end }}
{{ if .Params.bodyclass }} {{ if .Params.bodyclass }}
{{- $page_class = printf "block-page-%s" .Params.bodyclass }} {{- $page_class = printf "block-%s" .Params.bodyclass }}
{{ end }} {{ end }}
{{ if $show_main_description }} {{ if $show_main_description }}
{{- $main_description = partial "GetTruncateContent" ( dict {{- $main_description = partial "GetTruncateContent" ( dict
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
{{- $direction := "" -}} {{- $direction := "" -}}
{{ $heading := .heading | default "h2" }} {{ $heading := .heading | default "h2" }}
{{ $heading_tag := (dict {{ $heading_tag := (dict
"open" ((printf "<%s itemprop='headline'>" $heading) | safeHTML) "open" ((printf "<%s class='post-title' itemprop='headline'>" $heading) | safeHTML)
"close" ((printf "</%s>" $heading) | safeHTML) "close" ((printf "</%s>" $heading) | safeHTML)
) }} ) }}
{{ $index := .index}} {{ $index := .index}}
......
{{ $project := .project }} {{ $project := .project }}
{{ $heading := .heading | default "h2" }} {{ $heading := .heading | default "h2" }}
{{ $heading_tag := (dict {{ $heading_tag := (dict
"open" ((printf "<%s itemprop='name'>" $heading) | safeHTML) "open" ((printf "<%s class='project-title' itemprop='name'>" $heading) | safeHTML)
"close" ((printf "</%s>" $heading) | safeHTML) "close" ((printf "</%s>" $heading) | safeHTML)
) }} ) }}
......
<article class="volume" itemscope itemtype="https://schema.org/Book https://schema.org/PublicationVolume"> <article class="volume" itemscope itemtype="https://schema.org/Book https://schema.org/PublicationVolume">
<hgroup> <hgroup>
<p class="suptitle" itemprop="volumeNumber">{{ i18n "volumes.volume_number" (dict "Number" .Params.Number) }}</p> <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> <h2 class="volume-title"><a href="{{ .Permalink }}" title="{{ i18n "commons.more_aria" (dict "Title" .Title) }}" itemprop="name">{{ partial "PrepareHTML" .Title }}</a></h2>
</hgroup> </hgroup>
<div class="media"> <div class="media">
{{- if .Params.image -}} {{- if .Params.image -}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment