Remove about column in blog posts and fix case menu visibility in non blog posts

master
Quentin Duchemin 2021-05-25 00:04:43 +02:00
parent a296d8e5b8
commit 734cbbd181
Signed by: Chosto
GPG Key ID: 0547178FEEDE7D6B
2 changed files with 5 additions and 13 deletions

View File

@ -4,9 +4,9 @@
If the current page is a blog post and belongs to a case, we will add a side menu
with all other blog posts belonging to that case, emphasis to the current.
-->
{{ if (and .IsPage (eq .FirstSection "posts"))}}
{{ if (and .IsPage (eq .FirstSection.Section "posts"))}}
{{ with .CurrentSection }}
<aside class="menu box column is-3 is-align-self-flex-start is-fixed-top" style="position: sticky; top: 10%;">
<aside class="menu box column is-3 is-align-self-flex-start is-fixed-top" style="position: sticky; top: 7%;">
<p class="menu-label">
Dans le dossier « <a href="{{ .Permalink }}">{{ .Params.Title }} »</a>...
</p>
@ -20,7 +20,7 @@
</aside>
{{ end }}
{{ end }}
<section class="column is-8">
<section class="column is-7">
<div>
<article>
{{ .Content }}
@ -30,23 +30,18 @@
<div class="level-left">
{{ with .PrevInSection }}
<div class="level-item">
<a class="button is-info" href="{{ .Permalink }}">&laquo;&laquo;&nbsp;{{ .Title }}</a>
<a class="button is-info" href="{{ .Permalink }}">&laquo;&nbsp;{{ .Title }}</a>
</div>
{{ end }}
</div>
<div class="level-right">
{{ with .NextInSection }}
<div class="level-item">
<a class="button is-info" href="{{ .Permalink }}">{{ .Title }}&nbsp;&raquo;&raquo;</a>
<a class="button is-info" href="{{ .Permalink }}">{{ .Title }}&nbsp;&raquo;</a>
</div>
{{ end }}
</div>
</aside>
</section>
{{ if (and .IsPage (eq .FirstSection "posts"))}}
<aside class="box column is-2 is-align-self-flex-start" style="position: sticky; top: 10%;">
{{- partial "about.html" . -}}
</aside>
{{ end }}
</div>
{{ end }}

View File

@ -1,3 +0,0 @@
<aside>
blablabla je suis Quentin ajouter une image
</aside>