diff --git a/static/css/code_blocks/darkly.css b/static/css/code_blocks/darkly.css new file mode 100644 index 0000000..603db88 --- /dev/null +++ b/static/css/code_blocks/darkly.css @@ -0,0 +1,38 @@ +/* + Darkly Pygments Theme + (c) 2014 Sourcey + http://sourcey.com +*/ + +pre { + white-space: pre; + overflow: auto; + word-wrap: normal; /* horizontal scrolling */ + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + border-radius: 3px; + padding: 20px; + background: #343642; + color: #C1C2C3; +} + +.hll { background-color: #ffc; } +.gd { color: #2e3436; background-color: #0e1416; } +.gr { color: #eeeeec; background-color: #c00; } +.gi { color: #babdb6; background-color: #1f2b2d; } +.go { color: #2c3032; background-color: #2c3032; } +.kt { color: #e3e7df; } +.ni { color: #888a85; } +.c,.cm,.c1,.cs { color: #8D9684; } +.err,.g,.l,.n,.x,.p,.ge, +.gp,.gs,.gt,.ld,.s,.nc,.nd, +.ne,.nl,.nn,.nx,.py,.ow,.w,.sb, +.sc,.sd,.s2,.se,.sh,.si,.sx,.sr, +.s1,.ss,.bp { color: #C1C2C3; } +.k,.kc,.kd,.kn,.kp,.kr, +.nt { color: #729fcf; } +.cp,.gh,.gu,.na,.nf { color: #E9A94B ; } +.m,.nb,.no,.mf,.mh,.mi,.mo, +.il { color: #8ae234; } +.o { color: #989DAA; } +.nv,.vc,.vg,.vi { color: #fff; } diff --git a/static/css/code_blocks/github.css b/static/css/code_blocks/github.css new file mode 100644 index 0000000..4919ebd --- /dev/null +++ b/static/css/code_blocks/github.css @@ -0,0 +1,84 @@ +/* to make lines scroll instead of wrap */ +/* from http://stackoverflow.com/a/23393920 */ + +.highlight pre code * { + white-space: nowrap; // this sets all children inside to nowrap +} + +.highlight pre { + overflow-x: auto; // this sets the scrolling in x +} + +.highlight pre code { + white-space: pre; // forces to respect
 formatting
+}
+
+
+/*
+ * GitHub style for Pygments syntax highlighter, for use with Jekyll
+ * Courtesy of GitHub.com
+ */
+
+.highlight pre, pre, .highlight .hll { background-color: #f8f8f8; border: 1px solid #ccc; padding: 6px 10px; border-radius: 3px; }
+.highlight .c { color: #999988; font-style: italic; }
+.highlight .err { color: #a61717; background-color: #e3d2d2; }
+.highlight .k { font-weight: bold; }
+.highlight .o { font-weight: bold; }
+.highlight .cm { color: #999988; font-style: italic; }
+.highlight .cp { color: #999999; font-weight: bold; }
+.highlight .c1 { color: #999988; font-style: italic; }
+.highlight .cs { color: #999999; font-weight: bold; font-style: italic; }
+.highlight .gd { color: #000000; background-color: #ffdddd; }
+.highlight .gd .x { color: #000000; background-color: #ffaaaa; }
+.highlight .ge { font-style: italic; }
+.highlight .gr { color: #aa0000; }
+.highlight .gh { color: #999999; }
+.highlight .gi { color: #000000; background-color: #ddffdd; }
+.highlight .gi .x { color: #000000; background-color: #aaffaa; }
+.highlight .go { color: #888888; }
+.highlight .gp { color: #555555; }
+.highlight .gs { font-weight: bold; }
+.highlight .gu { color: #800080; font-weight: bold; }
+.highlight .gt { color: #aa0000; }
+.highlight .kc { font-weight: bold; }
+.highlight .kd { font-weight: bold; }
+.highlight .kn { font-weight: bold; }
+.highlight .kp { font-weight: bold; }
+.highlight .kr { font-weight: bold; }
+.highlight .kt { color: #445588; font-weight: bold; }
+.highlight .m { color: #009999; }
+.highlight .s { color: #dd1144; }
+.highlight .n { color: #333333; }
+.highlight .na { color: teal; }
+.highlight .nb { color: #0086b3; }
+.highlight .nc { color: #445588; font-weight: bold; }
+.highlight .no { color: teal; }
+.highlight .ni { color: purple; }
+.highlight .ne { color: #990000; font-weight: bold; }
+.highlight .nf { color: #990000; font-weight: bold; }
+.highlight .nn { color: #555555; }
+.highlight .nt { color: navy; }
+.highlight .nv { color: teal; }
+.highlight .ow { font-weight: bold; }
+.highlight .w { color: #bbbbbb; }
+.highlight .mf { color: #009999; }
+.highlight .mh { color: #009999; }
+.highlight .mi { color: #009999; }
+.highlight .mo { color: #009999; }
+.highlight .sb { color: #dd1144; }
+.highlight .sc { color: #dd1144; }
+.highlight .sd { color: #dd1144; }
+.highlight .s2 { color: #dd1144; }
+.highlight .se { color: #dd1144; }
+.highlight .sh { color: #dd1144; }
+.highlight .si { color: #dd1144; }
+.highlight .sx { color: #dd1144; }
+.highlight .sr { color: #009926; }
+.highlight .s1 { color: #dd1144; }
+.highlight .ss { color: #990073; }
+.highlight .bp { color: #999999; }
+.highlight .vc { color: teal; }
+.highlight .vg { color: teal; }
+.highlight .vi { color: teal; }
+.highlight .il { color: #009999; }
+.highlight .gc { color: #999; background-color: #EAF2F5; }
diff --git a/static/css/code_blocks/monokai.css b/static/css/code_blocks/monokai.css
new file mode 100644
index 0000000..c6424dc
--- /dev/null
+++ b/static/css/code_blocks/monokai.css
@@ -0,0 +1,80 @@
+/*
+  Monokai Pygments Theme
+*/
+
+pre {
+  white-space: pre;
+  overflow: auto;
+  word-wrap: normal; /* horizontal scrolling */
+  -moz-border-radius: 3px;
+  -webkit-border-radius: 3px;
+  border-radius: 3px;
+  padding: 20px;
+  background: #343642;
+  color: #C1C2C3;
+}
+
+.hll { background-color: #49483e }
+.c { color: #75715e } /* Comment */
+.err { color: #960050; background-color: #1e0010 } /* Error */
+.k { color: #66d9ef } /* Keyword */
+.l { color: #ae81ff } /* Literal */
+.n { color: #f8f8f2 } /* Name */
+.o { color: #f92672 } /* Operator */
+.p { color: #f8f8f2 } /* Punctuation */
+.cm { color: #75715e } /* Comment.Multiline */
+.cp { color: #75715e } /* Comment.Preproc */
+.c1 { color: #75715e } /* Comment.Single */
+.cs { color: #75715e } /* Comment.Special */
+.ge { font-style: italic } /* Generic.Emph */
+.gs { font-weight: bold } /* Generic.Strong */
+.kc { color: #66d9ef } /* Keyword.Constant */
+.kd { color: #66d9ef } /* Keyword.Declaration */
+.kn { color: #f92672 } /* Keyword.Namespace */
+.kp { color: #66d9ef } /* Keyword.Pseudo */
+.kr { color: #66d9ef } /* Keyword.Reserved */
+.kt { color: #66d9ef } /* Keyword.Type */
+.ld { color: #e6db74 } /* Literal.Date */
+.m { color: #ae81ff } /* Literal.Number */
+.s { color: #e6db74 } /* Literal.String */
+.na { color: #a6e22e } /* Name.Attribute */
+.nb { color: #f8f8f2 } /* Name.Builtin */
+.nc { color: #a6e22e } /* Name.Class */
+.no { color: #66d9ef } /* Name.Constant */
+.nd { color: #a6e22e } /* Name.Decorator */
+.ni { color: #f8f8f2 } /* Name.Entity */
+.ne { color: #a6e22e } /* Name.Exception */
+.nf { color: #a6e22e } /* Name.Function */
+.nl { color: #f8f8f2 } /* Name.Label */
+.nn { color: #f8f8f2 } /* Name.Namespace */
+.nx { color: #a6e22e } /* Name.Other */
+.py { color: #f8f8f2 } /* Name.Property */
+.nt { color: #f92672 } /* Name.Tag */
+.nv { color: #f8f8f2 } /* Name.Variable */
+.ow { color: #f92672 } /* Operator.Word */
+.w { color: #f8f8f2 } /* Text.Whitespace */
+.mf { color: #ae81ff } /* Literal.Number.Float */
+.mh { color: #ae81ff } /* Literal.Number.Hex */
+.mi { color: #ae81ff } /* Literal.Number.Integer */
+.mo { color: #ae81ff } /* Literal.Number.Oct */
+.sb { color: #e6db74 } /* Literal.String.Backtick */
+.sc { color: #e6db74 } /* Literal.String.Char */
+.sd { color: #e6db74 } /* Literal.String.Doc */
+.s2 { color: #e6db74 } /* Literal.String.Double */
+.se { color: #ae81ff } /* Literal.String.Escape */
+.sh { color: #e6db74 } /* Literal.String.Heredoc */
+.si { color: #e6db74 } /* Literal.String.Interpol */
+.sx { color: #e6db74 } /* Literal.String.Other */
+.sr { color: #e6db74 } /* Literal.String.Regex */
+.s1 { color: #e6db74 } /* Literal.String.Single */
+.ss { color: #e6db74 } /* Literal.String.Symbol */
+.bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
+.vc { color: #f8f8f2 } /* Name.Variable.Class */
+.vg { color: #f8f8f2 } /* Name.Variable.Global */
+.vi { color: #f8f8f2 } /* Name.Variable.Instance */
+.il { color: #ae81ff } /* Literal.Number.Integer.Long */
+
+.gh { } /* Generic Heading & Diff Header */
+.gu { color: #75715e; } /* Generic.Subheading & Diff Unified/Comment? */
+.gd { color: #f92672; } /* Generic.Deleted & Diff Deleted */
+.gi { color: #a6e22e; } /* Generic.Inserted & Diff Inserted */
diff --git a/static/css/code_blocks/tomorrow.css b/static/css/code_blocks/tomorrow.css
new file mode 100644
index 0000000..7b4e17f
--- /dev/null
+++ b/static/css/code_blocks/tomorrow.css
@@ -0,0 +1,70 @@
+/*
+  Tomorrow Pygments Theme
+*/
+
+pre { background: #ffffff; color: #4d4d4c }
+
+.hll { background-color: #d6d6d6 }
+.c { color: #8e908c } /* Comment */
+.err { color: #c82829 } /* Error */
+.k { color: #8959a8 } /* Keyword */
+.l { color: #f5871f } /* Literal */
+.n { color: #4d4d4c } /* Name */
+.o { color: #3e999f } /* Operator */
+.p { color: #4d4d4c } /* Punctuation */
+.cm { color: #8e908c } /* Comment.Multiline */
+.cp { color: #8e908c } /* Comment.Preproc */
+.c1 { color: #8e908c } /* Comment.Single */
+.cs { color: #8e908c } /* Comment.Special */
+.gd { color: #c82829 } /* Generic.Deleted */
+.ge { font-style: italic } /* Generic.Emph */
+.gh { color: #4d4d4c; font-weight: bold } /* Generic.Heading */
+.gi { color: #718c00 } /* Generic.Inserted */
+.gp { color: #8e908c; font-weight: bold } /* Generic.Prompt */
+.gs { font-weight: bold } /* Generic.Strong */
+.gu { color: #3e999f; font-weight: bold } /* Generic.Subheading */
+.kc { color: #8959a8 } /* Keyword.Constant */
+.kd { color: #8959a8 } /* Keyword.Declaration */
+.kn { color: #3e999f } /* Keyword.Namespace */
+.kp { color: #8959a8 } /* Keyword.Pseudo */
+.kr { color: #8959a8 } /* Keyword.Reserved */
+.kt { color: #eab700 } /* Keyword.Type */
+.ld { color: #718c00 } /* Literal.Date */
+.m { color: #f5871f } /* Literal.Number */
+.s { color: #718c00 } /* Literal.String */
+.na { color: #4271ae } /* Name.Attribute */
+.nb { color: #4d4d4c } /* Name.Builtin */
+.nc { color: #eab700 } /* Name.Class */
+.no { color: #c82829 } /* Name.Constant */
+.nd { color: #3e999f } /* Name.Decorator */
+.ni { color: #4d4d4c } /* Name.Entity */
+.ne { color: #c82829 } /* Name.Exception */
+.nf { color: #4271ae } /* Name.Function */
+.nl { color: #4d4d4c } /* Name.Label */
+.nn { color: #eab700 } /* Name.Namespace */
+.nx { color: #4271ae } /* Name.Other */
+.py { color: #4d4d4c } /* Name.Property */
+.nt { color: #3e999f } /* Name.Tag */
+.nv { color: #c82829 } /* Name.Variable */
+.ow { color: #3e999f } /* Operator.Word */
+.w { color: #4d4d4c } /* Text.Whitespace */
+.mf { color: #f5871f } /* Literal.Number.Float */
+.mh { color: #f5871f } /* Literal.Number.Hex */
+.mi { color: #f5871f } /* Literal.Number.Integer */
+.mo { color: #f5871f } /* Literal.Number.Oct */
+.sb { color: #718c00 } /* Literal.String.Backtick */
+.sc { color: #4d4d4c } /* Literal.String.Char */
+.sd { color: #8e908c } /* Literal.String.Doc */
+.s2 { color: #718c00 } /* Literal.String.Double */
+.se { color: #f5871f } /* Literal.String.Escape */
+.sh { color: #718c00 } /* Literal.String.Heredoc */
+.si { color: #f5871f } /* Literal.String.Interpol */
+.sx { color: #718c00 } /* Literal.String.Other */
+.sr { color: #718c00 } /* Literal.String.Regex */
+.s1 { color: #718c00 } /* Literal.String.Single */
+.ss { color: #718c00 } /* Literal.String.Symbol */
+.bp { color: #4d4d4c } /* Name.Builtin.Pseudo */
+.vc { color: #c82829 } /* Name.Variable.Class */
+.vg { color: #c82829 } /* Name.Variable.Global */
+.vi { color: #c82829 } /* Name.Variable.Instance */
+.il { color: #f5871f } /* Literal.Number.Integer.Long */
diff --git a/static/css/code_blocks/tomorrow_night.css b/static/css/code_blocks/tomorrow_night.css
new file mode 100644
index 0000000..ed1ff41
--- /dev/null
+++ b/static/css/code_blocks/tomorrow_night.css
@@ -0,0 +1,70 @@
+/*
+  Tomorrow Night Pygments Theme
+*/
+
+pre  { background: #1d1f21; color: #c5c8c6 }
+
+.hll { background-color: #373b41 }
+.c { color: #969896 } /* Comment */
+.err { color: #cc6666 } /* Error */
+.k { color: #b294bb } /* Keyword */
+.l { color: #de935f } /* Literal */
+.n { color: #c5c8c6 } /* Name */
+.o { color: #8abeb7 } /* Operator */
+.p { color: #c5c8c6 } /* Punctuation */
+.cm { color: #969896 } /* Comment.Multiline */
+.cp { color: #969896 } /* Comment.Preproc */
+.c1 { color: #969896 } /* Comment.Single */
+.cs { color: #969896 } /* Comment.Special */
+.gd { color: #cc6666 } /* Generic.Deleted */
+.ge { font-style: italic } /* Generic.Emph */
+.gh { color: #c5c8c6; font-weight: bold } /* Generic.Heading */
+.gi { color: #b5bd68 } /* Generic.Inserted */
+.gp { color: #969896; font-weight: bold } /* Generic.Prompt */
+.gs { font-weight: bold } /* Generic.Strong */
+.gu { color: #8abeb7; font-weight: bold } /* Generic.Subheading */
+.kc { color: #b294bb } /* Keyword.Constant */
+.kd { color: #b294bb } /* Keyword.Declaration */
+.kn { color: #8abeb7 } /* Keyword.Namespace */
+.kp { color: #b294bb } /* Keyword.Pseudo */
+.kr { color: #b294bb } /* Keyword.Reserved */
+.kt { color: #f0c674 } /* Keyword.Type */
+.ld { color: #b5bd68 } /* Literal.Date */
+.m { color: #de935f } /* Literal.Number */
+.s { color: #b5bd68 } /* Literal.String */
+.na { color: #81a2be } /* Name.Attribute */
+.nb { color: #c5c8c6 } /* Name.Builtin */
+.nc { color: #f0c674 } /* Name.Class */
+.no { color: #cc6666 } /* Name.Constant */
+.nd { color: #8abeb7 } /* Name.Decorator */
+.ni { color: #c5c8c6 } /* Name.Entity */
+.ne { color: #cc6666 } /* Name.Exception */
+.nf { color: #81a2be } /* Name.Function */
+.nl { color: #c5c8c6 } /* Name.Label */
+.nn { color: #f0c674 } /* Name.Namespace */
+.nx { color: #81a2be } /* Name.Other */
+.py { color: #c5c8c6 } /* Name.Property */
+.nt { color: #8abeb7 } /* Name.Tag */
+.nv { color: #cc6666 } /* Name.Variable */
+.ow { color: #8abeb7 } /* Operator.Word */
+.w { color: #c5c8c6 } /* Text.Whitespace */
+.mf { color: #de935f } /* Literal.Number.Float */
+.mh { color: #de935f } /* Literal.Number.Hex */
+.mi { color: #de935f } /* Literal.Number.Integer */
+.mo { color: #de935f } /* Literal.Number.Oct */
+.sb { color: #b5bd68 } /* Literal.String.Backtick */
+.sc { color: #c5c8c6 } /* Literal.String.Char */
+.sd { color: #969896 } /* Literal.String.Doc */
+.s2 { color: #b5bd68 } /* Literal.String.Double */
+.se { color: #de935f } /* Literal.String.Escape */
+.sh { color: #b5bd68 } /* Literal.String.Heredoc */
+.si { color: #de935f } /* Literal.String.Interpol */
+.sx { color: #b5bd68 } /* Literal.String.Other */
+.sr { color: #b5bd68 } /* Literal.String.Regex */
+.s1 { color: #b5bd68 } /* Literal.String.Single */
+.ss { color: #b5bd68 } /* Literal.String.Symbol */
+.bp { color: #c5c8c6 } /* Name.Builtin.Pseudo */
+.vc { color: #cc6666 } /* Name.Variable.Class */
+.vg { color: #cc6666 } /* Name.Variable.Global */
+.vi { color: #cc6666 } /* Name.Variable.Instance */
+.il { color: #de935f } /* Literal.Number.Integer.Long */
diff --git a/static/images/about-bg.jpg b/static/images/about-bg.jpg
new file mode 100755
index 0000000..af6d4d5
Binary files /dev/null and b/static/images/about-bg.jpg differ
diff --git a/static/images/contact-bg.jpg b/static/images/contact-bg.jpg
new file mode 100755
index 0000000..9bf21a4
Binary files /dev/null and b/static/images/contact-bg.jpg differ
diff --git a/static/images/home-bg.jpg b/static/images/home-bg.jpg
new file mode 100755
index 0000000..a4d2108
Binary files /dev/null and b/static/images/home-bg.jpg differ
diff --git a/static/images/post-bg.jpg b/static/images/post-bg.jpg
new file mode 100755
index 0000000..21750a4
Binary files /dev/null and b/static/images/post-bg.jpg differ
diff --git a/templates/article.html b/templates/article.html
index e69de29..ebcfd89 100644
--- a/templates/article.html
+++ b/templates/article.html
@@ -0,0 +1,183 @@
+{% extends "base.html" %}
+{% block title %}{{ article.title }}{% endblock %}
+
+{% block head %}
+    {{ super() }}
+
+    {% for keyword in article.keywords %}
+        
+    {% endfor %}
+
+    {% if description %}
+        
+    {% elif article.headline %}
+        
+    {% elif article.summary %}
+        
+    {% endif %}
+
+    {% for author in article.authors %}
+        
+    {% endfor %}
+
+    {% for tag in article.tags %}
+        
+    {% endfor %}
+{% endblock %}
+
+{% block twitter_card %}
+    {% for name,link in SOCIAL if name in ['twitter'] %}
+        
+        
+        
+
+        {% if article.twitter_image %}
+            {% if article.twitter_image|lower|truncate(4, True, '') == "http" %}
+                
+            {% else %}
+                
+            {% endif %}
+        {% elif article.header_cover %}
+            
+        {% elif HEADER_COVER %}
+            
+        {% else %}
+            
+        {% endif %}
+
+        {% if description %}
+            
+        {% elif article.headline %}
+            
+        {% else %}
+            
+        {% endif %}
+    {% endfor %}
+{% endblock %}
+{% block opengraph %}
+  {{ super() }}
+  
+        {% for author in article.authors %}
+            
+        {% endfor %}
+  
+  
+  
+        {% if description %}
+            
+        {% elif article.headline %}
+            
+        {% elif article.summary %}
+            
+        {% endif %}
+
+        {% if article.og_image %}
+            {% if article.og_image|lower|truncate(4, True, '') == "http" %}
+                
+            {% else %}
+                
+            {% endif %}
+        {% elif article.header_cover %}
+            
+        {% elif HEADER_COVER %}
+            
+        {% else %}
+            
+        {% endif %}
+{% endblock %}
+
+{% block header %}
+    
+    
+    
+
+ +

{{ article.title }}

+ + {% if article.headline %} + {{ article.headline }} + {% endif %} + + + {% if article.modified %} + + {% endif %} + {% if article.header_cover %} +
+ {% elif HEADER_COVER %} +
+ {% elif HEADER_COLOR %} +
+ {% else %} +
+ {% endif %} +
+
+{% endblock header %} + +{% block content %} + + +
+ +
+{% endblock content %} diff --git a/templates/author.html b/templates/author.html index e69de29..9d3d052 100644 --- a/templates/author.html +++ b/templates/author.html @@ -0,0 +1,43 @@ +{% extends "index.html" %} + +{% block title %}{{ SITENAME }} - Articles by {{ author }}{% endblock %} + +{% block opengraph %} + {{ super() }} + + + + + +{% endblock opengraph %} + +{% block header %} + + +
+
+ +

Articles by {{ author|capitalize }}

+ {% if HEADER_COVER %} +
+ {% elif HEADER_COLOR %} +
+ {% else %} +
+ {% endif %} +
+
+{% endblock header %} diff --git a/templates/authors.html b/templates/authors.html new file mode 100644 index 0000000..562387d --- /dev/null +++ b/templates/authors.html @@ -0,0 +1,51 @@ +{% extends "index.html" %} + +{% block title %}{{ SITENAME }} - Authors{% endblock title %} + +{% block header %} + + +
+
+ +

Articles by {{ author|capitalize }}

+ {% if HEADER_COVER %} +
+ {% elif HEADER_COLOR %} +
+ {% else %} +
+ {% endif %} +
+
+{% endblock header %} + +{% block content %} + {% for author, articles in authors|sort %} + + {% if not loop.last %} +
+ {% endif %} + {% endfor %} +{% endblock content %} diff --git a/templates/base.html b/templates/base.html index b3e358e..afe8f9b 100644 --- a/templates/base.html +++ b/templates/base.html @@ -55,6 +55,13 @@ + + {% if COLOR_SCHEME_CSS %} + + {% else %} + + {% endif %} + {% if CSS_OVERRIDE %} {% for css in CSS_OVERRIDE %} @@ -63,10 +70,77 @@ {% endif %} - - - - + + + + + + {% endblock head %} + + {% block opengraph %} + {% for admin in FACEBOOK_ADMINS %} + + {% endfor %} + {% for LOC in LOCALE %} + + {% endfor %} + + + + + + {% if HEADER_COVER %} + + {% else %} + + {% endif %} + {% for name,link in SOCIAL if name in ['facebook'] %} + + {% endfor %} + {% endblock opengraph %} + {% block twitter_card %} + {% for name,link in SOCIAL if name in ['twitter'] %} + + + + + {% if HEADER_COVER %} + + {% else %} + + {% endif %} + {% endfor %} + {% endblock twitter_card %} + + + + + {% include 'partials/navigation.html' %} + + {% block header %}{% endblock header %} + +
+ + {% block content %}{% endblock content %} + + + + +
+ + + {% include 'partials/analytics.js' %} + {% include 'partials/disqus.js' %} diff --git a/templates/index.html b/templates/index.html index e69de29..70a51d4 100644 --- a/templates/index.html +++ b/templates/index.html @@ -0,0 +1,41 @@ +{% extends "base.html" %} + +{% block header %} + + +
+
+ +

{{ SITENAME }}

+ {% if SITESUBTITLE %} + {{ SITESUBTITLE }} + {% endif %} + {% if HEADER_COVER %} +
+ {% elif HEADER_COLOR %} +
+ {% else %} +
+ {% endif %} +
+
+ +{% endblock header %} + +{% block content %} + +
+
+ {% include "partials/loop.html" %} +
+
+{% endblock content %} diff --git a/templates/partials/analytics.js b/templates/partials/analytics.js new file mode 100644 index 0000000..e27adf8 --- /dev/null +++ b/templates/partials/analytics.js @@ -0,0 +1,46 @@ +{% if GOOGLE_ANALYTICS %} + +{% endif %} +{% if GAUGES %} + +{% endif %} +{% if PIWIK_URL and PIWIK_SITE_ID %} + +{% endif %} diff --git a/templates/partials/comments_count.html b/templates/partials/comments_count.html new file mode 100644 index 0000000..344c4d3 --- /dev/null +++ b/templates/partials/comments_count.html @@ -0,0 +1,9 @@ +{% if DISQUS_SITENAME %} +

+ {% if article.disqus_identifier %} + comments + {% else %} + comments + {% endif %} +

+{% endif %} diff --git a/templates/partials/disqus.js b/templates/partials/disqus.js new file mode 100644 index 0000000..4ee419b --- /dev/null +++ b/templates/partials/disqus.js @@ -0,0 +1,11 @@ +{% if DISQUS_SITENAME %} + +{% endif %} diff --git a/templates/partials/loop.html b/templates/partials/loop.html new file mode 100644 index 0000000..9f1ea71 --- /dev/null +++ b/templates/partials/loop.html @@ -0,0 +1,39 @@ +
+ {% include "partials/pagination.html" %} +
+ + {% for article in articles_page.object_list %} +
+
+
+

{{ article.title }} +

+ +
+
+ {% if SHOW_FULL_ARTICLE %} +
+ {{ article.content }} +
+ {% else %} +
+

+ {% if article.has_summary %} + {{ article.summary }} + {% elif article.summary %} + {{ article.summary|striptags|truncate(250) }} + {% endif %} +

+
+ {% endif %} + {% include 'partials/comments_count.html' %} +
+
+ {% endfor %} + + {% include "partials/pagination.html" %} diff --git a/templates/partials/navigation.html b/templates/partials/navigation.html index e69de29..713f962 100644 --- a/templates/partials/navigation.html +++ b/templates/partials/navigation.html @@ -0,0 +1,27 @@ + diff --git a/templates/partials/pagination.html b/templates/partials/pagination.html index e69de29..c05a3bd 100644 --- a/templates/partials/pagination.html +++ b/templates/partials/pagination.html @@ -0,0 +1,14 @@ +{% if DEFAULT_PAGINATION %} + +{% endif %} diff --git a/templates/tag.html b/templates/tag.html index e69de29..2460bd1 100644 --- a/templates/tag.html +++ b/templates/tag.html @@ -0,0 +1,34 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - Tag {{ tag }}{% endblock %} + +{% block header %} + + +
+
+ +

Tag {{ tag }}

+ Posts: {{ articles|count }} + {% if HEADER_COVER %} +
+ {% elif HEADER_COLOR %} +
+ {% else %} +
+ {% endif %} +
+
+{% endblock header %} diff --git a/templates/tags.html b/templates/tags.html index e69de29..269f7f7 100644 --- a/templates/tags.html +++ b/templates/tags.html @@ -0,0 +1,44 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} - Tags{% endblock %} + +{% block header %} + + +
+
+ +

{{ SITENAME }} - Tags

+ {% if HEADER_COVER %} +
+ {% elif HEADER_COLOR %} +
+ {% else %} +
+ {% endif %} +
+
+{% endblock header %} + +{% block content %} + {%- for tag, articles in tags|sort %} + + {% endfor %} +{% endblock content %}