Again lot of cosmetic changes
parent
37c6b56a41
commit
603b8c63f8
|
@ -1,3 +1,4 @@
|
||||||
resources
|
resources
|
||||||
public
|
public
|
||||||
.hugo_build.lock
|
.hugo_build.lock
|
||||||
|
bulma
|
||||||
|
|
|
@ -29,9 +29,9 @@
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<div class="container content is-max-desktop">
|
<div class="container content is-max-desktop">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<section class="column content">
|
<section class="column content mx-6">
|
||||||
<div>
|
<div>
|
||||||
<article class="mx-6">
|
<article>
|
||||||
<!-- 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 }}
|
||||||
<article class="message mb-5">
|
<article class="message mb-5">
|
||||||
|
@ -40,9 +40,17 @@
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<!-- Second, a summary before ToC, if it exists -->
|
<!-- Second, a summary, if it exists -->
|
||||||
{{ with .Params.summary }}
|
{{ with .Params.summary }}
|
||||||
<div class="message is-primary">
|
<div class="message is-info">
|
||||||
|
<div class="message-body">
|
||||||
|
{{ . }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
<!-- Third, an introductive message before ToC, if it exists -->
|
||||||
|
{{ with .Params.intro }}
|
||||||
|
<div class="message is-dark">
|
||||||
<div class="message-body">
|
<div class="message-body">
|
||||||
{{ . }}
|
{{ . }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -50,7 +58,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<!-- Then, ToC if text has more than 600 words and not explicitly asked not to -->
|
<!-- Then, ToC if text has more than 600 words and not explicitly asked not to -->
|
||||||
{{ if (and (not .Params.notoc) (gt .WordCount 600)) }}
|
{{ if (and (not .Params.notoc) (gt .WordCount 600)) }}
|
||||||
<div class="message is-info">
|
<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 pt-1">{{ .TableOfContents | replaceRE "<a" "<a style='text-decoration:none;'" | safeHTML }}</div>
|
<div class="message-body pt-1">{{ .TableOfContents | replaceRE "<a" "<a style='text-decoration:none;'" | safeHTML }}</div>
|
||||||
|
@ -60,18 +68,19 @@
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</article>
|
</article>
|
||||||
</div>
|
</div>
|
||||||
<aside class="container level my-5">
|
<hr/>
|
||||||
|
<aside class="container level my-5 is-mobile">
|
||||||
<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-link is-light is-medium is-responsive has-text-weight-bold" 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-link is-light is-medium is-responsive has-text-weight-bold" href="{{ .Permalink }}">{{ .Title }} »</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
<div class="navbar-dropdown">
|
<div class="navbar-dropdown">
|
||||||
{{ range where .Site.Pages "Params.Code" "!=" nil }}
|
{{ range where .Site.Pages "Params.Code" "!=" nil }}
|
||||||
<a class="navbar-item {{ if eq $.Permalink .Page.Permalink }}is-active{{ end }}" href="{{ .Page.Permalink }}">
|
<a class="navbar-item {{ if eq $.Permalink .Page.Permalink }}is-active{{ end }}" href="{{ .Page.Permalink }}">
|
||||||
{{ .Title | humanize }}
|
{{ .Title }}
|
||||||
{{ $casePosts := where .Site.RegularPages "CurrentSection.Params.Code" "==" .Params.Code }}
|
{{ $casePosts := where .Site.RegularPages "CurrentSection.Params.Code" "==" .Params.Code }}
|
||||||
<span class="tag ml-2 is-rounded">{{ len $casePosts }}</span>
|
<span class="tag ml-2 is-rounded">{{ len $casePosts }}</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{{ $pag := . }}
|
{{ $pag := . }}
|
||||||
{{ if gt $pag.TotalPages 1 -}}
|
{{ if gt $pag.TotalPages 1 -}}
|
||||||
<nav class="mt-5 pagination is-centered" role="navigation" aria-label="pagination">
|
<nav class="mt-6 pagination is-centered" role="navigation" aria-label="pagination">
|
||||||
{{ with $pag.First -}}
|
{{ with $pag.First -}}
|
||||||
<ul class="pagination-list">
|
<ul class="pagination-list">
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,3 +1,14 @@
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Nunito';
|
||||||
|
src:
|
||||||
|
url('../font/Nunito-Regular.woff2') format('woff2'),
|
||||||
|
url('../font/Nunito-Regular.woff') format('woff'),
|
||||||
|
url('../font/Nunito-Regular.ttf') format('truetype');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
font-display: swap;
|
||||||
|
}
|
||||||
|
|
||||||
.has-equal-height {
|
.has-equal-height {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -7,3 +18,7 @@
|
||||||
.content {
|
.content {
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.navbar-dropdown {
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue