Skip to content
Snippets Groups Projects
Commit 693f894c authored by alexisben's avatar alexisben
Browse files

replace chapo by summary

parent 74258a59
No related branches found
No related tags found
No related merge requests found
Showing
with 28 additions and 29 deletions
.block-chapo
.block-summary
@include in-page-without-sidebar
padding-top: 0
margin-top: $spacing3
......
......@@ -30,7 +30,6 @@
// Blocks
@import "blocks/base"
@import "blocks/chapo"
@import "blocks/datatable"
@import "blocks/call_to_action"
@import "blocks/chapter"
......@@ -46,6 +45,7 @@
@import "blocks/partners"
@import "blocks/posts"
@import "blocks/programs"
@import "blocks/summary"
@import "blocks/testimonials"
@import "blocks/timeline"
@import "blocks/video"
......
......@@ -12,7 +12,7 @@
)
}}
{{ partial "pages/chapo.html" (dict
{{ partial "pages/summary.html" (dict
"context" .
"block_wrapped" true
) }}
......
......@@ -12,7 +12,7 @@
)
}}
{{ partial "pages/chapo.html" (dict
{{ partial "pages/summary.html" (dict
"context" .
"block_wrapped" true
) }}
......
......@@ -4,7 +4,7 @@
<div class="document-content">
{{ partial "persons/chapo.html" (dict
{{ partial "persons/summary.html" (dict
"with_container" true
"context" .
) }}
......
......@@ -4,7 +4,7 @@
<div class="document-content">
{{ partial "persons/chapo.html" (dict
{{ partial "persons/summary.html" (dict
"with_container" true
"context" .
) }}
......
......@@ -9,7 +9,7 @@
)
}}
{{ partial "posts/chapo.html" (dict
{{ partial "posts/summary.html" (dict
"context" .
"block_wrapped" true
) }}
......
......@@ -3,7 +3,7 @@
<div class="document-content">
{{ partial "diplomas/chapo.html" (dict
{{ partial "diplomas/summary.html" (dict
"with_container" true
"context" .
) }}
......
......@@ -11,7 +11,7 @@
}}
{{- end -}}
{{ partial "home/chapo.html" (dict
{{ partial "home/summary.html" (dict
"block_wrapped" true
"context" .
) }}
......
......@@ -10,7 +10,7 @@
<div class="container">
<div itemprop="articleBody" class="rich-text">
{{ partial "pages/chapo.html" (dict
{{ partial "pages/summary.html" (dict
"context" .
) }}
......
......@@ -12,7 +12,7 @@
)
}}
{{ partial "pages/chapo.html" (dict
{{ partial "pages/summary.html" (dict
"context" .
"block_wrapped" true
) }}
......
......@@ -38,8 +38,8 @@
<p itemprop="jobTitle">
{{- if (partial "GetTextFromHTML" .role) }}
{{ partial "PrepareHTML" .role }}
{{- else if partial "GetTextFromHTML" $person.Params.description_short }}
{{- partial "PrepareHTML" $person.Params.description_short -}}
{{- else if partial "GetTextFromHTML" $person.Params.summary }}
{{- partial "PrepareHTML" $person.Params.summary -}}
{{ else if (partial "GetTextFromHTML" $person.Content) }}
{{- partial "GetTruncateContent" ( dict "text" $person.Content ) -}}
{{ end -}}
......
......@@ -42,11 +42,11 @@
{{ end }}
{{ if site.Params.pages.list.truncate_description }}
{{- $main_description = partial "GetTruncateContent" ( dict
"text" .Params.description_short
"text" .Params.summary
"length" site.Params.pages.list.truncate_description
) -}}
{{ else }}
{{- $main_description = partial "PrepareHTML" .Params.description_short -}}
{{- $main_description = partial "PrepareHTML" .Params.summary -}}
{{ end }}
{{ end -}}
......
......@@ -15,14 +15,14 @@
</a>
</h1>
{{ if and $show_descriptions .Params.description_short }}
{{ if and $show_descriptions .Params.summary }}
{{ if site.Params.pages.list.truncate_description }}
<p>{{ partial "GetTruncateContent" ( dict
"text" .Params.description_short
"text" .Params.summary
"length" site.Params.pages.list.truncate_description
) }}</p>
{{ else }}
<p>{{ partial "PrepareHTML" .Params.description_short }}</p>
<p>{{ partial "PrepareHTML" .Params.summary }}</p>
{{ end }}
{{ end }}
......
......@@ -23,14 +23,14 @@
{{- partial "PrepareHTML" .Title -}}
</a>
</h1>
{{ if and $show_descriptions .Params.description_short }}
{{ if and $show_descriptions .Params.summary }}
{{ if site.Params.pages.list.truncate_description }}
<p>{{ partial "GetTruncateContent" ( dict
"text" .Params.description_short
"text" .Params.summary
"length" site.Params.pages.list.truncate_description
) }}</p>
{{ else }}
<p>{{ partial "PrepareHTML" .Params.description_short }}</p>
<p>{{ partial "PrepareHTML" .Params.summary }}</p>
{{ end }}
{{ end }}
{{ if $show_images }}
......
......@@ -21,14 +21,14 @@
{{ if site.Params.posts.list.show_categories }}
{{- partial "posts/categories" . -}}
{{ end }}
{{- if (partial "GetTextFromHTML" .Params.description_short) -}}
{{- if (partial "GetTextFromHTML" .Params.summary) -}}
{{ if site.Params.posts.list.truncate_description }}
<p itemprop="articleBody">{{ partial "GetTruncateContent" ( dict
"text" .Params.description_short
"text" .Params.summary
"length" site.Params.posts.list.truncate_description
) }}</p>
{{ else }}
<p itemprop="articleBody">{{ partial "PrepareHTML" .Params.description_short }}</p>
<p itemprop="articleBody">{{ partial "PrepareHTML" .Params.summary }}</p>
{{ end }}
{{- end -}}
<time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02T15:04" }}">{{ .Date | time.Format ":date_long" }}</time>
......
{{- partial "commons/chapo.html" . -}}
{{- partial "commons/summary.html" . -}}
{{- $text := (partial "GetTextFromHTML" .context.Params.description_short) -}}
{{- $text := (partial "GetTextFromHTML" .context.Params.summary) -}}
{{- if $text -}}
{{- if .block_wrapped -}}
<section class="block block-chapo">
<section class="block block-summary">
<div class="container">
<div class="block-content">
{{- else if .with_container -}}
......@@ -11,7 +11,7 @@
{{- end -}}
<p class="lead">
{{ partial "PrepareHTML" .context.Params.description_short }}
{{ partial "PrepareHTML" .context.Params.summary }}
</p>
{{- if .block_wrapped -}}
......
{{- partial "commons/chapo.html" . -}}
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