Sidebar site logo image in Colorbox

Replace the index title in the Colorbox sidebar with an optional logo.
Use files_to_copy to place the logo file in the correct location.
This commit is contained in:
brent.bb
2018-02-04 22:32:26 -05:00
committed by Simon Conseil
parent 45ac1e4c94
commit 3afeba778d
3 changed files with 15 additions and 1 deletions

View File

@@ -64,6 +64,7 @@ _DEFAULT_CONFIG = {
'piwik': {'tracker_url': '', 'site_id': 0},
'plugin_paths': [],
'plugins': [],
'site_logo': '',
'show_map': False,
'source': '',
'theme': 'colorbox',

View File

@@ -222,6 +222,13 @@ ignore_files = []
# The default is 3 columns (176px).
# colorbox_column_size = 3
# Site Logo
# Use a logo file in the side bar
# You must place the logo file into the theme's static images folder, which can be done using files_to_copy
# files_to_copy = (('logo.png', 'static/images/logo.png'))
# site_logo = 'logo.png'
# --------
# Plugins
# --------

View File

@@ -20,7 +20,13 @@
<div class="container">
<div class="three columns">
<div class="sidebar">
<h1><a href="{{ album.index_url }}">{{ index_title }}</a></h1>
<h1><a href="{{ album.index_url }}">
{% if settings.site_logo %}
<img src="{{ theme.url }}/images/{{ settings.site_logo }}" alt="{{ index_title }}">
{% else %}
{{ index_title }}
{% endif %}
</a></h1>
{% if settings.links %}
<nav id="menu">
<ul>