Compare commits
No commits in common. "3969f6f5a57fa0f3b85107257d9724b409d4f1b6" and "5fd952cc72ca8221b05d2f522757f433161e425c" have entirely different histories.
3969f6f5a5
...
5fd952cc72
|
@ -8,7 +8,7 @@ languageCode: fr-fr
|
||||||
languageName: Français
|
languageName: Français
|
||||||
watch: true
|
watch: true
|
||||||
paginate: 9
|
paginate: 9
|
||||||
title: Carnet web de Quentin
|
title: Le blog de Quentin
|
||||||
# Give more time to compress images
|
# Give more time to compress images
|
||||||
timeout: 120
|
timeout: 120
|
||||||
|
|
||||||
|
@ -23,6 +23,8 @@ markup:
|
||||||
renderer:
|
renderer:
|
||||||
# Render newlines as <br>
|
# Render newlines as <br>
|
||||||
hardWraps: true
|
hardWraps: true
|
||||||
|
# Render HTML in MD files, necessary for superscript
|
||||||
|
unsafe: true
|
||||||
tableOfContents:
|
tableOfContents:
|
||||||
endLevel: 3
|
endLevel: 3
|
||||||
ordered: false
|
ordered: false
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
".Params.incoming" "!=" true)
|
".Params.incoming" "!=" true)
|
||||||
}}
|
}}
|
||||||
{{ range $paginator.Pages }}
|
{{ range $paginator.Pages }}
|
||||||
<div class="column is-variable is-one-third py-0 my-4">
|
<div class="column is-variable is-one-third py-0 my-3">
|
||||||
{{ .Render "summary" }}
|
{{ .Render "summary" }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<main>
|
<main>
|
||||||
{{/* A section _index.md may have a content, describing its theme */}}
|
{{/* A section _index.md may have a content, describing its theme */}}
|
||||||
{{ with .Content }}
|
{{ with .Content }}
|
||||||
<article class="message mt-5 mb-5">
|
<article class="message mt-5 mb-2">
|
||||||
<div class="message-body content">
|
<div class="message-body content">
|
||||||
{{ . }}
|
{{ . }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -10,13 +10,13 @@
|
||||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{/* Default to home image */}}
|
{{/* Default to home image */}}
|
||||||
{{ $originalImage := resources.Get "img/home.jpg" }}
|
{{ $image := resources.Get "img/home.jpg" }}
|
||||||
{{/* If header image exists in current context, use it instead */}}
|
{{/* If header image exists in current context, use it instead */}}
|
||||||
{{ with .Resources.GetMatch "top.jpg" }}
|
{{ with .Resources.GetMatch "top.jpg" }}
|
||||||
{{ $originalImage = . }}
|
{{ $image = . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ $image := $originalImage.Resize "3000x" }}
|
{{ $image = $image.Resize "3000x" }}
|
||||||
{{ $image = $image | images.Filter (images.GaussianBlur 7) }}
|
{{ $image := $image | images.Filter (images.GaussianBlur 7) }}
|
||||||
{{/* tbh I am too lazy to extend Bulma, so put dirty CSS directives here to be able to use Hugo templating system */}}
|
{{/* tbh I am too lazy to extend Bulma, so put dirty CSS directives here to be able to use Hugo templating system */}}
|
||||||
<style>
|
<style>
|
||||||
.has-bg-img {
|
.has-bg-img {
|
||||||
|
|
|
@ -6,13 +6,13 @@
|
||||||
{{ $home := eq "home" .Kind }}
|
{{ $home := eq "home" .Kind }}
|
||||||
<header>
|
<header>
|
||||||
<section
|
<section
|
||||||
class='hero has-text-centered {{ if $background }}is-info has-bg-img {{ if $page }}is-medium{{ else if $home }}is-medium{{ end }}{{ end }}'>
|
class='hero has-text-centered {{ if $background }}is-info has-bg-img {{ if $page }}is-large{{ else if $home }}is-medium{{ end }}{{ end }}'>
|
||||||
<div class="hero-head mx-5">
|
<div class="hero-head mx-5">
|
||||||
<div class="level mt-4">
|
<div class="level mt-4">
|
||||||
<div class="level-left">
|
<div class="level-left">
|
||||||
{{ with .Params.imgLicence }}
|
{{ with .Params.imgLicence }}
|
||||||
<p class="level-item subtitle is-size-5-desktop is-size-7-mobile">
|
<p class="level-item subtitle is-size-5-desktop is-size-7-mobile">
|
||||||
<a href='{{ with $.Resources.GetMatch "top.jpg" }}{{ . }}{{ end }}'>Image d'illustration</a> : {{ . | markdownify }}
|
Image d'illustration {{ . | markdownify }}
|
||||||
</p>
|
</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="navbar-item has-dropdown is-hoverable">
|
<div class="navbar-item has-dropdown is-hoverable">
|
||||||
<a class="navbar-link">
|
<a class="navbar-link">
|
||||||
Dossiers thématiques
|
Dossiers
|
||||||
</a>
|
</a>
|
||||||
<div class="navbar-dropdown">
|
<div class="navbar-dropdown">
|
||||||
{{ range where .Site.Pages "Params.code" "!=" nil }}
|
{{ range where .Site.Pages "Params.code" "!=" nil }}
|
||||||
|
|
|
@ -81,14 +81,3 @@ body {
|
||||||
.content figure:not(:last-child) {
|
.content figure:not(:last-child) {
|
||||||
margin-bottom: 1em !important;
|
margin-bottom: 1em !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Let links have a color in hero contents
|
|
||||||
so visitors can see them */
|
|
||||||
.hero .subtitle a {
|
|
||||||
text-decoration: none;
|
|
||||||
color: #dff5fb !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hero a:hover {
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
Loading…
Reference in New Issue