diff --git a/pelican/themes/homebrewserver.club/static/css/main.css b/pelican/themes/homebrewserver.club/static/css/main.css new file mode 100644 index 0000000..7573a7f --- /dev/null +++ b/pelican/themes/homebrewserver.club/static/css/main.css @@ -0,0 +1,233 @@ +/* +2k17 Homebrewserver.club Pelican theme +--- +Style sheet is ordered vertically, with declarations for the header on top and footer on the bottom. + +With contributions by club members: +http://roelof.info +http://randomiser.info/ +http://majesticmoo.se +*/ + +@font-face { + font-family:'Terminus'; + src: url('../fonts/TerminusTTF-4.40.1.ttf') format('truetype'); +} + +@font-face{ + font-family:'UNSCII'; + src: url("../fonts/unscii-8.ttf") format('truetype'); +} + + + +header { + width:100%; +} + +#banner { + line-height: 1em; + font-size: calc(0.7vh + 0.7vw + 0.25vmin); + text-align:center; + +} +pre { + font-family: 'Terminus'; +} +#menu{ + font-size:40px; + font-weight:bold; + margin-top: 1em; + text-align:center; +} + +body { + line-height:1.5em; + font-size: 24px; + color:#6363ff; + background-color:#fdfdfd; + max-width:80%; + min-width:650px; + margin: 40px auto; + font-family:'Terminus'; +} + +a { + color:#fe4a49; +} + + +#index{ + width:100%; + +} + +#post-list { + padding-left:0px; + margin-top:0px; +} + +ul { + padding-left:0px; +} + +.hentry{ + margin-top:2em; + border-width: 1px; + border-color: #444; + border-style: hidden hidden dashed hidden; +} + +.entry-title{ + font-size:36px; + font-weight:bold; + margin-top:2em; +} + +.entry-title span{ + width:100%; + display:inline-block; +} + +.entry-content{ + margin:auto; + padding-bottom:1em; +} + +.entry-content pre{ + font-size:20px; + padding-left:1em; + overflow: auto; + background-color: #F8F8F8; + line-height:1.2em; +} + +.entry-content img{ + max-height:100%; +} + +.entry-content ul { + font-size:20px; + line-height:1.5; + margin: auto; + max-width:800px; +} + +.highlight{ + margin: auto; + max-width:800px; +} + +blockquote { + font-style:italic; +} + +#content{ + margin:auto; +} + +#content p{ + font-size:20px; + line-height:1.5; + max-width:800px; + margin: 0 auto; + margin-bottom:1em; +} + +#content p img{ + +} + +.divider { + font-size:12px; + width:100%; + line-height:1em; + background-color:white; +} + +.published{ + font-size:smaller; +} + + +#categories { + font-size: 40px; + margin-top: 2em; + text-align: center; +} +#pertaining{ + margin-top:2em; + text-align:center; + +} +.simple-footnotes{ + font-size:14px; + margin:auto; + max-width:800px; +} + +.author{ + font-size:smaller; +} + +.post-info { + line-height: 1em; +} + +/* some good ol' theft from https://codepo8.github.io/css-fork-on-github-ribbon/ */ +#forkongithub a { + background:#fe4a49; + color:#fff; + text-decoration:none; + font-family:arial,sans-serif; + text-align:center; + font-weight:bold; + padding:5px 40px; + font-size:1rem; + line-height:2rem; + position:relative; + transition:0.5s;} + +#forkongithub a:hover{ + background:#6363ff; + color:#fff;} + +#forkongithub a::before,#forkongithub a::after{ + content:""; + width:100%; + display:block; + position:absolute; + top:1px; + left:0; + height:1px; + background:#fff; +} +#forkongithub a::after{ + bottom:1px; + top:auto; +} + +@media screen and (min-width:800px){ + #forkongithub{ + position:fixed; + display:block; + top:0; + right:0; + width:200px; + overflow:hidden; + height:200px; + z-index:9999; + } +#forkongithub a{ + width:200px; + position:absolute; + top:60px; + right:-60px; + transform:rotate(45deg); + -webkit-transform:rotate(45deg); + -ms-transform:rotate(45deg); + -moz-transform:rotate(45deg); + -o-transform:rotate(45deg); + box-shadow:4px 4px 10px rgba(0,0,0,0.8); + } +} diff --git a/pelican/themes/homebrewserver.club/static/css/pygment.css b/pelican/themes/homebrewserver.club/static/css/pygment.css new file mode 100644 index 0000000..ab96d84 --- /dev/null +++ b/pelican/themes/homebrewserver.club/static/css/pygment.css @@ -0,0 +1,437 @@ + +pre .hll { + background-color: #ffffcc; +} +pre .c { + color: #60a0b0; + font-style: italic; +} +pre .err { + border: 1px solid #ff0000; +} +pre .k { + color: #007020; + font-weight: bold; +} +pre .o { + color: #666666; +} +pre .ch { + color: #60a0b0; + font-style: italic; +} +pre .cm { + color: #60a0b0; + font-style: italic; +} +pre .cp { + color: #007020; +} +pre .cpf { + color: #60a0b0; + font-style: italic; +} +pre .c1 { + color: #60a0b0; + font-style: italic; +} +pre .cs { + background-color: #fff0f0; + color: #60a0b0; +} +pre .gd { + color: #a00000; +} +pre .ge { + font-style: italic; +} +pre .gr { + color: #ff0000; +} +pre .gh { + color: #000080; + font-weight: bold; +} +pre .gi { + color: #00a000; +} +pre .go { + color: #888888; +} +pre .gp { + color: #c65d09; + font-weight: bold; +} +pre .gs { + font-weight: bold; +} +pre .gu { + color: #800080; + font-weight: bold; +} +pre .gt { + color: #0044dd; +} +pre .kc { + color: #007020; + font-weight: bold; +} +pre .kd { + color: #007020; + font-weight: bold; +} +pre .kn { + color: #007020; + font-weight: bold; +} +pre .kp { + color: #007020; +} +pre .kr { + color: #007020; + font-weight: bold; +} +pre .kt { + color: #902000; +} +pre .m { + color: #40a070; +} +pre .s { + color: #4070a0; +} +pre .na { + color: #4070a0; +} +pre .nb { + color: #007020; +} +pre .nc { + color: #0e84b5; + font-weight: bold; +} +pre .no { + color: #60add5; +} +pre .nd { + color: #555555; + font-weight: bold; +} +pre .ni { + color: #d55537; + font-weight: bold; +} +pre .ne { + color: #007020; +} +pre .nf { + color: #06287e; +} +pre .nl { + color: #002070; + font-weight: bold; +} +pre .nn { + color: #0e84b5; + font-weight: bold; +} +pre .nt { + color: #062873; + font-weight: bold; +} +pre .nv { + color: #bb60d5; +} +pre .ow { + color: #007020; + font-weight: bold; +} +pre .w { + color: #bbbbbb; +} +pre .mb { + color: #40a070; +} +pre .mf { + color: #40a070; +} +pre .mh { + color: #40a070; +} +pre .mi { + color: #40a070; +} +pre .mo { + color: #40a070; +} +pre .sb { + color: #4070a0; +} +pre .sc { + color: #4070a0; +} +pre .sd { + color: #4070a0; + font-style: italic; +} +pre .s2 { + color: #4070a0; +} +pre .se { + color: #4070a0; + font-weight: bold; +} +pre .sh { + color: #4070a0; +} +pre .si { + color: #70a0d0; + font-style: italic; +} +pre .sx { + color: #c65d09; +} +pre .sr { + color: #235388; +} +pre .s1 { + color: #4070a0; +} +pre .ss { + color: #517918; +} +pre .bp { + color: #007020; +} +pre .vc { + color: #bb60d5; +} +pre .vg { + color: #bb60d5; +} +pre .vi { + color: #bb60d5; +} +pre .il { + color: #40a070; +} +.syntax pre .hll { + background-color: #ffffcc; +} +.syntax pre { + background: #f0f0f0 none repeat scroll 0 0; +} +.syntax pre .c { + color: #60a0b0; + font-style: italic; +} +.syntax pre .err { + border: 1px solid #ff0000; +} +.syntax pre .k { + color: #007020; + font-weight: bold; +} +.syntax pre .o { + color: #666666; +} +.syntax pre .ch { + color: #60a0b0; + font-style: italic; +} +.syntax pre .cm { + color: #60a0b0; + font-style: italic; +} +.syntax pre .cp { + color: #007020; +} +.syntax pre .cpf { + color: #60a0b0; + font-style: italic; +} +.syntax pre .c1 { + color: #60a0b0; + font-style: italic; +} +.syntax pre .cs { + background-color: #fff0f0; + color: #60a0b0; +} +.syntax pre .gd { + color: #a00000; +} +.syntax pre .ge { + font-style: italic; +} +.syntax pre .gr { + color: #ff0000; +} +.syntax pre .gh { + color: #000080; + font-weight: bold; +} +.syntax pre .gi { + color: #00a000; +} +.syntax pre .go { + color: #888888; +} +.syntax pre .gp { + color: #c65d09; + font-weight: bold; +} +.syntax pre .gs { + font-weight: bold; +} +.syntax pre .gu { + color: #800080; + font-weight: bold; +} +.syntax pre .gt { + color: #0044dd; +} +.syntax pre .kc { + color: #007020; + font-weight: bold; +} +.syntax pre .kd { + color: #007020; + font-weight: bold; +} +.syntax pre .kn { + color: #007020; + font-weight: bold; +} +.syntax pre .kp { + color: #007020; +} +.syntax pre .kr { + color: #007020; + font-weight: bold; +} +.syntax pre .kt { + color: #902000; +} +.syntax pre .m { + color: #40a070; +} +.syntax pre .s { + color: #4070a0; +} +.syntax pre .na { + color: #4070a0; +} +.syntax pre .nb { + color: #007020; +} +.syntax pre .nc { + color: #0e84b5; + font-weight: bold; +} +.syntax pre .no { + color: #60add5; +} +.syntax pre .nd { + color: #555555; + font-weight: bold; +} +.syntax pre .ni { + color: #d55537; + font-weight: bold; +} +.syntax pre .ne { + color: #007020; +} +.syntax pre .nf { + color: #06287e; +} +.syntax pre .nl { + color: #002070; + font-weight: bold; +} +.syntax pre .nn { + color: #0e84b5; + font-weight: bold; +} +.syntax pre .nt { + color: #062873; + font-weight: bold; +} +.syntax pre .nv { + color: #bb60d5; +} +.syntax pre .ow { + color: #007020; + font-weight: bold; +} +.syntax pre .w { + color: #bbbbbb; +} +.syntax pre .mb { + color: #40a070; +} +.syntax pre .mf { + color: #40a070; +} +.syntax pre .mh { + color: #40a070; +} +.syntax pre .mi { + color: #40a070; +} +.syntax pre .mo { + color: #40a070; +} +.syntax pre .sb { + color: #4070a0; +} +.syntax pre .sc { + color: #4070a0; +} +.syntax pre .sd { + color: #4070a0; + font-style: italic; +} +.syntax pre .s2 { + color: #4070a0; +} +.syntax pre .se { + color: #4070a0; + font-weight: bold; +} +.syntax pre .sh { + color: #4070a0; +} +.syntax pre .si { + color: #70a0d0; + font-style: italic; +} +.syntax pre .sx { + color: #c65d09; +} +.syntax pre .sr { + color: #235388; +} +.syntax pre .s1 { + color: #4070a0; +} +.syntax pre .ss { + color: #517918; +} +.syntax pre .bp { + color: #007020; +} +.syntax pre .vc { + color: #bb60d5; +} +.syntax pre .vg { + color: #bb60d5; +} +.syntax pre .vi { + color: #bb60d5; +} +.syntax pre .il { + color: #40a070; +} + diff --git a/pelican/themes/homebrewserver.club/static/fonts/TerminusTTF-4.40.1.ttf b/pelican/themes/homebrewserver.club/static/fonts/TerminusTTF-4.40.1.ttf new file mode 100644 index 0000000..3eb75d2 Binary files /dev/null and b/pelican/themes/homebrewserver.club/static/fonts/TerminusTTF-4.40.1.ttf differ diff --git a/pelican/themes/homebrewserver.club/static/fonts/TerminusTTF-Bold Italic-4.40.1.ttf b/pelican/themes/homebrewserver.club/static/fonts/TerminusTTF-Bold Italic-4.40.1.ttf new file mode 100644 index 0000000..61318d4 Binary files /dev/null and b/pelican/themes/homebrewserver.club/static/fonts/TerminusTTF-Bold Italic-4.40.1.ttf differ diff --git a/pelican/themes/homebrewserver.club/static/fonts/TerminusTTF-Bold-4.40.1.ttf b/pelican/themes/homebrewserver.club/static/fonts/TerminusTTF-Bold-4.40.1.ttf new file mode 100644 index 0000000..1ee87df Binary files /dev/null and b/pelican/themes/homebrewserver.club/static/fonts/TerminusTTF-Bold-4.40.1.ttf differ diff --git a/pelican/themes/homebrewserver.club/static/fonts/TerminusTTF-Italic-4.40.1.ttf b/pelican/themes/homebrewserver.club/static/fonts/TerminusTTF-Italic-4.40.1.ttf new file mode 100644 index 0000000..317925d Binary files /dev/null and b/pelican/themes/homebrewserver.club/static/fonts/TerminusTTF-Italic-4.40.1.ttf differ diff --git a/pelican/themes/homebrewserver.club/static/fonts/unscii-8.ttf b/pelican/themes/homebrewserver.club/static/fonts/unscii-8.ttf new file mode 100644 index 0000000..16e97c7 Binary files /dev/null and b/pelican/themes/homebrewserver.club/static/fonts/unscii-8.ttf differ diff --git a/pelican/themes/homebrewserver.club/templates/archives.html b/pelican/themes/homebrewserver.club/templates/archives.html new file mode 100644 index 0000000..050f268 --- /dev/null +++ b/pelican/themes/homebrewserver.club/templates/archives.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} +{% block content %} +

Archives for {{ SITENAME }}

+ +
+{% for article in dates %} +
{{ article.locale_date }}
+
{{ article.title }}
+{% endfor %} +
+{% endblock %} diff --git a/pelican/themes/homebrewserver.club/templates/article.html b/pelican/themes/homebrewserver.club/templates/article.html new file mode 100644 index 0000000..7cbc272 --- /dev/null +++ b/pelican/themes/homebrewserver.club/templates/article.html @@ -0,0 +1,52 @@ +{% extends "base.html" %} +{% block head %} + {{ super() }} + {% if article.description %} + + {% endif %} + + {% if article.tags or article.category or article.keywords %} + + {% endif %} + +{% from 'syndication.html' import syndication with context %} +{{ syndication(article) }} + +{% endblock %} +
+ ../ +
+ ../ + + +{% block content %} +
+
+
+ {{ article.title }}
+ {% import 'translations.html' as translations with context %} + {{ translations.translations_for(article) }} +
+
+ + {% if article.modified %} + + {% endif %} + {% if article.authors %} +
+ By {% for author in article.authors %} + {{ author }} + {% endfor %} +
+ {% endif %} +
+
+ {{ article.content }} +
+
+{% endblock %} diff --git a/pelican/themes/homebrewserver.club/templates/author.html b/pelican/themes/homebrewserver.club/templates/author.html new file mode 100644 index 0000000..e9f7870 --- /dev/null +++ b/pelican/themes/homebrewserver.club/templates/author.html @@ -0,0 +1,7 @@ +{% extends "index.html" %} + +{% block title %}{{ SITENAME }} - Articles by {{ author }}{% endblock %} +{% block content_title %} +

Articles by {{ author }}

+{% endblock %} + diff --git a/pelican/themes/homebrewserver.club/templates/authors.html b/pelican/themes/homebrewserver.club/templates/authors.html new file mode 100644 index 0000000..4914904 --- /dev/null +++ b/pelican/themes/homebrewserver.club/templates/authors.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} - Authors{% endblock %} + +{% block content %} +

Authors on {{ SITENAME }}

+ + +{% endblock %} diff --git a/pelican/themes/homebrewserver.club/templates/banner.html b/pelican/themes/homebrewserver.club/templates/banner.html new file mode 100644 index 0000000..14dd55c --- /dev/null +++ b/pelican/themes/homebrewserver.club/templates/banner.html @@ -0,0 +1,5 @@ +
+┃ ┃┏━┃┏┏ ┏━┛┏━ ┏━┃┏━┛┃┃┃┏━┛┏━┛┏━┃┃ ┃┏━┛┏━┃ ┏━┛┃  ┃ ┃┏━ 
+┏━┃┃ ┃┃┃┃┏━┛┏━┃┏┏┛┏━┛┃┃┃━━┃┏━┛┏┏┛┃ ┃┏━┛┏┏┛ ┃  ┃  ┃ ┃┏━┃
+┛ ┛━━┛┛┛┛━━┛━━ ┛ ┛━━┛━━┛━━┛━━┛┛ ┛ ┛ ━━┛┛ ┛┛━━┛━━┛━━┛━━   ━ ━
+
diff --git a/pelican/themes/homebrewserver.club/templates/base.html b/pelican/themes/homebrewserver.club/templates/base.html new file mode 100644 index 0000000..e5a855b --- /dev/null +++ b/pelican/themes/homebrewserver.club/templates/base.html @@ -0,0 +1,73 @@ + + + + {% block head %} + {% block title %}{{ SITENAME }}{% endblock title %} + + + + + {% if FEED_ALL_ATOM %} + + {% endif %} + {% if FEED_ALL_RSS %} + + {% endif %} + {% if FEED_ATOM %} + + {% endif %} + {% if FEED_RSS %} + + {% endif %} + {% if CATEGORY_FEED_ATOM and category %} + + {% endif %} + {% if CATEGORY_FEED_RSS and category %} + + {% endif %} + {% if TAG_FEED_ATOM and tag %} + + {% endif %} + {% if TAG_FEED_RSS and tag %} + + {% endif %} + + {% from 'syndication.html' import syndication with context %} + {{ syndication(article) }} + + + + {% endblock head %} + + + + + Yes We're Config!™ + + {% block content %} + {% endblock %} + + diff --git a/pelican/themes/homebrewserver.club/templates/categories.html b/pelican/themes/homebrewserver.club/templates/categories.html new file mode 100644 index 0000000..789cfa1 --- /dev/null +++ b/pelican/themes/homebrewserver.club/templates/categories.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} +{% block content %} +
+{% for category, articles in categories %} + {{ category }} +{% endfor %} +
+{% endblock %} diff --git a/pelican/themes/homebrewserver.club/templates/category.html b/pelican/themes/homebrewserver.club/templates/category.html new file mode 100644 index 0000000..39a8439 --- /dev/null +++ b/pelican/themes/homebrewserver.club/templates/category.html @@ -0,0 +1,5 @@ +{% extends "index.html" %} +{% block content_title %} +
Everything pertaining to {{ category }}
+{% endblock %} + diff --git a/pelican/themes/homebrewserver.club/templates/gosquared.html b/pelican/themes/homebrewserver.club/templates/gosquared.html new file mode 100644 index 0000000..49ccbbe --- /dev/null +++ b/pelican/themes/homebrewserver.club/templates/gosquared.html @@ -0,0 +1,14 @@ +{% if GOSQUARED_SITENAME %} + +{% endif %} diff --git a/pelican/themes/homebrewserver.club/templates/index.html b/pelican/themes/homebrewserver.club/templates/index.html new file mode 100644 index 0000000..e538ad3 --- /dev/null +++ b/pelican/themes/homebrewserver.club/templates/index.html @@ -0,0 +1,22 @@ +{% extends "base.html" %} +{% block content %} +
+{% block content_title %} +{% endblock %} + +
    +{% for article in articles_page.object_list %} + +{% endfor %} +
+{% if articles_page.has_other_pages() %} + {% include 'pagination.html' %} +{% endif %} +
+{% endblock content %} diff --git a/pelican/themes/homebrewserver.club/templates/page.html b/pelican/themes/homebrewserver.club/templates/page.html new file mode 100644 index 0000000..5ce1974 --- /dev/null +++ b/pelican/themes/homebrewserver.club/templates/page.html @@ -0,0 +1,16 @@ +{% extends "base.html" %} +{% block title %}{{ page.title }}{%endblock%} +{% block content %} + {% import 'translations.html' as translations with context %} + {{ translations.translations_for(page) }} + +
+ {{ page.content }} + + {% if page.modified %} +

+ Last updated: {{ page.locale_modified }} +

+ {% endif %} +
+{% endblock %} diff --git a/pelican/themes/homebrewserver.club/templates/pagination.html b/pelican/themes/homebrewserver.club/templates/pagination.html new file mode 100644 index 0000000..4219a5c --- /dev/null +++ b/pelican/themes/homebrewserver.club/templates/pagination.html @@ -0,0 +1,11 @@ +{% if DEFAULT_PAGINATION %} +

+ {% if articles_page.has_previous() %} + « + {% endif %} + Page {{ articles_page.number }} / {{ articles_paginator.num_pages }} + {% if articles_page.has_next() %} + » + {% endif %} +

+{% endif %} diff --git a/pelican/themes/homebrewserver.club/templates/period_archives.html b/pelican/themes/homebrewserver.club/templates/period_archives.html new file mode 100644 index 0000000..d930dbb --- /dev/null +++ b/pelican/themes/homebrewserver.club/templates/period_archives.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} +{% block content %} +

Archives for {{ period | reverse | join(' ') }}

+ +
+{% for article in dates %} +
{{ article.locale_date }}
+
{{ article.title }}
+{% endfor %} +
+{% endblock %} diff --git a/pelican/themes/homebrewserver.club/templates/syndication.html b/pelican/themes/homebrewserver.club/templates/syndication.html new file mode 100644 index 0000000..c29773c --- /dev/null +++ b/pelican/themes/homebrewserver.club/templates/syndication.html @@ -0,0 +1,56 @@ +{#This template is for syndicating across the fucked up part of the web. It implements Open Graph and Twitter Card metadata to display links to HBSC well on social media +# This code is mostly taken from Talha Mansoor's Elegant pelican theme https://github.com/talha131/pelican-elegant +#} + +{# Thumbnail image to show when homepage is shared on social media. It also +serves as the default image for posts whose featured_image is not set. #} +{% if not FEATURED_IMAGE %} +{% set FEATURED_IMAGE = 'http://homebrewserver.club/images/conv_2.png' %} +{% else %} +{% set FEATURED_IMAGE = FEATURED_IMAGE %} +{% endif %} + + +{% macro syndication(article) %} +{% if article %} + + + + + +{% if article.date %} + +{% endif %} +{% if article.locale_modified and article.modified %} + +{% endif %} + + + +{% if article.featured_image %} + + +{% else %} + {% if FEATURED_IMAGE %} + + + {% endif %} +{% endif %} +{% endif %} +{% if not article %} + + + + + + + + +{% if FEATURED_IMAGE %} + + +{% endif %} +{% endif %} +{% endmacro %} + + diff --git a/pelican/themes/homebrewserver.club/templates/tag.html b/pelican/themes/homebrewserver.club/templates/tag.html new file mode 100644 index 0000000..e69de29 diff --git a/pelican/themes/homebrewserver.club/templates/tags.html b/pelican/themes/homebrewserver.club/templates/tags.html new file mode 100644 index 0000000..b5d1482 --- /dev/null +++ b/pelican/themes/homebrewserver.club/templates/tags.html @@ -0,0 +1,10 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} - Tags{% endblock %} + +{% block content %} +

Tags for {{ SITENAME }}

+ {%- for tag, articles in tags|sort %} +
  • {{ tag }} ({{ articles|count }})
  • + {% endfor %} +{% endblock %} diff --git a/pelican/themes/homebrewserver.club/templates/translations.html b/pelican/themes/homebrewserver.club/templates/translations.html new file mode 100644 index 0000000..db8c372 --- /dev/null +++ b/pelican/themes/homebrewserver.club/templates/translations.html @@ -0,0 +1,9 @@ +{% macro translations_for(article) %} +{% if article.translations %} +Translations: +{% for translation in article.translations %} +{{ translation.lang }} +{% endfor %} +{% endif %} +{% endmacro %} +