feat: basic style and layout

images de la nef et facades
This commit is contained in:
Matthieu Bessat 2022-09-29 19:00:28 +02:00
parent bb43b2bc9d
commit 2fe8d5a5ae
86 changed files with 625 additions and 92 deletions

View file

@ -21,8 +21,10 @@
<link rel="stylesheet" href="{{ $style.Permalink }}" integrity="{{ $style.Data.Integrity }}">
</head>
<body>
<div class="footer-push">
{{ partial "header" . }}
{{ block "main" . }}{{ end }}
</div>
{{ partial "footer" . }}
</body>
</html>

View file

@ -1,5 +1,5 @@
{{ define "main" }}
<main>
<main class="page-container">
{{ $listtitle := .Title }}
{{ if or .Title .Content }}
<div>

View file

@ -1,16 +1,16 @@
{{ define "main" }}
<main>
<main class="page-container">
<article>
<h1>{{ .Title }}</h1>
<div>Publié le <b><time>{{ .Date | time.Format ":date_full" }}</time></b></div>
{{ range .Params.tags }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
{{ with .Date }}
<div>Publié le <b><time>{{ . | time.Format ":date_full" }}</time></b></div>
{{ end }}
{{ range .Params.tags }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
<div>
{{ .Content }}
</div>
</article>
</main>
{{ partial "sidebar.html" . }}
{{ end }}

View file

@ -1,4 +1,6 @@
{{ define "main" }}
<main class="page-full">
{{ .Scratch.Set "image_list_context" "all" }}
{{ partial "images-list.html" . }}
</main>
{{ end }}

View file

@ -1,5 +1,5 @@
{{ define "main" }}
<main>
<main class="page-full">
<article class="single-image">
<!-- <b><time>{{ .Date.Format (default "2006-01-02 15:04:05" .Site.Params.dateFmt) }}</time></b> -->
<div class="single-image__side">
@ -18,10 +18,12 @@
{{ end }}
</ul>
</div>
{{ with .Params.original_name }}
<div class="single-image__property single-image__original-name">
<div class="property-name">Nom original :</div>
<pre>{{ .Params.original_name }}</pre>
<pre>{{ . }}</pre>
</div>
{{ end }}
<div class="single-image__property single-image__date">
{{ with .Params.inception }}
@ -67,10 +69,10 @@
{{ if or .Next .Prev -}}
<div class="gallery__nextprev">
{{- with .Prev }}
<a href="{{ .RelPermalink}}"><div id="prevart">Previous</div></a>
<a href="{{ .RelPermalink}}"><div id="prevart">Précédente</div></a>
{{ end -}}
{{- with .Next -}}
<a href="{{ .RelPermalink}}"><div id="nextart">Next</div></a>
<a href="{{ .RelPermalink}}"><div id="nextart">Suivante</div></a>
{{ end -}}
</div>
{{ end -}}

View file

@ -1,4 +1,6 @@
{{ define "main" }}
<main class="page-full">
{{ .Scratch.Set "image_list_context" "imtags" }}
{{ partial "images-list.html" . }}
</main>
{{ end }}

View file

@ -1,6 +1,7 @@
{{ define "main" }}
<main>
<main class="page-container">
<h1>Reconstruison pierre après pierre...</h1>
<b>🚧 Site en construction... 🚧</b>
{{/*
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
{{ range $paginator.Pages }}

View file

@ -1,4 +1,7 @@
<footer>
<a href="/"><b>{{ .Site.Title }}</b></a>
<a href="/a-propos-du-site">A propos de ce site</a>
<footer class="site-footer">
<div class="site-footer__content page-container">
<a href="/"><b>{{ .Site.Title }}</b></a>
<a href="/a-propos-du-site">A propos de ce site</a>
<a href="/contact">Nous contacter</a>
</div>
</footer>

View file

@ -1,15 +1,20 @@
<header>
{{ strings.Repeat ( .Site.Title | len | add 5 ) "=" }}<br>
== <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a> ==<br>
{{ strings.Repeat ( .Site.Title | len | add 5 ) "=" }}
<div style="float: right;">{{ .Site.Params.subtitle }}</div><br>
<nav>
<a href="/actualites"><b>Actualité</b></a>.
<a href="/association"><b>L'association</b></a>.
<a href="/histoires"><b>Histoire de la chapelle</b></a>.
<a href="/images"><b>Gallerie</b></a>.
{{ range .Site.Menus.main }}
<a href="{{ .URL | relURL }}"><b>{{ .Name }}</b></a>.
{{ end }}
</nav>
<header class="site-header">
<div class="site-header__content page-container">
<a class="site-header__title" href="/">
<img
class="site-header__logo"
src="/logo.svg"
alt="Logo l'étoile de bethléem"
/>
</a>
<nav class="site-header__nav">
<a href="/actualites"><b>Actualité</b></a>.
<a href="/association"><b>L'association</b></a>.
<a href="/histoires"><b>Histoire de la chapelle</b></a>.
<a href="/images"><b>Gallerie</b></a>.
{{ range .Site.Menus.main }}
<a href="{{ .URL | relURL }}"><b>{{ .Name }}</b></a>.
{{ end }}
</nav>
</div>
</header>

View file

@ -1,33 +1,31 @@
<main>
<div class="gallery">
<div class="gallery__side">
{{ $listtitle := .Title }}
{{ if or .Title .Content }}
<div>
{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
{{ with .Content }}<div>{{ . }}</div>{{ end }}
</div>
{{ end }}
<div class="gallery-tags__title">Filtrer par étiquettes</div>
<div class="gallery-tags__list">
<ul>
{{- if eq (.Scratch.Get "image_list_context") "imtags" -}}
<li>
<a href="/images">Tout</a>
</li>
{{- end -}}
{{- range .Site.Taxonomies.imtags -}}
<li>
<a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a>
</li>
{{- end -}}
</ul>
</div>
<div class="gallery">
<div class="gallery__side">
{{ $listtitle := .Title }}
{{ if or .Title .Content }}
<div>
{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
{{ with .Content }}<div>{{ . }}</div>{{ end }}
</div>
{{ end }}
<div class="gallery-tags__title">Filtrer par étiquettes</div>
<div class="gallery-tags__list">
<ul>
{{- if eq (.Scratch.Get "image_list_context") "imtags" -}}
<li>
<a href="/images">Tout</a>
</li>
{{- end -}}
{{- range .Site.Taxonomies.imtags -}}
<li>
<a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a>
</li>
{{- end -}}
</ul>
</div>
</div>
<div class="gallery__items-container">
<div class="gallery__items">
<div class="gallery__items-container">
<div class="gallery__items">
{{ range $item := (.Paginator 8).Pages }}
<a class="gallery__item" href="{{ .RelPermalink }}">
{{ $image := .Resources.GetMatch "original.jpg" }}
@ -52,8 +50,7 @@
</a>
{{ end }}
</div>
{{ partial "pagination.html" . }}
</div>
{{ partial "pagination.html" . }}
</div>
</main>
</div>