remove zpadding

This commit is contained in:
Matthieu Bessat 2022-09-28 23:43:45 +02:00
parent 16137dce12
commit 325875a5c7
49 changed files with 63 additions and 2 deletions

3
assets/sass/general.scss Normal file
View file

@ -0,0 +1,3 @@
body {
font-family: sans-serif;
}

View file

@ -12,6 +12,7 @@ $secondary: red;
justify-content: space-between;
}
@import 'general.scss';
@import 'page_container.scss';
@import 'header.scss';
@import 'gallery.scss';

View file

@ -3,6 +3,9 @@ languageCode = 'fr'
defaultContentLanguage = 'fr'
title = "L'Étoile de Bethléem"
[taxonomies]
image-tag = 'image-tags'
# theme = "custom"
# [markup]

View file

Before

Width:  |  Height:  |  Size: 6.5 MiB

After

Width:  |  Height:  |  Size: 6.5 MiB

View file

Before

Width:  |  Height:  |  Size: 539 KiB

After

Width:  |  Height:  |  Size: 539 KiB

View file

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

View file

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 1.2 MiB

View file

Before

Width:  |  Height:  |  Size: 395 KiB

After

Width:  |  Height:  |  Size: 395 KiB

View file

Before

Width:  |  Height:  |  Size: 199 KiB

After

Width:  |  Height:  |  Size: 199 KiB

View file

Before

Width:  |  Height:  |  Size: 115 KiB

After

Width:  |  Height:  |  Size: 115 KiB

View file

Before

Width:  |  Height:  |  Size: 91 KiB

After

Width:  |  Height:  |  Size: 91 KiB

View file

Before

Width:  |  Height:  |  Size: 140 KiB

After

Width:  |  Height:  |  Size: 140 KiB

View file

Before

Width:  |  Height:  |  Size: 5.3 MiB

After

Width:  |  Height:  |  Size: 5.3 MiB

View file

Before

Width:  |  Height:  |  Size: 649 KiB

After

Width:  |  Height:  |  Size: 649 KiB

View file

Before

Width:  |  Height:  |  Size: 2.8 MiB

After

Width:  |  Height:  |  Size: 2.8 MiB

View file

Before

Width:  |  Height:  |  Size: 5.3 MiB

After

Width:  |  Height:  |  Size: 5.3 MiB

View file

Before

Width:  |  Height:  |  Size: 332 KiB

After

Width:  |  Height:  |  Size: 332 KiB

View file

Before

Width:  |  Height:  |  Size: 1.8 MiB

After

Width:  |  Height:  |  Size: 1.8 MiB

View file

Before

Width:  |  Height:  |  Size: 2.9 MiB

After

Width:  |  Height:  |  Size: 2.9 MiB

View file

Before

Width:  |  Height:  |  Size: 328 KiB

After

Width:  |  Height:  |  Size: 328 KiB

View file

Before

Width:  |  Height:  |  Size: 315 KiB

After

Width:  |  Height:  |  Size: 315 KiB

View file

Before

Width:  |  Height:  |  Size: 5.8 MiB

After

Width:  |  Height:  |  Size: 5.8 MiB

View file

Before

Width:  |  Height:  |  Size: 5.5 MiB

After

Width:  |  Height:  |  Size: 5.5 MiB

View file

@ -0,0 +1,30 @@
#!/bin/python3
# little script to go over each image in images/ and change the front matter properties.
import os
CONTENT_DIR = '../content/images/'
images_dirs = os.listdir(CONTENT_DIR)
for dir in images_dirs:
try:
id = int(dir)
except ValueError:
continue
# change tags to image-tags
path = CONTENT_DIR + dir + '/index.md'
print(path)
index_file = open(path, 'w+')
content = index_file.read()
print(content)
content = content.replace('tags:', 'image-tags:')
print(content)
break
index_file.write(content)
index_file.close()

View file

@ -0,0 +1,18 @@
#!/bin/python3
# remove z padding in files
import os
CONTENT_DIR = '../content/images/'
images_dirs = os.listdir(CONTENT_DIR)
for dir in images_dirs:
# remove z padding
try:
id = int(dir)
except ValueError:
continue
if dir != id:
os.rename(CONTENT_DIR + dir, CONTENT_DIR + str(id))

3
layouts/404.html Normal file
View file

@ -0,0 +1,3 @@
{{ define "main" }}
<h1>Page non trouvé</h1>
{{ end }}

View file

@ -0,0 +1 @@
List of images tags

View file

@ -13,7 +13,7 @@
<path d="M6 9h-.01" />
</svg>
<ul>
{{ range .Params.tags }}
{{ range .Params.image_tags }}
<li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li>
{{ end }}
</ul>

View file

@ -1,10 +1,12 @@
{{ define "main" }}
<main>
<h1>Main page title</h1>
<h1>Reconstruison pierre après pierre...</h1>
{{/*
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
{{ range $paginator.Pages }}
{{ .Render "summary" }}
{{ end }}
{{ partial "pagination.html" . }}
*/}}
</main>
{{ end }}