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

fix default block title if rank self is false

parent e82d0cc6
No related branches found
No related tags found
No related merge requests found
......@@ -27,17 +27,19 @@
{{ if .Params.bodyclass }}
{{- $page_class = printf "block-page-%s" .Params.bodyclass }}
{{ end }}
{{ if site.Params.pages.index.truncate_description }}
{{- $main_description = partial "GetTruncateContent" ( dict
"text" .Params.summary
"length" site.Params.pages.index.truncate_description
) -}}
{{ else }}
{{- $main_description = partial "PrepareText" .Params.summary -}}
{{ if $show_main_description }}
{{ if site.Params.pages.index.truncate_description }}
{{- $main_description = partial "GetTruncateContent" ( dict
"text" .Params.summary
"length" site.Params.pages.index.truncate_description
) -}}
{{ else }}
{{- $main_description = partial "PrepareText" .Params.summary -}}
{{ end }}
{{ end }}
{{ end -}}
<div class="{{ $block_class }}{{ $page_class }}">
<div class="{{ $block_class }} {{ $page_class }}">
<div class="container">
<div class="block-content">
{{ partial "blocks/top.html" (dict
......
{{ $heading_level := .heading_level | default 2 }}
{{/* handle boolean issue */}}
{{ if eq $heading_level false }}
{{ $heading_level = 2 }}
{{ end }}
{{ $heading_tag := (dict
"open" ((printf "<h%d class='block-title'>" $heading_level) | safeHTML)
"close" ((printf "</h%d>" $heading_level) | safeHTML)
......
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