helloworldhellwoorldeofoehfafihuofijoahfgyioafjpafhzguirg uvuizerurg_ozerygvoiuhrgreqiogrehh

This commit is contained in:
Gzod01 2023-10-22 10:14:09 +02:00
parent 3379242f31
commit c00a301523
79 changed files with 1614 additions and 3 deletions

View file

@ -0,0 +1,2 @@
404
<a href="/">Accueil</a>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<main class=main id="content">
{{- block "main" . }}{{- end }}
</main>
{{- partial "footer.html" . -}}
</body>
</html>

View file

@ -0,0 +1,15 @@
{{ define "main" }}
<ul class="pages-list list-style-none">
{{ range .Pages }}
<li class=page-item>
<a class=page-item-main href="{{ .Permalink }}">
{{ if .Params.baneer }}
<img src="{{ .Params.baneer }}" class=baneer>
{{ end }}
<p class=title >{{.Title}}</p>
<p class=description>{{ .Description }}</p>
</a>
</li>
{{ end }}
</ul>
{{ end }}

View file

@ -0,0 +1,4 @@
{{ define "main" }}
{{ .Content }}
{{ end }}

View file

@ -0,0 +1,133 @@
{{ define "main" }}
{{ if (eq .Page.RelPermalink "/authors/") }}
<h1>Nos rédacteurs:</h1>
{{ else }}
{{ $page := . }}
{{ $prevauthordata := index .Site.Data.employees "0" }}
{{ range .Site.Data.employees}}
{{ if eq (lower $page.Name ) .writername }}
{{ $prevauthordata = . }}
{{ end }}
{{ end }}
{{ $authorname := $prevauthordata.name }}
{{ $authorpost :=$prevauthordata.post }}
{{ if eq $prevauthordata.name "NODATA"}}
{{ $authorname = $page.Name }}
{{ $authorpost = "Nous n'avons pour l'instant pas entré de données sur cet employé" }}
{{ end }}
<h1>Les articles par {{$authorname}}:</h1>
<div class=authorinfos>
<div class=authorinfos-l>
<p>Poste: {{ $authorpost }}</p>
{{ if $prevauthordata.description }}
<div class=desc> <p>Description:</p> <div>{{$prevauthordata.description |safeHTML}}</div></div>
{{end}}
</div>
<div class=authorinfos-r>
{{ if $prevauthordata.img}} <img src="{{$prevauthordata.img}}"/>{{end}}
</div>
</div>
<style>
.authorinfos{
display:flex;
flex-direction:row;
justify-content:center;
align-items:center;
align-content:center;
text-align:center;
}
.authorinfos .authorinfos-l .desc{
display:flex;
flex-direction:row;
justify-content:center;
align-items:center;
align-content:center;
text-align:center;
}
.authorinfos .authorinfos-r img{
border-radius:100%;
height:100px!important;
width:100px!important;
}
</style>
{{ end }}
<ul class="articles-list list-style-none">
{{ if (eq .Page.RelPermalink "/authors/") }}
{{ range .Pages }}
{{ $page := . }}
{{ $curauthordata := index .Site.Data.employees "0" }}
{{ range .Site.Data.employees}}
{{ if eq (lower $page.Name ) .writername }}
{{ $curauthordata = . }}
{{ end }}
{{ end }}
{{ $authorname := $curauthordata.name }}
{{ $authorpost :=$curauthordata.post }}
{{ if eq $curauthordata.name "NODATA"}}
{{ $authorname = $page.Name }}
{{ $authorpost = "Nous n'avons pour l'instant pas entré de données sur cet employé" }}
{{ end }}
<li class=article-item>
<a class=article-item-main href="{{ .Permalink }}">
{{ if $curauthordata.img }}
<img src="{{ $curauthordata.img }}" class=baneer>
{{ end }}
<p class=title >{{ $authorname }}</p>
<p class=description>{{ $authorpost }}</p>
</a>
</li>
{{ end }}
{{ else }}
{{ range .Pages }}
<li class=article-item>
{{ if .Params.categories }}
<div class=categories>
{{ $lencat := (len .Params.categories) }}
{{ if (gt $lencat 1) }}
Dans les catégories
{{ else if (eq $lencat 1) }}
Dans la catégorie
{{ else }}
{{ end }}
{{ range $index, $element := .Params.categories }}
<span class=categorie>{{ $element }}</span>
{{ if (not (eq (add $index 1) $lencat)) }}
et
{{ end }}
{{ end }}
</div>
{{ end }}
<div class=infos>
{{ if isset .Params "authors" }}
<span class=authors>
Fait par
{{ $len := (len .Params.authors) }}
{{ range $index, $element := .Params.authors }}
<span class=author>{{ $element }}</span>
{{ if (not (eq (add $index 1) $len)) }}
et
{{ end }}
{{ end }}
</span>
<span name=separator> - </span>
{{ end }}
<time class=date>
{{.Date.Format "2006-01-02"}}
</time>
</div>
<a class=article-item-main href="{{ .Permalink }}">
{{ if .Params.baneer }}
<img src="{{ .Params.baneer }}" class=baneer>
{{ end }}
<p class=title >{{.Title}}</p>
<p class=description></p>
</a>
</li>
{{ end }}
{{ end }}
</ul>
{{ end }}

View file

@ -0,0 +1,54 @@
{{ define "main" }}
<h1>Nos derniers articles :</h1>
<ul class="articles-list list-style-none">
{{ range .Pages }}
<li class=article-item>
{{ if .Params.categories }}
<div class=categories>
{{ $lencat := (len .Params.categories) }}
{{ if (gt $lencat 1) }}
Dans les catégories
{{ else if (eq $lencat 1) }}
Dans la catégorie
{{ else }}
{{ end }}
{{ range $index, $element := .Params.categories }}
<span class=categorie>{{ $element }}</span>
{{ if (not (eq (add $index 1) $lencat)) }}
et
{{ end }}
{{ end }}
</div>
{{ end }}
<div class=infos>
{{ if isset .Params "authors" }}
<span class=authors>
Fait par
{{ $len := (len .Params.authors) }}
{{ range $index, $element := .Params.authors }}
<span class=author>{{ $element }}</span>
{{ if (not (eq (add $index 1) $len)) }}
et
{{ end }}
{{ end }}
</span>
<span name=separator> - </span>
{{ end }}
<time class=date>
{{.Date.Format "2006-01-02"}}
</time>
</div>
<a class=article-item-main href="{{ .Permalink }}">
{{ if .Params.baneer }}
<img src="{{ .Params.baneer }}" class=baneer>
{{ end }}
<p class=title >{{.Title}}</p>
<p class=description></p>
</a>
</li>
{{ end }}
</ul>
{{ end }}

View file

@ -0,0 +1,72 @@
{{ define "main" }}
<div class=blogarticle>
<div class=blogarticlehead>
<div class=blogarticletitle>
<h1>{{ .Title }}</h1>
</div>
<div class=blogarticleinfos>
{{ if isset .Params "categories" }}
<span class=categories>
{{ $catlen := (len .Params.categories) }}
{{ if (gt $catlen 0) }}
{{ if (gt $catlen 1) }}
Dans les catégories
{{ else }}
Dans la catégorie
{{ end }}
{{ range $index, $element := .Params.categories }}
<a class=category href="/categories/{{ $element | urlize }}">{{ $element }}</a>
{{ if (not (eq (add $index 1) $catlen)) }}
,
{{ end }}
{{ end }}
{{ end }}
</span>
<span name=separator>&nbsp;&nbsp;-&nbsp;&nbsp;</span>
{{ end }}
{{ if isset .Params "tags" }}
<span class=tags>
{{ $taglen := (len .Params.tags) }}
{{ if (gt $taglen 0) }}
{{ if (gt $taglen 1) }}
Avec les tags
{{ else }}
Avec le tag
{{ end }}
{{ range $index, $element := .Params.tags }}
<a class=tag href="/tags/{{ $element | urlize }}">{{ $element }}</a>
{{ if (not (eq (add $index 1) $taglen)) }}
,
{{ end }}
{{ end }}
{{ end }}
</span>
<span name=separator>&nbsp;&nbsp;-&nbsp;&nbsp;</span>
{{ end }}
{{ if isset .Params "authors" }}
<span class=authors>
Fait par
{{ $len := (len .Params.authors) }}
{{ range $index, $element := .Params.authors }}
<a href="/authors/{{ (lower $element) | urlize }}/"><span class=author>{{ $element }}</span></a>
{{ if (not (eq (add $index 1) $len)) }}
et
{{ end }}
{{ end }}
</span>
<span name=separator>&nbsp;&nbsp;-&nbsp;&nbsp;</span>
{{ end }}
<time class=date>
{{.Date.Format "2006-01-02"}}
</time>
</div>
</div>
<div class=blogarticlecontent>
{{ .Content }}
</div>
<div class=blogarticlecomments>
</div>
</div>
{{ end }}

View file

@ -0,0 +1,12 @@
{{ define "main" }}
<h1>Catégories:</h1>
<ul class="categories-list list-style-none">
{{ range .Pages }}
<li class=categories-item>
<a class=categories-item-main href="{{ .Permalink }}">
<p class=title >{{.Title}}</p>
</a>
</li>
{{ end }}
</ul>
{{ end }}

View file

@ -0,0 +1,22 @@
{{ define "main" }}
<div class=the-super-head-of-the-page>
<div class=image>
</div>
<div class=text>
<h1>Du vélo sur gaillon c'est possible!</h1>
<p>VMEMS, association de promotion du vélo et autres mobilités douces!</p>
</div>
</div>
<style>
.the-super-head-of-the-page{
display:flex;
flex-direction:row;
width:100%;
}
.the-super-head-of-the-page .image{
background:grey;
width:50%;
}
</style>
{{ end }}

View file

@ -0,0 +1,37 @@
{{ if (isset site.Data "carousel") }}
{{ if gt (len site.Data.carousel) 0 }}
<div class="carousel home-top-carousel" data-to-slick='{
"autoplay":true,
"arrows":false,
"slideToShow":1,
"center": true,
"autoplaySpeed":2000,
"prevArrow":false,
"nextArrow":false,
"dots":true
}'>
{{ range (sort site.Data.carousel "weight") }}
<div class=item>
{{ if .href }}
<a href="{{ .href}}">
{{ end }}
<div class=text>
<h3 class=title>
{{ .title }}
</h3>
<div class=description>
{{ .description | safeHTML }}
</div>
</div>
<div class=img>
<img src="{{ .image }}">
</div>
{{ if .href }}
</a>
{{ end }}
</div>
{{ end }}
</div>
{{ end }}
{{ end }}

View file

@ -0,0 +1,27 @@
{{ if (isset site.Data "features") }}
{{ if gt (len site.Data.features) 0 }}
<div class="features">
{{ range (sort site.Data.features "weight") }}
<div class=item>
{{ if .url }}
<a href="{{ .url}}">
{{ end }}
<div class=icon>
<i class="{{ .icon }}"></i>
</div>
<div class=text>
<h3 class=title>
{{ .name }}
</h3>
<div class=description>
{{ .description | markdownify }}
</div>
</div>
{{ if .url }}
</a>
{{ end }}
</div>
{{ end }}
</div>
{{ end }}
{{ end }}

View file

@ -0,0 +1,49 @@
<footer class=footer>
<div class="row top">
<ul class="col left list-style-none">
{{ range .Site.Menus.footer_left.ByWeight }}
<li>
{{ if .URL }}
<a href="{{ .URL }}">
{{ end }}
{{ .Name }}
{{ if .URL }}
</a>
{{ end }}
</li>
{{ end }}
</ul>
<ul class="col middle list-style-none">
{{ range .Site.Menus.footer_middle.ByWeight }}
<li>
{{ if .URL }}
<a href="{{ .URL }}">
{{ end }}
{{ .Name }}
{{ if .URL }}
</a>
{{ end }}
</li>
{{ end }}
</ul>
<ul class="col right list-style-none">
{{ range .Site.Menus.footer_right.ByWeight }}
<li>
{{ if .URL }}
<a href="{{ .URL }}">
{{ end }}
{{ .Name }}
{{ if .URL }}
</a>
{{ end }}
</li>
{{ end }}
</ul>
</div>
<div class="row bottom">
<div class="col middle copyright">
<p>{{ .Site.Params.Copyright | safeHTML }}</p>
<p>Ce site utilise un thème développé par <a href="//gzod01.fr">GZod01</a>.</p>
</div>
</div>
</footer>

View file

@ -0,0 +1,31 @@
<!DOCTYPE HTML>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{ if isset .Site.Params "sharing_default" }}
<meta property="og:image" content="{{ .Site.Params.sharing_default }}">
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="1024">
<meta property="og:image:height" content="1024">
{{ end }}
<meta property="og:title" content="{{ .Site.Title }}">
<meta property="og:url" content="{{ .Permalink | absURL }}">
<meta property="og:description" content="{{ .Site.Params.description }}">
<link rel="stylesheet" type="text/css" href="/css/style.css">
<link rel="stylesheet" type="text/css" href="/css/monokai.highlight.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" integrity="sha512-iecdLmaskl7CVkqkXNQ/ZH/XLlvWZOJyj7Yy7tcenmpD1ypASozpmT/E0iPtmFIB46ZmdtAc9eNBvH0H/ZpiBw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.css">
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css"/>
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick-theme.css"/>
<link rel="stylesheet" type="text/css" href="/css/carousel.css">
<link rel="icon" href="{{ .Site.Params.icon }}">
<script src="https://code.jquery.com/jquery-3.7.0.js" integrity="sha256-JlqSTELeR4TLqP0OG9dxM7yDPqX1ox/HfgiSLBj8+kM=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js" integrity="sha256-DHF4zGyjT7GOMPBwpeehwoey18z8uiz98G4PRu2lV0A=" crossorigin="anonymous"></script>
<script src="/js/main.js"></script>
<title>{{ if not .IsHome }}{{ with .Title }}{{ . | safeHTML }} | {{ end }}{{ end }}{{ .Site.Title }}</title>
</head>

View file

@ -0,0 +1,29 @@
<header class=navbar>
<a href="/" class=navbar-logo-container>
{{ if default false .Site.Params.disabled_logo }}
<span>{{ .Site.Params.logo_text }}</span>
{{ else }}
<img src="{{ .Site.Params.logo | relURL }}" alt="{{ .Title }} logo" class="navbar-logo desktop-only-element">
<img src="{{ .Site.Params.logo_small | relURL}}" alt="{{ .Title }} logo" class="navbar-logo mobile-only-element">
{{ end }}
</a>
<input type=checkbox id=navbar-list-toggler hidden>
{{ $current := . }}
<ul class="desktop-only-element navbar-list">
{{ range .Site.Menus.main }}
{{ $active := "" }}
{{ $menu_item_url := .URL | relLangURL }}
{{ $page_url:= $current.RelPermalink | relLangURL }}
{{ if eq $menu_item_url $page_url }}
{{ $active = "active" }}
{{ end }}
{{ if (and (hasPrefix $page_url "/blog/") (eq $menu_item_url "/blog/")) }}
{{ $active = "active" }}
{{ end }}
<li class="navbar-list-item {{ $active }}">{{ if .URL }}<a href="{{ .URL }}">{{ .Name }}</a>{{ else }}{{ .Name }}{{ end }}</li>
{{ end }}
</ul>
<label id=navbar-list-toggler-label for=navbar-list-toggler class="mobile-only-element"><i class="fa-solid fa-bars"></i></label>
</header>

View file

@ -0,0 +1,23 @@
<div class="last-articles-grid-3">
{{ range ( where site.RegularPages "Type" "blog" | first 12 ) }}
<div class=item>
<a href="{{ .Permalink }}">
<div class=baneer>
{{ if .Params.baneer }}
<img src="{{ .Params.baneer }}">
{{ else }}
<img src="/img/logo_small.png">
{{ end }}
</div>
<div class=text>
<h3 class=title>
{{ .Title }}
</h3>
<div class=description>
{{ .Description }}
</div>
</div>
</a>
</div>
{{ end }}
</div>

View file

@ -0,0 +1,31 @@
<div class="carousel last-news-carousel" data-to-slick='{
"autoplay":true,
"arrows":false,
"slideToShow":1,
"center": true,
"autoplaySpeed":2000,
"prevArrow":false,
"nextArrow":false,
"dots":false
}'>
{{ range ( where site.RegularPages "Type" "blog" | first 3 ) }}
<div class=item>
<a href="{{ .Permalink }}">
<div class=text>
<h3 class=title>
{{ .Title }}
</h3>
<div class=description>
{{ .Description }}
</div>
</div>
{{ if .Params.baneer }}
<div class=img>
<img src="{{ .Params.baneer | safeURL }}">
</div>
{{ end }}
</a>
</div>
{{ end }}
</div>

View file

@ -0,0 +1,48 @@
{{ if (isset site.Data "employees") }}
{{ if gt (len site.Data.employees) 0 }}
<div class="carousel employees-carousel" data-to-slick='{
"autoplay":true,
"arrows":false,
"slidesToShow":3,
"slidesToScroll":1,
"infinite":true,
"center": true,
"autoplaySpeed":2000,
"prevArrow":false,
"nextArrow":false,
"dots":true
}'>
{{ range (sort site.Data.employees "weight") }}
{{ if not (eq .name "NODATA") }}
<div class=item>
{{ if .href }}
<a href="{{ .href}}">
{{ end }}
<div class=img>
<img src="{{ .img }}">
</div>
<div class=text>
<h3 class=title>
{{ .name }}
</h3>
<div class=description>
{{ .description | safeHTML }}
</div>
<p>Poste occupé: {{ .post }}</p>
{{ if .url }}
<p><a href="{{ .url }}">Lien externe <i class="fas fa-link"></i></a></p>
{{ end }}
{{ if .writername }}
<p>Nom d'écriture: {{ .writername }}</p>
{{ end }}
</div>
{{ if .href }}
</a>
{{ end }}
</div>
{{ end }}
{{end }}
</div>
{{ end }}
{{ end }}

View file

@ -0,0 +1 @@
{{ partial "team-carousel.html" | safeHTML }}

View file

@ -0,0 +1,12 @@
{{ define "main" }}
<h1>Tags:</h1>
<ul class="tags-list list-style-none">
{{ range .Pages }}
<li class=tags-item>
<a class=tags-item-main href="{{ .Permalink }}">
<p class=title >{{.Title}}</p>
</a>
</li>
{{ end }}
</ul>
{{ end }}