diff --git a/config.py b/config.py index aa29c99c..6f85ed09 100644 --- a/config.py +++ b/config.py @@ -34,6 +34,7 @@ LINK_INDEX_TEMPLATE = os.getenv('LINK_INDEX_TEMPLATE', 'templates/link_ind INDEX_TEMPLATE = os.getenv('INDEX_TEMPLATE', 'templates/index.html') INDEX_ROW_TEMPLATE = os.getenv('INDEX_ROW_TEMPLATE', 'templates/index_row.html') TEMPLATE_STATICFILES = os.getenv('TEMPLATE_STATICFILES', 'templates/static') +FOOTER_INFO = os.getenv('FOOTER_INFO', 'Content is hosted for personal archiving purposes only. Contact server owner for any takedown requests.',) ### Output Paths ROOT_FOLDER = os.path.dirname(os.path.abspath(__file__)) diff --git a/index.py b/index.py index b1c3108e..75d28e72 100644 --- a/index.py +++ b/index.py @@ -90,6 +90,9 @@ def write_html_links_index(out_dir, links): 'num_links': len(links), 'date_updated': datetime.now().strftime('%Y-%m-%d'), 'time_updated': datetime.now().strftime('%Y-%m-%d %H:%M'), + 'footer_info': FOOTER_INFO, + 'git_sha': GIT_SHA, + 'short_git_sha': GIT_SHA[:8], 'rows': link_rows, } diff --git a/templates/index.html b/templates/index.html index f97b0d5e..1af4efdc 100644 --- a/templates/index.html +++ b/templates/index.html @@ -22,11 +22,12 @@ height: 100px; } header h1 { - font-size: 36px; + font-size: 38px; font-weight: 300; color: black; - margin-top: 2px; + padding-top: 14px; line-height: 1.4; + margin-right: -200px; } header h1 small { color: white; @@ -43,12 +44,17 @@ header h1 small a:hover { opacity: 1; } + .header-center { + width: 100%; + text-align: center; + } .header-right { float: right; width: 50px; height: 60px; text-align: center; padding: 20px; + margin-left: -100px; } table { padding: 6px; @@ -82,7 +88,7 @@