From cfa0acf026ae3ad20c2954edb5a2c7ffa46e3b98 Mon Sep 17 00:00:00 2001 From: Lionel Sambuc Date: Thu, 28 Aug 2014 16:12:49 +0200 Subject: [PATCH] Adding table-based EXIF info --- content/theme-extra/css/custom-cyborg.css | 30 ++++++++++++++++----- content/theme-extra/css/custom-spacelab.css | 21 +++++++++++++++ pelicanconf.py | 5 ++-- publishconf.py | 5 ++-- 4 files changed, 51 insertions(+), 10 deletions(-) diff --git a/content/theme-extra/css/custom-cyborg.css b/content/theme-extra/css/custom-cyborg.css index 5ec77ef..a93a700 100644 --- a/content/theme-extra/css/custom-cyborg.css +++ b/content/theme-extra/css/custom-cyborg.css @@ -13,6 +13,27 @@ border-top: 1px solid #ccc; } +table .layout { + width: 100%; +} + +.layout, td .layout, tr .layout { + border: none; + text-align: center; + vertical-align: top; +} + +table .exif_info { + width: 100%; +} + +.exif_info td, .exif_info th { + vertical-align: top; + margin: 0em; + padding: 0em; + padding-left: 0.5em; +} + .fa-atom-square:before { content: "\f143" } @@ -29,15 +50,12 @@ .highlighttable .code { width: 80em; } + strong { color: #fff; } -/*blockquote { - color: #d0d0d0; - background-color: #202020; - border-left: 0em none #000; -}*/ -a:hover { + +.row a:hover { color: #fff !important; } diff --git a/content/theme-extra/css/custom-spacelab.css b/content/theme-extra/css/custom-spacelab.css index bbd4c4e..930eb47 100644 --- a/content/theme-extra/css/custom-spacelab.css +++ b/content/theme-extra/css/custom-spacelab.css @@ -13,6 +13,27 @@ border-top: 1px solid #ccc; } +table .layout { + width: 100%; +} + +.layout, td .layout, tr .layout { + border: none; + text-align: center; + vertical-align: top; +} + +table .exif_info { + width: 100%; +} + +.exif_info td, .exif_info th { + vertical-align: top; + margin: 0em; + padding: 0em; + padding-left: 0.5em; +} + .fa-atom-square:before { content: "\f143" } diff --git a/pelicanconf.py b/pelicanconf.py index 0c8e5da..83f1a9a 100755 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -41,8 +41,9 @@ COLORBOX_PARAMS = 'transition:"elastic"' #GITHUB_SHOW_USER_LINK = True DEFAULT_PAGINATION = 10 -GALLERY_IMG_PER_ROW = 5 +GALLERY_IMG_PER_ROW = 3 #RELATED_POSTS_MAX = 5 +#EXIF_INFO_DEFAULT = False BOOTSTRAP_NAVBAR_INVERSE = True DISPLAY_BREADCRUMBS = True @@ -62,7 +63,7 @@ PYGMENTS_RST_OPTIONS = {'linenos': 'table'} # Plugins used PLUGIN_PATH = '../pelican-plugins' -PLUGINS = ['related_posts', 'gallery'] +PLUGINS = ['related_posts', 'gallery', 'exif_info'] # Main Settings TIMEZONE = 'Europe/Amsterdam' diff --git a/publishconf.py b/publishconf.py index 3202f3a..af3fdc7 100755 --- a/publishconf.py +++ b/publishconf.py @@ -44,8 +44,9 @@ COLORBOX_PARAMS = 'transition:"elastic"' #GITHUB_SHOW_USER_LINK = True DEFAULT_PAGINATION = 10 -GALLERY_IMG_PER_ROW = 5 +GALLERY_IMG_PER_ROW = 3 #RELATED_POSTS_MAX = 5 +#EXIF_INFO_DEFAULT = False BOOTSTRAP_NAVBAR_INVERSE = True DISPLAY_BREADCRUMBS = True @@ -65,7 +66,7 @@ PYGMENTS_RST_OPTIONS = {'linenos': 'table'} # Plugins used PLUGIN_PATH = '../pelican-plugins' -PLUGINS = ['related_posts', 'gallery'] +PLUGINS = ['related_posts', 'gallery', 'exif_info'] # Main Settings TIMEZONE = 'Europe/Amsterdam'