Skip to content
Snippets Groups Projects
Unverified Commit 2bd98ecf authored by Alexis BENOIT's avatar Alexis BENOIT Committed by GitHub
Browse files

Merge pull request #337 from osunyorg/portfolio-fix

Portfolio partie 2
parents 0794452d 562abb90
No related branches found
No related tags found
No related merge requests found
.project
@include article(auto)
.projects__section
.projects__section,
.projects_categories__term
.projects
@include grid(2, md)
.projects__page
.document-content
min-height: 350px
// Add after element to avoid "min-height" to ignore the last block's margin-bottom
&::after
content: ''
display: block
height: 1px
&:not(.full-width)
.project-sidebar
@include sidebar
.hero
.content
align-items: stretch
.hero-text
display: flex
flex-direction: column
gap: $spacing-3
@include media-breakpoint-up(sm)
.hero
.project-infos
width: columns(8)
@include media-breakpoint-up(md)
.hero
.project-infos
width: columns(6)
@include media-breakpoint-up(desktop)
.hero
.content
align-items: stretch
.hero-text
justify-content: space-between
gap: $spacing-5
width: columns(6)
.project-infos
width: columns(4)
figure
width: columns(6)
.project-infos
@include section__page-infos
@include section__page-infos
\ No newline at end of file
......@@ -4,8 +4,7 @@
<div class="document-content" itemscope itemtype="https://schema.org/Event">
<meta itemprop="name" content="{{ partial "PrepareHTML" .Title }}">
<meta itemprop="url" content="{{ .Permalink }}">
{{ with .Params.summary }}<meta itemprop="abstract" content="{{ . | safeHTML }}">{{ end }}
{{ with .Summary }}<meta itemprop="description" content="{{ . | safeHTML }}">{{ end }}
{{ with .Params.summary }}<meta itemprop="description" content="{{ . | safeHTML }}">{{ end }}
{{ partial "events/sidebar.html" . }}
......
......@@ -43,6 +43,10 @@
<a href="{{ .target }}" class="btn">{{ .label }}</a>
{{ end }}
{{ end }}
{{ if .hero_text_complement }}
{{ partial .hero_text_complement .context }}
{{ end }}
</div>
{{ if .image }}
......
......@@ -4,5 +4,6 @@
"title" $title
"image" .Params.image
"sizes" site.Params.image_sizes.sections.projects.hero_single
"hero_text_complement" "projects/project-infos.html"
"context" .
) -}}
......@@ -7,23 +7,21 @@
{{ with $project }}
<article class="project" itemscope itemtype="https://schema.org/Project">
<article class="project" itemscope itemtype="https://schema.org/CreativeWork">
<div class="project-content">
{{- $title := partial "PrepareHTML" .Title -}}
{{ $heading_tag.open }}
<a href="{{ .Permalink }}" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" $title)) }}">{{ $title }}</a>
<a href="{{ .Permalink }}" itemprop="url" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" $title)) }}">{{ $title }}</a>
{{ $heading_tag.close }}
{{ if site.Params.projects.index.show_description }}
{{- if partial "GetTextFromHTML" .Params.summary -}}
<p itemprop="articleBody">{{ partial "GetTruncateContent" ( dict
"text" .Params.summary
"length" site.Params.projects.index.truncate_description
) }}</p>
{{- end -}}
{{- end -}}
{{ if and site.Params.projects.index.show_description (partial "GetTextFromHTML" .Params.summary) }}
<p itemprop="abstract">{{ partial "GetTruncateContent" ( dict
"text" .Params.summary
"length" site.Params.projects.index.truncate_description
) }}</p>
{{ end }}
{{ if site.Params.projects.index.show_categories }}
{{- partial "projects/categories" . -}}
......
......@@ -6,7 +6,6 @@
<meta itemprop="url" content="{{ .Permalink }}">
{{ with .Date }}<meta itemprop="datePublished" content="{{ .Format "2006-01-02T15:04" }}">{{ end }}
{{ with .Params.summary }}<meta itemprop="abstract" content="{{ . | safeHTML }}">{{ end }}
{{ with .Summary }}<meta itemprop="description" content="{{ . | safeHTML }}">{{ end }}
{{ partial "posts/sidebar.html" . }}
......
{{ define "main" }}
{{ partial "projects/hero-single.html" . }}
<div class="document-content" itemscope itemtype="https://schema.org/Event">
<div class="document-content" itemscope itemtype="https://schema.org/CreativeWork">
<meta itemprop="name" content="{{ partial "PrepareHTML" .Title }}">
<meta itemprop="url" content="{{ .Permalink }}">
{{ with .Params.summary }}<meta itemprop="abstract" content="{{ . | safeHTML }}">{{ end }}
{{ with .Summary }}<meta itemprop="description" content="{{ . | safeHTML }}">{{ end }}
{{ partial "projects/sidebar.html" . }}
{{ with .Params.summary }}<meta itemprop="description" content="{{ . | safeHTML }}">{{ end }}
{{ partial "projects/summary.html" (dict
"context" .
......
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