Skip to content
Snippets Groups Projects
Unverified Commit 5aabf398 authored by Olivia Simonet's avatar Olivia Simonet Committed by GitHub
Browse files

Ajout de l'option des sous-titres des projets dans la config (#695)

parent a10c7236
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,8 @@
flex: 1
p
line-height: $small-line-height
.project-title
.project-title,
.project-subtitle
@include article-title
.project-subtitle
color: var(--color-text-alt)
......@@ -42,8 +43,10 @@
justify-content: space-between
.project-description
max-width: columns(6)
.project-title
.project-title,
.project-subtitle
@include h2
.project-title
@include icon(arrow-right-line, after, true)
color: transparent
@include hover-translate-icon(after)
......
......@@ -187,6 +187,7 @@ params:
categories: true
summary: true
year: false
subtitle: true
# share_links: # Optional
# enabled: true
# email: false
......
......@@ -28,7 +28,7 @@
<a href="{{ .Permalink }}" itemprop="url" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" $title)) }}">{{ $title }}</a>
{{ $heading_tag.close }}
{{ if and $options.subtitle .Params.subtitle }}
<p class="project-subtitle h3">{{ partial "PrepareHTML" .Params.subtitle }}</p>
<p class="project-subtitle">{{ partial "PrepareHTML" .Params.subtitle }}</p>
{{ end }}
{{ if and $options.subtitle .Params.subtitle }}
</hgroup>
......
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