diff --git a/prosopopee/prosopopee.py b/prosopopee/prosopopee.py index fde573a..50ff487 100644 --- a/prosopopee/prosopopee.py +++ b/prosopopee/prosopopee.py @@ -157,7 +157,7 @@ def main(): Image.target_dir = os.path.join(os.getcwd(), "build", gallery) template_to_render = page_template if gallery_settings.get("static") else gallery_index_template - open(os.path.join("build", gallery, "index.html"), "w").write(template_to_render.render(settings=settings, gallery=gallery_settings, Image=Image).encode("Utf-8")) + open(os.path.join("build", gallery, "index.html"), "w").write(template_to_render.render(settings=settings, gallery=gallery_settings, Image=Image, link=gallery).encode("Utf-8")) front_page_galleries_cover = reversed(sorted(front_page_galleries_cover, key=lambda x: x["date"])) diff --git a/prosopopee/themes/exposure/static/css/style-page.css b/prosopopee/themes/exposure/static/css/style-page.css index 8b6cbcf..561fdf2 100644 --- a/prosopopee/themes/exposure/static/css/style-page.css +++ b/prosopopee/themes/exposure/static/css/style-page.css @@ -148,7 +148,6 @@ footer { .back-to-home hr { width: 14%; - margin-top: 8em; color: #DDD; } @@ -253,3 +252,61 @@ footer a { margin-right: 11.5%; } +.center, .center-align { + text-align: center; +} + + +.share { + text-align: center; + height: auto; + position: relative; + bottom: 0; + padding: 0 0 10px 0; +} + + +ul.icon { + padding: 0; + margin: 10px 0 0 0; +} + +ul.icon li { + padding: 0; + list-style-type: none; + display:inline-block; +} + +ul.icon a { + display: block; + float: left; + background: url(../img/social-share.png) no-repeat; + background-size: 196px 23px; + border: none; +} + +ul.icon li, ul.icon a { + width: 32px; + height: 32px; + text-indent: -999999em; + overflow: hidden; + list-style-type: none; + display: inline-block; +} + +a.twitter { + background-position: 5px 0 !important; +} + +a.facebook { + background-position: -57px 0 !important; +} + +a.pinterest { + background-position: -114px 0 !important; +} + +a.google { + background-position: -172px 0 !important; +} + diff --git a/prosopopee/themes/exposure/static/img/social-share.png b/prosopopee/themes/exposure/static/img/social-share.png new file mode 100644 index 0000000..3d78248 Binary files /dev/null and b/prosopopee/themes/exposure/static/img/social-share.png differ diff --git a/prosopopee/themes/exposure/templates/gallery-index.html b/prosopopee/themes/exposure/templates/gallery-index.html index 1902c60..36d573f 100644 --- a/prosopopee/themes/exposure/templates/gallery-index.html +++ b/prosopopee/themes/exposure/templates/gallery-index.html @@ -1,49 +1,53 @@ -
- - - - - - + + + + + + + - - -