Compare commits
No commits in common. "2fb509094e970681d75c0cc3bdb2b638f88925c6" and "bea656d26d50e57f98126462c2bde429264f1ad0" have entirely different histories.
2fb509094e
...
bea656d26d
|
@ -1,16 +1,12 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<div class="section">
|
<div class="section">
|
||||||
<!--
|
<!--
|
||||||
If the current page is a blog post and belongs to a thematic serie, 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.
|
||||||
Still use empty container if nothing to show for homogeneous layout
|
Still use empty container if nothing to show for homogeneous layout
|
||||||
-->
|
-->
|
||||||
<!-- is-desktop stacks vertically columns for tablets and mobiles. is-8 is a
|
<div class="columns is-variable is-8">
|
||||||
maximum gap of 2rem between columns -->
|
<aside class="menu column mt-2 is-one-quarter">
|
||||||
<div class="columns is-variable is-desktop is-8">
|
|
||||||
<!-- To ease reading, the content is a bit wider for small screens
|
|
||||||
but not too wide for big screens -->
|
|
||||||
<aside class="menu column mt-2 is-one-fifth-desktop is-one-fifth-fullhd is-full-tablet is-full-mobile">
|
|
||||||
{{ if (and .IsPage (eq .FirstSection.Section "posts"))}}
|
{{ if (and .IsPage (eq .FirstSection.Section "posts"))}}
|
||||||
{{ with .CurrentSection }}
|
{{ with .CurrentSection }}
|
||||||
{{ if .Params.Title }}
|
{{ if .Params.Title }}
|
||||||
|
@ -28,29 +24,16 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</aside>
|
</aside>
|
||||||
<section class="column content is-three-fifths-desktop is-three-fifths-fullhd is-full-tablet is-full-mobile">
|
<section class="column content is-half">
|
||||||
<div>
|
<div>
|
||||||
<article>
|
<article>
|
||||||
<!-- If this is part of a thematic serie, remind it so it is clear -->
|
|
||||||
{{ if (and .IsPage (eq .FirstSection.Section "posts"))}}
|
|
||||||
{{ with .CurrentSection }}
|
|
||||||
{{ if .Params.Title }}
|
|
||||||
<div class="message is-info">
|
|
||||||
<div class="message-body content">
|
|
||||||
Le post que vous lisez fait partie du dossier « <a href="{{ .Permalink }}">{{ .Params.Title }}</a> ». Le
|
|
||||||
menu sur la gauche permet de naviguer entre ses billets. Bonne lecture ! 😄
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
<!-- First thing is a legend for the hero image, if it exists -->
|
<!-- First thing is a legend for the hero image, if it exists -->
|
||||||
{{ with .Params.imgExplanation }}
|
{{ with .Params.imgExplanation }}
|
||||||
<div class="message">
|
<article class="message mb-5">
|
||||||
<div class="message-body content is-italic">
|
<div class="message-body content is-italic">
|
||||||
{{ . }}
|
{{ . }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<!-- Second, an introductive message before ToC, if it exists -->
|
<!-- Second, an introductive message before ToC, if it exists -->
|
||||||
{{ with .Params.intro | markdownify | safeHTML }}
|
{{ with .Params.intro | markdownify | safeHTML }}
|
||||||
|
@ -65,8 +48,7 @@
|
||||||
<div class="message is-link">
|
<div class="message is-link">
|
||||||
<div class="message-header">Sommaire</div>
|
<div class="message-header">Sommaire</div>
|
||||||
<!-- Appreciate this horrible trick, even a 2000's HTML generator won't generate such code -->
|
<!-- Appreciate this horrible trick, even a 2000's HTML generator won't generate such code -->
|
||||||
<div class="message-body has-text-left pt-1">
|
<div class="message-body has-text-left pt-1">{{ .TableOfContents | replaceRE "<a" "<a style='text-decoration:none;'" | safeHTML }}</div>
|
||||||
{{ .TableOfContents | replaceRE "<a" "<a style='text-decoration:none;'" | safeHTML }}</div>
|
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<!-- Finally, content! -->
|
<!-- Finally, content! -->
|
||||||
|
@ -74,7 +56,23 @@
|
||||||
</article>
|
</article>
|
||||||
</div>
|
</div>
|
||||||
<hr />
|
<hr />
|
||||||
|
<aside class="container level my-5">
|
||||||
|
<div class="level-left">
|
||||||
|
{{ with .PrevInSection }}
|
||||||
|
<div class="level-item">
|
||||||
|
<a class="button is-link is-light is-medium has-text-weight-bold" href="{{ .Permalink }}">« {{ .Title }}</a>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
<div class="level-right">
|
||||||
|
{{ with .NextInSection }}
|
||||||
|
<div class="level-item">
|
||||||
|
<a class="button is-link is-light is-medium has-text-weight-bold" href="{{ .Permalink }}">{{ .Title }} »</a>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
</aside>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
|
@ -1 +1 @@
|
||||||
<blockquote>{{ .Inner | markdownify}}</blockquote>
|
<blockquote>{{ .Inner }}</blockquote>
|
|
@ -14,21 +14,6 @@
|
||||||
backdrop-filter: blur(3px);
|
backdrop-filter: blur(3px);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Trick which changes nothing visually but makes the footnote anchors
|
|
||||||
virtually 40% lower. Otherwise the fixed navbar is just above the
|
|
||||||
footnote link when going back from the bottom. That way, either
|
|
||||||
footnotes or anchors are in the middle of the page, making
|
|
||||||
navigation easier */
|
|
||||||
sup[id*=fn] {
|
|
||||||
padding-top: 40% !important;
|
|
||||||
margin-top: -40% !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
li[id*=fn] {
|
|
||||||
padding-top: 40% !important;
|
|
||||||
margin-top: -40% !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Useful to force cards to have the same height */
|
/* Useful to force cards to have the same height */
|
||||||
.has-equal-height {
|
.has-equal-height {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
@ -37,7 +22,7 @@ li[id*=fn] {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Justify all content but not titles */
|
/* Justify all content but not titles */
|
||||||
p:not(.title, .subtitle) {
|
p:not(.title,.subtitle) {
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,16 +40,3 @@ figcaption h4 {
|
||||||
figure img {
|
figure img {
|
||||||
filter: drop-shadow(4px 4px 5px grey)
|
filter: drop-shadow(4px 4px 5px grey)
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-label {
|
|
||||||
text-justify: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Workaround for horizontal scrollbar,
|
|
||||||
probably because I'm messing with containers,
|
|
||||||
sections and columns, but I do not understand
|
|
||||||
CSS enough to fix it properly.
|
|
||||||
See https://github.com/jgthms/bulma/issues/449 */
|
|
||||||
body {
|
|
||||||
overflow-x: hidden;
|
|
||||||
}
|
|
Loading…
Reference in New Issue