commit 129519fa93a4435f8fd014a25608f6ac27ca719b Author: Leander Hutton Date: Wed Mar 6 17:01:54 2019 -0500 Intial commit diff --git a/README.md b/README.md new file mode 100755 index 0000000..faf8879 --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +one-button.org/leanderhutton.com Theme +====================================== + +Very heavily modifed Monospace theme. Almost to the point of none recognition. + +Original theme from: https://github.com/getpelican/pelican-themes/tree/master/monospace + +For use with Markdown code highlighting: + + MARKDOWN = { + 'extension_configs': { + 'markdown.extensions.codehilite': {'css_class': 'highlight', 'linenums': 'False'}, + 'markdown.extensions.extra': {}, + 'markdown.extensions.meta': {}, + }, + 'output_format': 'html5', + } + +Also, you might want to include the `DESCRIPTION` option (it appears in the left sidebar): + + DESCRIPTION = 'My blog and stuff ...' + diff --git a/static/css/main.css b/static/css/main.css new file mode 100755 index 0000000..36e4f35 --- /dev/null +++ b/static/css/main.css @@ -0,0 +1,109 @@ +@import url("pygment.css"); + +body { margin:0px; padding:20px 0px; text-align:center; font-family:"Palatino Linotype", "Book Antiqua", Palatino, serif; color:#000000; } +a, a:visited { text-decoration:none; color:#1d2a78; } +a:hover { text-decoration:underline; } +h1, h2, h3, h4, h5, h6, h7 { margin:0px; line-height: 1.1em; } +h4, h5, h6 { font-size:16px; } +h1 { padding:0px 0px 15px; margin:0px 0px 5px 0px; } +blockquote { font-style:italic; background:#EAEAEA; margin:20px; padding:5px 10px; } +blockquote cite { display:block; padding:10px 20px 0 0; text-align:right; } +input, textarea { padding:5px; border:1px solid #8A8A8A; background:#EAEAEA; } +input:hover, textarea:hover, blockquote:hover { background:#E5E5E5; } + +#wrap { margin:0px auto; text-align:left; font-size: 14px; line-height: 1.4; } +#container { float:right; } +#sidebar { overflow:hidden; clear:left; text-align:right; width:200px; height:auto; padding:0px 15px 0px 0px; border-right:1px dotted #C8C8C8; } +#sidebar li { list-style-type:none; font-size: 1.2em; font-weight: bold; } +#sidebar > li { margin:20px 0px; } +#sidebar h1 { border-bottom:1px dotted #C8C8C8; } +#sidebar .description { display:block; font-size: 1.1em; width:100%; height:auto; margin:0px 0px 10px 0px; } +#landing img { display:block; border:1px solid #000000 !important; margin-left: auto; margin-right: auto; max-height: 100%; max-width: 100%; } +#landing p { text-align: center; font-size: 1.4em; } + + +ul.sub-menu, ul.children { margin:0px 10px 0px 0px; } + +.post { margin:0px 0px 30px 0px; padding:0px 0px 30px 0px; border-bottom:1px dotted #C8C8C8; } +.post-edit-link { clear:both; } +.meta { margin:10px; padding:15px; background:#EAEAEA; clear:both; } +.meta span { display:block; clear:left; } + +.gallerysquare { position: relative; float: left; max-width: 50%; max-height: 50%; display: flex; } +.gallerysquare img { object-fit: cover; width: 500px; height: 500px; } +.gallerylabel { position: absolute; bottom: 20px; left: 20px; background-color: rgba(0, 0, 0, 0.5); color: white; font-size: 1.7em; font-weight: 600; font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif; padding: 1.5em; } + +.gallerylabel a.hover { font-style: underline; } +.gallerylabel a { color:#FFFFFF; } +.gallerylabel a.visited { color:#FFFFFF; } + +.portfolio { padding-right: 1.0em; text-align: center; } +.portfolio h4 { font-size: 2.0em; font-family: sans; } +.portfolio img { display:block; border:1px solid #000000 !important; margin-left: auto; margin-right: auto; max-height: 100%; max-width: 100%; } + +.entry { font-size: 1.15em; line-height: 1.3em; padding-right: 1.0em; max-width:1024px; } +.entry h2, h3, h4, h5 { margin:30px 0px 10px 0px; } + +.entry img { display:block; border:1px solid #000000 !important; margin-left: auto; margin-right: auto; max-height: 100%; max-width: 100%; } +.entry img.wp-smiley { border:0px !important; } +.entry a img:hover { background-color:transparent; border:1px solid #E5E5E5 !important; } +.entry .aligncenter, div.aligncenter { margin:10px auto; } +.entry .alignleft { float: left; margin:10px 15px 10px 0px; } +.entry .alignright { float: right; margin:10px 0px 10px 15px; } +.entry .alignnone { margin:10px 0px; } +.entry .gallery, .wp-caption { text-align:center; background:#EAEAEA; margin:10px; padding:10px; border:0px; max-width:620px; height:auto; } +.entry .wp-caption img { border:0 none; margin:0px auto; padding:0; max-width:500px; height:auto; } +.entry .gallery:hover, .wp-caption:hover { background:#E5E5E5; } +.entry .gallery-caption, .wp-caption-text { background:transparent; } +.entry .wp-caption p.wp-caption-text { font-size:11px; line-height:17px; margin:5px 50px 0px; } +.entry .gallery-icon { width:100%; height:auto; } +.entry .gallery-icon img { margin:0px auto; } +.entry .gallery-caption { margin:5px 10px 0px 0px; padding:0px; } +.entry p.attachment img { margin:0px auto; } +.sticky { border-bottom:3px dotted #C8C8C8; } + + +.wp_syntax { padding:5px 0px; } +.wp_syntax pre { line-height:1.1; } +.wp_syntax pre.php { line-height:1; } + +.widget_recent_entries ul li, +.widget_recent_comments ul li, +.widget_rss ul li { margin:10px 0px; padding:10px 0px; border-top:1px dotted #C8C8C8; } + +.related { margin:20px 0px 0px 0px; } +.nav { margin:30px 0px; text-align:center; } + +#comments { border-top:1px dotted #C8C8C8; margin:30px 0px 0px 0px; padding:30px 0px 0px 0px; } +.commentlist li { list-style-type:none; padding:10px; margin:20px 0px 0px 0px; } +.commentlist li.even { background:#EAEAEA; } +.commentlist li.odd { background:#D6D6D6; } +.comment-author img { float:left; margin:0px 10px 10px 0px; } +ul.commentlist ul.children { padding-left:10px; } +ul.commentlist ul.children li { list-style-type:none; border:1px solid #AAA } +.form-section { margin:10px 0px; text-align:right; } +.form-section div { display:inline; } +.bypostauthor { border:3px dotted #C8C8C8; } +.form-allowed-tags { display:none; } + +#respond { margin:30px 0px 0px 0px; background:#FFF; border:1px solid #9A9A9A; margin:30px 0 0; padding:20px; } +#commentform p { text-align:right; } +#commentform input { width:50%; height:auto; margin:0px 0px 0px 10px; } +#commentform .required { font-weight:bold; } +#commentform textarea { width:95%; height:auto; margin:10px 0px 0px 0px; } +#commentform .comment-form-comment { margin-bottom:5px; text-align:right; } +#commentform .form-allowed-tags { color:#8A8A8A; margin-top:0px; font-size:10px; } + +input#submit { font-weight:bold; } +input#s { width:70%; height:auto; margin:5px 0px; } + +#footer { text-align:center; clear:both; font-size: 1.1em; } +#footer div { margin:30px 0px 0px 0px; padding:30px 0px 0px 0px; border-top:1px dotted #C8C8C8; } +#footer li { list-style-type:none; } +#footer .widget_tag_cloud h2 { display:none; } + +/* LWM EDITS */ +#page-title{ + position : relative; + top : 8px; +} diff --git a/static/css/pygment.css b/static/css/pygment.css new file mode 100755 index 0000000..23f26d4 --- /dev/null +++ b/static/css/pygment.css @@ -0,0 +1,293 @@ +.highlight code, +.highlight pre { + color: #FFFFFF; + background-color: #333333; + padding: 10px; + white-space: pre-wrap; + font-size: 14px; +} + +.highlight .hll { + background-color: #222 +} + +.highlight .c { + color: #7f9f7f +} + +.highlight .err { + color: #e37170; + background-color: #3d3535 +} + +.highlight .g { + color: #7f9f7f +} + +.highlight .k { + color: #f0dfaf +} + +.highlight .l { + color: #ccc +} + +.highlight .n { + color: #dcdccc +} + +.highlight .o { + color: #f0efd0 +} + +.highlight .x { + color: #ccc +} + +.highlight .p { + color: #41706f +} + +.highlight .cm { + color: #7f9f7f +} + +.highlight .cp { + color: #7f9f7f +} + +.highlight .c1 { + color: #7f9f7f +} + +.highlight .cs { + color: #cd0000; + font-weight: bold +} + +.highlight .gd { + color: #cd0000 +} + +.highlight .ge { + color: #ccc; + font-style: italic +} + +.highlight .gr { + color: red +} + +.highlight .gh { + color: #dcdccc; + font-weight: bold +} + +.highlight .gi { + color: #00cd00 +} + +.highlight .go { + color: gray +} + +.highlight .gp { + color: #dcdccc; + font-weight: bold +} + +.highlight .gs { + color: #ccc; + font-weight: bold +} + +.highlight .gu { + color: purple; + font-weight: bold +} + +.highlight .gt { + color: #0040D0 +} + +.highlight .kc { + color: #dca3a3 +} + +.highlight .kd { + color: #ffff86 +} + +.highlight .kn { + color: #dfaf8f; + font-weight: bold +} + +.highlight .kp { + color: #cdcf99 +} + +.highlight .kr { + color: #cdcd00 +} + +.highlight .kt { + color: #00cd00 +} + +.highlight .ld { + color: #cc9393 +} + +.highlight .m { + color: #8cd0d3 +} + +.highlight .s { + color: #cc9393 +} + +.highlight .na { + color: #9ac39f +} + +.highlight .nb { + color: #efef8f +} + +.highlight .nc { + color: #efef8f +} + +.highlight .no { + color: #ccc +} + +.highlight .nd { + color: #ccc +} + +.highlight .ni { + color: #c28182 +} + +.highlight .ne { + color: #c3bf9f; + font-weight: bold +} + +.highlight .nf { + color: #efef8f +} + +.highlight .nl { + color: #ccc +} + +.highlight .nn { + color: #8fbede +} + +.highlight .nx { + color: #ccc +} + +.highlight .py { + color: #ccc +} + +.highlight .nt { + color: #9ac39f +} + +.highlight .nv { + color: #dcdccc +} + +.highlight .ow { + color: #f0efd0 +} + +.highlight .w { + color: #ccc +} + +.highlight .mf { + color: #8cd0d3 +} + +.highlight .mh { + color: #8cd0d3 +} + +.highlight .mi { + color: #8cd0d3 +} + +.highlight .mo { + color: #8cd0d3 +} + +.highlight .sb { + color: #cc9393 +} + +.highlight .sc { + color: #cc9393 +} + +.highlight .sd { + color: #cc9393 +} + +.highlight .s2 { + color: #cc9393 +} + +.highlight .se { + color: #cc9393 +} + +.highlight .sh { + color: #cc9393 +} + +.highlight .si { + color: #cc9393 +} + +.highlight .sx { + color: #cc9393 +} + +.highlight .sr { + color: #cc9393 +} + +.highlight .s1 { + color: #cc9393 +} + +.highlight .ss { + color: #cc9393 +} + +.highlight .bp { + color: #efef8f +} + +.highlight .vc { + color: #efef8f +} + +.highlight .vg { + color: #dcdccc +} + +.highlight .vi { + color: #ffffc7 +} + +.highlight .il { + color: #8cd0d3 +} diff --git a/static/css/pygment.css.min b/static/css/pygment.css.min new file mode 100755 index 0000000..f4581c2 --- /dev/null +++ b/static/css/pygment.css.min @@ -0,0 +1,2 @@ +.highlight code,.highlight pre{color:#fdce93;background-color:#3f3f3f;padding:10px;}.highlight .hll{background-color:#222}.highlight .c{color:#7f9f7f}.highlight .err{color:#e37170;background-color:#3d3535}.highlight .g{color:#7f9f7f}.highlight .k{color:#f0dfaf}.highlight .l{color:#ccc}.highlight .n{color:#dcdccc}.highlight .o{color:#f0efd0}.highlight .x{color:#ccc}.highlight .p{color:#41706f}.highlight .cm{color:#7f9f7f}.highlight .cp{color:#7f9f7f}.highlight .c1{color:#7f9f7f}.highlight .cs{color:#cd0000;font-weight:bold}.highlight .gd{color:#cd0000}.highlight .ge{color:#ccc;font-style:italic}.highlight .gr{color:red}.highlight .gh{color:#dcdccc;font-weight:bold}.highlight .gi{color:#00cd00}.highlight .go{color:gray}.highlight .gp{color:#dcdccc;font-weight:bold}.highlight .gs{color:#ccc;font-weight:bold}.highlight .gu{color:purple;font-weight:bold}.highlight .gt{color:#0040D0}.highlight .kc{color:#dca3a3}.highlight .kd{color:#ffff86}.highlight .kn{color:#dfaf8f;font-weight:bold}.highlight .kp{color:#cdcf99}.highlight .kr{color:#cdcd00}.highlight .kt{color:#00cd00}.highlight .ld{color:#cc9393}.highlight .m{color:#8cd0d3}.highlight .s{color:#cc9393}.highlight .na{color:#9ac39f}.highlight .nb{color:#efef8f}.highlight .nc{color:#efef8f}.highlight .no{color:#ccc}.highlight .nd{color:#ccc}.highlight .ni{color:#c28182}.highlight .ne{color:#c3bf9f;font-weight:bold}.highlight .nf{color:#efef8f}.highlight .nl{color:#ccc}.highlight .nn{color:#8fbede}.highlight .nx{color:#ccc}.highlight .py{color:#ccc}.highlight .nt{color:#9ac39f}.highlight .nv{color:#dcdccc}.highlight .ow{color:#f0efd0}.highlight .w{color:#ccc}.highlight .mf{color:#8cd0d3}.highlight .mh{color:#8cd0d3}.highlight .mi{color:#8cd0d3}.highlight .mo{color:#8cd0d3}.highlight .sb{color:#cc9393}.highlight .sc{color:#cc9393}.highlight .sd{color:#cc9393}.highlight .s2{color:#cc9393}.highlight .se{color:#cc9393}.highlight .sh{color:#cc9393}.highlight .si{color:#cc9393}.highlight .sx{color:#cc9393}.highlight .sr{color:#cc9393}.highlight .s1{color:#cc9393}.highlight .ss{color:#cc9393}.highlight .bp{color:#efef8f}.highlight .vc{color:#efef8f}.highlight .vg{color:#dcdccc}.highlight .vi{color:#ffffc7}.highlight .il{color:#8cd0d3} + diff --git a/templates/._index.html b/templates/._index.html new file mode 100755 index 0000000..c025c90 Binary files /dev/null and b/templates/._index.html differ diff --git a/templates/._page.html b/templates/._page.html new file mode 100755 index 0000000..716bec4 Binary files /dev/null and b/templates/._page.html differ diff --git a/templates/analytics.html b/templates/analytics.html new file mode 100755 index 0000000..ba174fc --- /dev/null +++ b/templates/analytics.html @@ -0,0 +1,11 @@ +{% if GOOGLE_ANALYTICS %} + + +{% endif %} \ No newline at end of file diff --git a/templates/archives.html b/templates/archives.html new file mode 100755 index 0000000..9425abf --- /dev/null +++ b/templates/archives.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} +{% block content %} +
+

Archives for {{ SITENAME }}

+ +
+{% for article in dates %} +
{{ article.locale_date }}
+
{{ article.title }}
+{% endfor %} +
+
+{% endblock %} diff --git a/templates/article.html b/templates/article.html new file mode 100755 index 0000000..32d7580 --- /dev/null +++ b/templates/article.html @@ -0,0 +1,29 @@ +{% extends "base.html" %} +{% block title %}{{ super() }} : {{ article.title }}{% endblock %} +{% block content %} +
+

{#{{ SITENAME }}#} {% if SITESUBTITLE %} {{ SITESUBTITLE }}{% endif %} {#:#} + {{ article.title }}

+ {% if not HIDE_DATE %}{% endif %} +
+
+ {{ article.content }} + {% if DISQUS_SITENAME and SITEURL and article.status != "draft" %} +

Comments

+
+ + + {% endif %} +
+{% endblock %} diff --git a/templates/author.html b/templates/author.html new file mode 100755 index 0000000..0b37290 --- /dev/null +++ b/templates/author.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ author }}{% endblock %} diff --git a/templates/authors.html b/templates/authors.html new file mode 100755 index 0000000..e69de29 diff --git a/templates/base.html b/templates/base.html new file mode 100755 index 0000000..658cd40 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,84 @@ + + + + {% block title %}{{ SITENAME }}{%endblock%} + + + + {% if FEED_RSS %} + + {% endif %} + + + + + + + + + + +
+
+
+ {% block content %} + {% endblock %} +
+
+ + + + + + + {% include 'analytics.html' %} + {% include 'piwik.html' %} + {% include 'disqus_script.html' %} + +
+ + + diff --git a/templates/categories.html b/templates/categories.html new file mode 100755 index 0000000..e29be0c --- /dev/null +++ b/templates/categories.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} +{% block content %} + +{% endblock %} diff --git a/templates/category.html b/templates/category.html new file mode 100755 index 0000000..56f8e93 --- /dev/null +++ b/templates/category.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ category }}{% endblock %} diff --git a/templates/comments.html b/templates/comments.html new file mode 100755 index 0000000..bb033c0 --- /dev/null +++ b/templates/comments.html @@ -0,0 +1 @@ +{% if DISQUS_SITENAME %}

There are comments.

{% endif %} diff --git a/templates/disqus_script.html b/templates/disqus_script.html new file mode 100755 index 0000000..c4f442c --- /dev/null +++ b/templates/disqus_script.html @@ -0,0 +1,11 @@ +{% if DISQUS_SITENAME %} + +{% endif %} diff --git a/templates/github.html b/templates/github.html new file mode 100755 index 0000000..75592ac --- /dev/null +++ b/templates/github.html @@ -0,0 +1,9 @@ +{% if GITHUB_URL %} + +{% if GITHUB_POSITION != "left" %} +Fork me on GitHub +{% else %} +Fork me on GitHub +{% endif %} + +{% endif %} diff --git a/templates/index.html b/templates/index.html new file mode 100755 index 0000000..6af3369 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,42 @@ +{% extends "base.html" %} +{% block content_title %}{% endblock %} +{% block content %} +{% if articles %} + +
+

{# {{ SITENAME }} #} {% if SITESUBTITLE %} {{ SITESUBTITLE }}{% endif %} {#:#}

+ {% for article in articles_page.object_list %} +

{{ article.title }}

+ {% if not HIDE_DATE %}{% endif %} +
+ +
+ {{ article.content }} +
+ {% endfor %} +{% else %} + No posts found. +{% endif %} + + {% if DEFAULT_PAGINATION %} +
+ {% if articles_page.has_previous() %} + {% if articles_page.previous_page_number() == 1 %} + <<< + {% else %} + + <<< + + {% endif %} + {% endif %} + Page {{ articles_page.number }} / {{ articles_paginator.num_pages }} + {% if articles_page.has_next() %} + + >>> + + {% endif %} +
+ {% endif %} + + +{% endblock content %} diff --git a/templates/landing.html b/templates/landing.html new file mode 100755 index 0000000..e17a2da --- /dev/null +++ b/templates/landing.html @@ -0,0 +1,83 @@ + + + + {% block title %}{{ SITENAME }}{%endblock%} + + + + {% if FEED_RSS %} + + {% endif %} + + + + + + + + + + +
+
+
+ {{ page.content }} +
+
+ + + + + + + {% include 'analytics.html' %} + {% include 'piwik.html' %} + {% include 'disqus_script.html' %} + +
+ + + diff --git a/templates/page.html b/templates/page.html new file mode 100755 index 0000000..c9d5ff6 --- /dev/null +++ b/templates/page.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} +{% block title %}{{ page.title }}{% endblock %} +{% block content %} +
+

{# {{ SITENAME }} #} {% if SITESUBTITLE %} {{ SITESUBTITLE }}{% endif %} {#:#} + {{ page.title }}

+
+
+ {{ page.content }} +
+{% endblock %} diff --git a/templates/pagination.html b/templates/pagination.html new file mode 100755 index 0000000..83c587a --- /dev/null +++ b/templates/pagination.html @@ -0,0 +1,15 @@ +{% if DEFAULT_PAGINATION %} +

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

+{% endif %} diff --git a/templates/piwik.html b/templates/piwik.html new file mode 100755 index 0000000..f8ee235 --- /dev/null +++ b/templates/piwik.html @@ -0,0 +1,20 @@ +{% if PIWIK_URL and PIWIK_SITE_ID %} + +{% endif %} diff --git a/templates/portfolio.html b/templates/portfolio.html new file mode 100755 index 0000000..c0912b5 --- /dev/null +++ b/templates/portfolio.html @@ -0,0 +1,84 @@ + + + + {% block title %}{{ SITENAME }}{%endblock%} + + + + {% if FEED_RSS %} + + {% endif %} + + + + + + + + + + +
+
+
+ {{ page.content }} +
+
+ + + + + + + {% include 'analytics.html' %} + {% include 'piwik.html' %} + {% include 'disqus_script.html' %} + +
+ + + diff --git a/templates/tag.html b/templates/tag.html new file mode 100755 index 0000000..68cdcba --- /dev/null +++ b/templates/tag.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %} diff --git a/templates/taglist.html b/templates/taglist.html new file mode 100755 index 0000000..c792fd7 --- /dev/null +++ b/templates/taglist.html @@ -0,0 +1,2 @@ +{% if article.tags %}

tags: {% for tag in article.tags %}{{ tag }}{% endfor %}

{% endif %} +{% if PDF_PROCESSOR %}

get the pdf

{% endif %} diff --git a/templates/tags.html b/templates/tags.html new file mode 100755 index 0000000..a6011a0 --- /dev/null +++ b/templates/tags.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} +{% block content %} + +{% endblock %} + diff --git a/templates/translations.html b/templates/translations.html new file mode 100755 index 0000000..0079883 --- /dev/null +++ b/templates/translations.html @@ -0,0 +1,6 @@ +{% if article.translations %} +Translations: + {% for translation in article.translations %} + {{ translation.lang }} + {% endfor %} +{% endif %} diff --git a/templates/twitter.html b/templates/twitter.html new file mode 100755 index 0000000..c6b159f --- /dev/null +++ b/templates/twitter.html @@ -0,0 +1,3 @@ +{% if TWITTER_USERNAME %} +Tweet +{% endif %} \ No newline at end of file