@@ -12,6 +12,8 @@ | |||
<h1 class="app-page-header-title"> | |||
<a href="index.html">{{ site_title }}</a> | |||
</h1> | |||
<div class="separator"></div> | |||
<a href="{{ site_author_website }}">par {{ site_author }}</a> | |||
</div> | |||
</header> | |||
@@ -12,6 +12,8 @@ | |||
<h1 class="app-page-header-title"> | |||
<a href="index.html">{{ site_title }}</a> | |||
</h1> | |||
<div class="separator"></div> | |||
<a href="{{ site_author_website }}">par {{ site_author }}</a> | |||
</div> | |||
</header> | |||
@@ -101,7 +101,23 @@ img { | |||
box-shadow: 0 0 1px #313131; | |||
} | |||
.app-page-header a { | |||
.app-page-header .container { | |||
display: flex; | |||
align-items: center; | |||
} | |||
.app-page-header .container > * { | |||
flex-grow: 0; | |||
} | |||
.app-page-header .container > .separator { | |||
flex-grow: 1; | |||
} | |||
@media(max-width: 70rem) { | |||
.app-page-header .container { | |||
flex-direction: column; | |||
} | |||
} | |||
.app-page-header h1 a { | |||
color: #313131; | |||
text-decoration: none; | |||
} |
@@ -9,7 +9,7 @@ from operator import itemgetter | |||
from jinja2 import Environment, PackageLoader, select_autoescape | |||
from PIL import Image, ExifTags | |||
from configuration import SITE_TITLE, THEME | |||
from configuration import SITE_TITLE, SITE_AUTHOR, SITE_AUTHOR_WEBSITE, THEME | |||
PICTURES_DIR_NAME = "photos" | |||
@@ -78,7 +78,12 @@ def generate_index(output_path, galleries): | |||
with open(index_path, "w") as index_file: | |||
index_file.write( | |||
index_template.render(galleries=galleries, site_title=SITE_TITLE) | |||
index_template.render( | |||
galleries=galleries, | |||
site_title=SITE_TITLE, | |||
site_author=SITE_AUTHOR, | |||
site_author_website=SITE_AUTHOR_WEBSITE, | |||
) | |||
) | |||
@@ -98,7 +103,12 @@ def generate_gallery_index(output_path, gallery): | |||
with open(gallery_index_path, "w") as gallery_file: | |||
gallery_file.write( | |||
gallery_template.render(gallery=gallery, site_title=SITE_TITLE) | |||
gallery_template.render( | |||
gallery=gallery, | |||
site_title=SITE_TITLE, | |||
site_author=SITE_AUTHOR, | |||
site_author_website=SITE_AUTHOR_WEBSITE, | |||
) | |||
) | |||
@@ -1,2 +1,4 @@ | |||
SITE_TITLE = "Balades européennes" | |||
SITE_AUTHOR = "@marien" | |||
SITE_AUTHOR_WEBSITE = "https://marienfressinaud.fr" | |||
THEME = "Herisson" |