remove zpadding
3
assets/sass/general.scss
Normal file
|
@ -0,0 +1,3 @@
|
|||
body {
|
||||
font-family: sans-serif;
|
||||
}
|
|
@ -12,6 +12,7 @@ $secondary: red;
|
|||
justify-content: space-between;
|
||||
}
|
||||
|
||||
@import 'general.scss';
|
||||
@import 'page_container.scss';
|
||||
@import 'header.scss';
|
||||
@import 'gallery.scss';
|
||||
|
|
|
@ -3,6 +3,9 @@ languageCode = 'fr'
|
|||
defaultContentLanguage = 'fr'
|
||||
title = "L'Étoile de Bethléem"
|
||||
|
||||
[taxonomies]
|
||||
image-tag = 'image-tags'
|
||||
|
||||
# theme = "custom"
|
||||
|
||||
# [markup]
|
||||
|
|
Before Width: | Height: | Size: 6.5 MiB After Width: | Height: | Size: 6.5 MiB |
Before Width: | Height: | Size: 539 KiB After Width: | Height: | Size: 539 KiB |
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 395 KiB After Width: | Height: | Size: 395 KiB |
Before Width: | Height: | Size: 199 KiB After Width: | Height: | Size: 199 KiB |
Before Width: | Height: | Size: 115 KiB After Width: | Height: | Size: 115 KiB |
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 91 KiB |
Before Width: | Height: | Size: 140 KiB After Width: | Height: | Size: 140 KiB |
Before Width: | Height: | Size: 5.3 MiB After Width: | Height: | Size: 5.3 MiB |
Before Width: | Height: | Size: 649 KiB After Width: | Height: | Size: 649 KiB |
Before Width: | Height: | Size: 2.8 MiB After Width: | Height: | Size: 2.8 MiB |
Before Width: | Height: | Size: 5.3 MiB After Width: | Height: | Size: 5.3 MiB |
Before Width: | Height: | Size: 332 KiB After Width: | Height: | Size: 332 KiB |
Before Width: | Height: | Size: 1.8 MiB After Width: | Height: | Size: 1.8 MiB |
Before Width: | Height: | Size: 2.9 MiB After Width: | Height: | Size: 2.9 MiB |
Before Width: | Height: | Size: 328 KiB After Width: | Height: | Size: 328 KiB |
Before Width: | Height: | Size: 315 KiB After Width: | Height: | Size: 315 KiB |
Before Width: | Height: | Size: 5.8 MiB After Width: | Height: | Size: 5.8 MiB |
Before Width: | Height: | Size: 5.5 MiB After Width: | Height: | Size: 5.5 MiB |
30
import_mess/rebuild_current_images.py
Normal 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()
|
||||
|
||||
|
||||
|
||||
|
18
import_mess/remove_zpadding_images_names.py
Normal 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
|
@ -0,0 +1,3 @@
|
|||
{{ define "main" }}
|
||||
<h1>Page non trouvé</h1>
|
||||
{{ end }}
|
1
layouts/image-tags/terms.html
Normal file
|
@ -0,0 +1 @@
|
|||
List of images tags
|
|
@ -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>
|
||||
|
|
|
@ -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 }}
|
||||
|
|