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
@include article
.post-title
@include h3
a
@include stretched-link
display: block
text-decoration: none
time
color: $post-time-color
display: inline-block
......
.program
@include article
h2, h3, .program-title
@include h3
a
@include stretched-link
display: block
text-decoration: none
div.programs,
section.programs
......
.project
@include article(auto)
.project-title
@include h3
a
@include stretched-link
display: block
text-decoration: none
.projects__section,
.projects_categories__term
......
.volume
@include article
.volume-title
@include h3
a
@include stretched-link
display: block
text-decoration: none
.suptitle
@include meta
......
......@@ -32,12 +32,6 @@
object-fit: cover
@if $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
margin-top: $spacing-2
.post-categories, .project-categories
......
......@@ -22,7 +22,7 @@
{{ $title = .Title }}
{{ end }}
{{ if .Params.bodyclass }}
{{- $page_class = printf "block-page-%s" .Params.bodyclass }}
{{- $page_class = printf "block-%s" .Params.bodyclass }}
{{ end }}
{{ if $show_main_description }}
{{- $main_description = partial "GetTruncateContent" ( dict
......
......@@ -2,7 +2,7 @@
{{- $direction := "" -}}
{{ $heading := .heading | default "h2" }}
{{ $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)
) }}
{{ $index := .index}}
......
{{ $project := .project }}
{{ $heading := .heading | default "h2" }}
{{ $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)
) }}
......
<article class="volume" itemscope itemtype="https://schema.org/Book https://schema.org/PublicationVolume">
<hgroup>
<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>
<div class="media">
{{- 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