Remove about column in blog posts and fix case menu visibility in non blog posts
parent
a296d8e5b8
commit
734cbbd181
|
@ -4,9 +4,9 @@
|
||||||
If the current page is a blog post and belongs to a case, we will add a side menu
|
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.
|
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 }}
|
{{ 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">
|
<p class="menu-label">
|
||||||
Dans le dossier « <a href="{{ .Permalink }}">{{ .Params.Title }} »</a>...
|
Dans le dossier « <a href="{{ .Permalink }}">{{ .Params.Title }} »</a>...
|
||||||
</p>
|
</p>
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
</aside>
|
</aside>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<section class="column is-8">
|
<section class="column is-7">
|
||||||
<div>
|
<div>
|
||||||
<article>
|
<article>
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
@ -30,23 +30,18 @@
|
||||||
<div class="level-left">
|
<div class="level-left">
|
||||||
{{ with .PrevInSection }}
|
{{ with .PrevInSection }}
|
||||||
<div class="level-item">
|
<div class="level-item">
|
||||||
<a class="button is-info" href="{{ .Permalink }}">«« {{ .Title }}</a>
|
<a class="button is-info" href="{{ .Permalink }}">« {{ .Title }}</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
<div class="level-right">
|
<div class="level-right">
|
||||||
{{ with .NextInSection }}
|
{{ with .NextInSection }}
|
||||||
<div class="level-item">
|
<div class="level-item">
|
||||||
<a class="button is-info" href="{{ .Permalink }}">{{ .Title }} »»</a>
|
<a class="button is-info" href="{{ .Permalink }}">{{ .Title }} »</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
</section>
|
</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>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
|
@ -1,3 +0,0 @@
|
||||||
<aside>
|
|
||||||
blablabla je suis Quentin ajouter une image
|
|
||||||
</aside>
|
|
Loading…
Reference in New Issue