From 7d192c0045b4b3441407e094fafbcf8d14448df5 Mon Sep 17 00:00:00 2001 From: housne Date: Sat, 19 Oct 2013 02:28:55 +0800 Subject: pelican new theme simple-bootstrap --- simple-bootstrap/readme.md | 1 + simple-bootstrap/screenshot.png | Bin 0 -> 104438 bytes simple-bootstrap/static/static/css/style.css | 177 ++++++++++++++++++++++++ simple-bootstrap/static/style.css | 79 +++++++++++ simple-bootstrap/templates/archives.html | 16 +++ simple-bootstrap/templates/article.html | 46 ++++++ simple-bootstrap/templates/author.html | 7 + simple-bootstrap/templates/base.html | 61 ++++++++ simple-bootstrap/templates/categories.html | 10 ++ simple-bootstrap/templates/category.html | 8 ++ simple-bootstrap/templates/index.html | 16 +++ simple-bootstrap/templates/page.html | 9 ++ simple-bootstrap/templates/pagination.html | 17 +++ simple-bootstrap/templates/period_archives.html | 16 +++ simple-bootstrap/templates/tag.html | 7 + simple-bootstrap/templates/tags.html | 12 ++ simple-bootstrap/templates/translations.html | 9 ++ 17 files changed, 491 insertions(+) create mode 100644 simple-bootstrap/readme.md create mode 100644 simple-bootstrap/screenshot.png create mode 100644 simple-bootstrap/static/static/css/style.css create mode 100644 simple-bootstrap/static/style.css create mode 100755 simple-bootstrap/templates/archives.html create mode 100755 simple-bootstrap/templates/article.html create mode 100755 simple-bootstrap/templates/author.html create mode 100755 simple-bootstrap/templates/base.html create mode 100755 simple-bootstrap/templates/categories.html create mode 100755 simple-bootstrap/templates/category.html create mode 100755 simple-bootstrap/templates/index.html create mode 100755 simple-bootstrap/templates/page.html create mode 100644 simple-bootstrap/templates/pagination.html create mode 100644 simple-bootstrap/templates/period_archives.html create mode 100755 simple-bootstrap/templates/tag.html create mode 100755 simple-bootstrap/templates/tags.html create mode 100755 simple-bootstrap/templates/translations.html diff --git a/simple-bootstrap/readme.md b/simple-bootstrap/readme.md new file mode 100644 index 0000000..acc649f --- /dev/null +++ b/simple-bootstrap/readme.md @@ -0,0 +1 @@ +this is a simple bootstrap pelican theme based on bootstrap [Narrow jumbotron](http://getbootstrap.com/examples/jumbotron-narrow/) template diff --git a/simple-bootstrap/screenshot.png b/simple-bootstrap/screenshot.png new file mode 100644 index 0000000..8a70750 Binary files /dev/null and b/simple-bootstrap/screenshot.png differ diff --git a/simple-bootstrap/static/static/css/style.css b/simple-bootstrap/static/static/css/style.css new file mode 100644 index 0000000..7e03c3f --- /dev/null +++ b/simple-bootstrap/static/static/css/style.css @@ -0,0 +1,177 @@ +/* Space out content a bit */ +body { + padding-top: 20px; +} + +/* Everything but the jumbotron gets side spacing for mobile first views */ +.header, +.footer, +.content, +.comment { + padding-left: 5px; + padding-right: 5px; +} +.nav-pills{ + display:none; +} +/* Custom page header */ +.header { + border-bottom: 1px solid #e5e5e5; +} +/* Make the masthead heading the same height as the navigation */ +.header h3 { + margin-top: 0; + margin-bottom: 0; + line-height: 40px; + padding-bottom: 19px; +} + +/* Custom page footer */ +.footer { + padding-top: 19px; + color: #777; + border-top: 1px solid #e5e5e5; + margin-top:40px; +} + +/* Customize container */ +@media (min-width: 768px) { + .container { + max-width: 730px; + } +} +.container-narrow > hr { + margin: 30px 0; +} + +/* Main marketing message and sign up button */ +.jumbotron { + text-align: center; + border-bottom: 1px solid #e5e5e5; +} +.jumbotron .btn { + font-size: 21px; + padding: 14px 24px; +} + +/* Supporting marketing content */ +.marketing { + margin: 40px 0; +} +.marketing p + h4 { + margin-top: 28px; +} +.header .text-muted a{ + color:#999; + text-decoration:none; +} +.entry-content{ + padding:5px 0 15px;; + line-height:1.8; +} +.hentry{ + margin-bottom:18px; +} +.pager{ + margin-bottom:30px; +} +.pager ul{ + margin:0; + padding:0; +} +.post-info{ + padding-bottom:30px; +} +.post-info address{ + display:inline; +} +.comment{ + padding-top:15px; + padding-bottom:15px; +} +.archive-list li{ + font-size:16px; + margin-bottom:10px; +} +.bottom-nav{display:none;} +.bottom-nav a{margin-left:15px;} +/* code style */ +.hightlight { background-color: #ffffcc } +.c { color: #999988; font-style: italic } /* Comment */ +.err { color: #a61717; background-color: #e3d2d2 } /* Error */ +.k { color: #000000; font-weight: bold } /* Keyword */ +.o { color: #000000; font-weight: bold } /* Operator */ +.cm { color: #999988; font-style: italic } /* Comment.Multiline */ +.cp { color: #999999; font-weight: bold; font-style: italic } /* Comment.Preproc */ +.c1 { color: #999988; font-style: italic } /* Comment.Single */ +.cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */ +.gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ +.ge { color: #000000; font-style: italic } /* Generic.Emph */ +.gr { color: #aa0000 } /* Generic.Error */ +.gh { color: #999999 } /* Generic.Heading */ +.gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ +.go { color: #888888 } /* Generic.Output */ +.gp { color: #555555 } /* Generic.Prompt */ +.gs { font-weight: bold } /* Generic.Strong */ +.gu { color: #aaaaaa } /* Generic.Subheading */ +.gt { color: #aa0000 } /* Generic.Traceback */ +.kc { color: #000000; font-weight: bold } /* Keyword.Constant */ +.kd { color: #000000; font-weight: bold } /* Keyword.Declaration */ +.kn { color: #000000; font-weight: bold } /* Keyword.Namespace */ +.kp { color: #000000; font-weight: bold } /* Keyword.Pseudo */ +.kr { color: #000000; font-weight: bold } /* Keyword.Reserved */ +.kt { color: #445588; font-weight: bold } /* Keyword.Type */ +.m { color: #009999 } /* Literal.Number */ +.s { color: #d01040 } /* Literal.String */ +.na { color: #008080 } /* Name.Attribute */ +.nb { color: #0086B3 } /* Name.Builtin */ +.nc { color: #445588; font-weight: bold } /* Name.Class */ +.no { color: #008080 } /* Name.Constant */ +.nd { color: #3c5d5d; font-weight: bold } /* Name.Decorator */ +.ni { color: #800080 } /* Name.Entity */ +.ne { color: #990000; font-weight: bold } /* Name.Exception */ +.nf { color: #990000; font-weight: bold } /* Name.Function */ +.nl { color: #990000; font-weight: bold } /* Name.Label */ +.nn { color: #555555 } /* Name.Namespace */ +.nt { color: #000080 } /* Name.Tag */ +.nv { color: #008080 } /* Name.Variable */ +.ow { color: #000000; font-weight: bold } /* Operator.Word */ +.w { color: #bbbbbb } /* Text.Whitespace */ +.mf { color: #009999 } /* Literal.Number.Float */ +.mh { color: #009999 } /* Literal.Number.Hex */ +.mi { color: #009999 } /* Literal.Number.Integer */ +.mo { color: #009999 } /* Literal.Number.Oct */ +.sb { color: #d01040 } /* Literal.String.Backtick */ +.sc { color: #d01040 } /* Literal.String.Char */ +.sd { color: #d01040 } /* Literal.String.Doc */ +.s2 { color: #d01040 } /* Literal.String.Double */ +.se { color: #d01040 } /* Literal.String.Escape */ +.sh { color: #d01040 } /* Literal.String.Heredoc */ +.si { color: #d01040 } /* Literal.String.Interpol */ +.sx { color: #d01040 } /* Literal.String.Other */ +.sr { color: #009926 } /* Literal.String.Regex */ +.s1 { color: #d01040 } /* Literal.String.Single */ +.ss { color: #990073 } /* Literal.String.Symbol */ +.bp { color: #999999 } /* Name.Builtin.Pseudo */ +.vc { color: #008080 } /* Name.Variable.Class */ +.vg { color: #008080 } /* Name.Variable.Global */ +.vi { color: #008080 } /* Name.Variable.Instance */ +.il { color: #009999 } /* Literal.Number.Integer.Long */ +/* Responsive: Portrait tablets and up */ +@media screen and (min-width: 768px) { + /* Remove the padding we set earlier */ + .header, + .content, + .footer, + .comment { + padding-left: 0; + padding-right: 0; + } + /* Space out the masthead */ + .header { + margin-bottom: 30px; + } + .nav-pills,.bottom-nav{ + display:block; + } +} diff --git a/simple-bootstrap/static/style.css b/simple-bootstrap/static/style.css new file mode 100644 index 0000000..ae7a83f --- /dev/null +++ b/simple-bootstrap/static/style.css @@ -0,0 +1,79 @@ +/* Space out content a bit */ +body { + padding-top: 20px; + padding-bottom: 20px; +} + +/* Everything but the jumbotron gets side spacing for mobile first views */ +.header, +.marketing, +.footer { + padding-left: 15px; + padding-right: 15px; +} + +/* Custom page header */ +.header { + border-bottom: 1px solid #e5e5e5; +} +/* Make the masthead heading the same height as the navigation */ +.header h3 { + margin-top: 0; + margin-bottom: 0; + line-height: 40px; + padding-bottom: 19px; +} + +/* Custom page footer */ +.footer { + padding-top: 19px; + color: #777; + border-top: 1px solid #e5e5e5; +} + +/* Customize container */ +@media (min-width: 768px) { + .container { + max-width: 730px; + } +} +.container-narrow > hr { + margin: 30px 0; +} + +/* Main marketing message and sign up button */ +.jumbotron { + text-align: center; + border-bottom: 1px solid #e5e5e5; +} +.jumbotron .btn { + font-size: 21px; + padding: 14px 24px; +} + +/* Supporting marketing content */ +.marketing { + margin: 40px 0; +} +.marketing p + h4 { + margin-top: 28px; +} + +/* Responsive: Portrait tablets and up */ +@media screen and (min-width: 768px) { + /* Remove the padding we set earlier */ + .header, + .marketing, + .footer { + padding-left: 0; + padding-right: 0; + } + /* Space out the masthead */ + .header { + margin-bottom: 30px; + } + /* Remove the bottom border on the jumbotron for visual effect */ + .jumbotron { + border-bottom: 0; + } +} diff --git a/simple-bootstrap/templates/archives.html b/simple-bootstrap/templates/archives.html new file mode 100755 index 0000000..eb5b2d3 --- /dev/null +++ b/simple-bootstrap/templates/archives.html @@ -0,0 +1,16 @@ +{% extends "base.html" %} +{% block archclass %} class="active"{%endblock%} +{% block title %}Archives{%endblock%} +{% block content %} + +
+ {% for year, date_year in dates|groupby( 'date.year' )|sort(reverse=True) %} +

Archive for {{ year }}

+ + {% endfor %} +
+{% endblock %} diff --git a/simple-bootstrap/templates/article.html b/simple-bootstrap/templates/article.html new file mode 100755 index 0000000..9eae108 --- /dev/null +++ b/simple-bootstrap/templates/article.html @@ -0,0 +1,46 @@ +{% extends "base.html" %} +{% block title %}{{ article.title }} - {{SITENAME}}{% endblock title %} +{% block content %} +
+
+

+ {{ article.title }}

+ {% import 'translations.html' as translations with context %} + {{ translations.translations_for(article) }} +
+ + +
+ {{ article.content }} +
+ +
+ {% if DISQUS_SITENAME %} +
+
+
+ + + + + {% endif %} +{% endblock %} diff --git a/simple-bootstrap/templates/author.html b/simple-bootstrap/templates/author.html new file mode 100755 index 0000000..fde712d --- /dev/null +++ b/simple-bootstrap/templates/author.html @@ -0,0 +1,7 @@ +{% extends "index.html" %} +{% block title %} Articles by {{ author }} - {{ SITENAME }}{% endblock %} +{% block navclass %}{%endblock%} +{% block content_title %} +

Articles by {{ author }}

+{% endblock %} + diff --git a/simple-bootstrap/templates/base.html b/simple-bootstrap/templates/base.html new file mode 100755 index 0000000..b1f06a7 --- /dev/null +++ b/simple-bootstrap/templates/base.html @@ -0,0 +1,61 @@ + + + + {% block head %} + {% block title %}{{ SITENAME }}{% endblock %} + + + + + {% 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 %} + {% endblock head %} + + + +
+
+ +

{{ SITENAME }}

+
+ {% block content %} + {% endblock %} + +
+ + diff --git a/simple-bootstrap/templates/categories.html b/simple-bootstrap/templates/categories.html new file mode 100755 index 0000000..e9c8b53 --- /dev/null +++ b/simple-bootstrap/templates/categories.html @@ -0,0 +1,10 @@ +{% extends "base.html" %} +{% block title %} Articles in {{ category }} - {{ SITENAME }}{% endblock %} +{% block archclass %} class="active"{%endblock%} +{% block content %} + +{% endblock %} diff --git a/simple-bootstrap/templates/category.html b/simple-bootstrap/templates/category.html new file mode 100755 index 0000000..9028680 --- /dev/null +++ b/simple-bootstrap/templates/category.html @@ -0,0 +1,8 @@ +{% extends "index.html" %} +{% block title %} Articles in {{ category }} category - {{ SITENAME }}{% endblock %} +{% block navclass %}{%endblock%} +{% block archclass %} class="active"{%endblock%} +{% block content_title %} +

Articles in the {{ category }} category

+{% endblock %} + diff --git a/simple-bootstrap/templates/index.html b/simple-bootstrap/templates/index.html new file mode 100755 index 0000000..af88d8e --- /dev/null +++ b/simple-bootstrap/templates/index.html @@ -0,0 +1,16 @@ +{% extends "base.html" %} +{% block navclass %}active{%endblock%} +{% block content %} +
+{% block content_title %} +{% endblock %} + +{% for article in articles_page.object_list %} + +{% endfor %} +{% include 'pagination.html' %} +
+{% endblock content %} diff --git a/simple-bootstrap/templates/page.html b/simple-bootstrap/templates/page.html new file mode 100755 index 0000000..3a0dc4a --- /dev/null +++ b/simple-bootstrap/templates/page.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} +{% block title %}{{ page.title }}{%endblock%} +{% block content %} +

{{ page.title }}

+ {% import 'translations.html' as translations with context %} + {{ translations.translations_for(page) }} + + {{ page.content }} +{% endblock %} diff --git a/simple-bootstrap/templates/pagination.html b/simple-bootstrap/templates/pagination.html new file mode 100644 index 0000000..eee5f20 --- /dev/null +++ b/simple-bootstrap/templates/pagination.html @@ -0,0 +1,17 @@ +{% if DEFAULT_PAGINATION %} +
+ +
+{% endif %} diff --git a/simple-bootstrap/templates/period_archives.html b/simple-bootstrap/templates/period_archives.html new file mode 100644 index 0000000..b7d8f70 --- /dev/null +++ b/simple-bootstrap/templates/period_archives.html @@ -0,0 +1,16 @@ +{% extends "base.html" %} +{% block archclass %} class="active"{%endblock%} + +{% block content %} + +
+ {% for year, date_year in dates|groupby( 'date.year' )|sort(reverse=True) %} +

Archive for {{ year }}

+ + {% endfor %} +
+{% endblock %} diff --git a/simple-bootstrap/templates/tag.html b/simple-bootstrap/templates/tag.html new file mode 100755 index 0000000..ff040d5 --- /dev/null +++ b/simple-bootstrap/templates/tag.html @@ -0,0 +1,7 @@ +{% extends "index.html" %} +{% block title %} Articles in {{ tag }} tag - {{ SITENAME }}{% endblock %} +{% block navclass %}{%endblock%} +{% block archclass %}active{%endblock%} +{% block content_title %} +

Articles with the {{ tag }} tag

+{% endblock %} diff --git a/simple-bootstrap/templates/tags.html b/simple-bootstrap/templates/tags.html new file mode 100755 index 0000000..85377e8 --- /dev/null +++ b/simple-bootstrap/templates/tags.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} +{% block archclass %} class="active"{%endblock%} +{% block title %}Tags{%endblock%} +{% block content %} + + +{% endblock %} + diff --git a/simple-bootstrap/templates/translations.html b/simple-bootstrap/templates/translations.html new file mode 100755 index 0000000..db8c372 --- /dev/null +++ b/simple-bootstrap/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 %} + -- cgit v1.1