diff options
Diffstat (limited to 'crumbs/templates')
-rwxr-xr-x | crumbs/templates/article.html | 35 | ||||
-rwxr-xr-x | crumbs/templates/base.html | 170 | ||||
-rwxr-xr-x | crumbs/templates/category.html | 60 |
3 files changed, 43 insertions, 222 deletions
diff --git a/crumbs/templates/article.html b/crumbs/templates/article.html index 165bd08..eb38808 100755 --- a/crumbs/templates/article.html +++ b/crumbs/templates/article.html @@ -4,41 +4,6 @@ {% block description %}{{ article.content|striptags|truncate(200)|escape }}{% endblock description %} {% block keywords %}{% for tag in article.tags|sort %}{{ tag }}{% if not loop.last %}, {% endif %}{% endfor %}{% endblock keywords %} -<!-- {% block headerstyle %} - {% if article.illustration %} - <div class="header-container" style="background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('{{ SITEURL }}/images/{{ article.illustration }}'); background-position: center; "> - {% elif NEST_HEADER_IMAGES %} - <div class="header-container" style="background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('{{ SITEURL }}/images/{{ NEST_HEADER_IMAGES }}'); background-position: center; "> - {% else %} - <div class="header-container gradient"> - {% endif %} -{% endblock headerstyle %} --> - -{% block header %} -<!-- TEMPLATE: ARTICLE --> - <!-- Header --> - <div class="container header-wrapper"> - <div class="row"> - <div class="col-lg-12"> - <div class="header-content"> - <h1 class="header-title">{{ article.title }} ARTICLE</h1> - <!--<p >{{ NEST_ARTICLE_HEADER_BY }} {% for author in article.authors %}<a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>{% if not loop.last %}, {% endif %}{% endfor %}, </p>--> - - <p>{{ article.locale_date }}{% if article.modified %}, {{ NEST_ARTICLE_HEADER_MODIFIED }} {{ article.locale_modified }}{% endif %},Category: {{ NEST_ARTICLE_HEADER_IN }} <a href="{{ SITEURL }}/{{ category.url }}">{{ article.category|capitalize }}</a></p> - - <div class="header-underline"></div> - <div class="clearfix"></div> - <p class="pull-right header-tags"> - <span class="glyphicon glyphicon-tags mr5" aria-hidden="true"></span> - {% for tag in article.tags|sort %}<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% if not loop.last %}, {% endif %}{% endfor %} - </p> - </div> - </div> - </div> - </div> - <!-- /Header --> -{% endblock header %} - {% block content %} <div class="col-lg-9 content"> {{ article.content }} diff --git a/crumbs/templates/base.html b/crumbs/templates/base.html index bccf49d..87ae083 100755 --- a/crumbs/templates/base.html +++ b/crumbs/templates/base.html @@ -15,17 +15,28 @@ <link href="{{ SITEURL }}/theme/css/cr_gay_override.css" rel="stylesheet"> </head> + <body> <div class="container"> <!-- HEADER FOR EVERY PAGE --> <div> <div class="navigation"> + + <div class="nav pull-left"> + + <!-- The page title --> + <div class="title" title="Inconsolata is my favourite monospace font, after all..."> + <span id="t-color-red"><b># ~ </b></span> + <span id="t-color-org">Fun</span> + <span id="t-color-ylw">Memory</span> + <span id="t-color-grn">Violations</span> + <span class="cursor" id="cursor"> ▁</span> + </div> + </div> + <div class="nav pull-right"> - - <!-- Loop through all pages --> {% for title, link in MENUITEMS %} - <!-- Do magic with http/https --> {% if 'http://' in link or 'https://' in link %} <a class="naughty" href="{{ link }}">{{ title }} </a> {% else %} @@ -42,159 +53,10 @@ </div> <!-- END HEADER FOR EVERY PAGE --> + {% block content %} + {% endblock %} </div> </body> </html> - - -<!-- <!DOCTYPE html> --> -<!-- TEMPLATE: BASE --> - -<!-- <html lang="{{ DEFAULT_LANG }}"> --> - <!-- <head> --> - <!-- {% block head %} --> - - <!-- <meta charset="utf-8"> - <meta http-equiv="X-UA-Compatible" content="IE=edge"> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <meta name="description" content="{% block description %}{% endblock description %}"> - <meta name="keywords" content="{% block keywords %}{% endblock keywords %}"> - <link rel="icon" href="{{ SITEURL }}/favicon.ico"> --> - - <!-- Stylesheets --> - <!-- <link href="https://fonts.googleapis.com/css?family=Inconsolata|Quicksand:300,400|Roboto:300,400&subset=cyrillic,cyrillic-ext" rel="stylesheet"> - <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> - <link href="{{ SITEURL }}/theme/css/bootstrap.min.css" rel="stylesheet"> - <link href="{{ SITEURL }}/theme/css/fonts.css" rel="stylesheet"> - <link href="{{ SITEURL }}/theme/css/nest.css" rel="stylesheet"> - <link href="{{ SITEURL }}/theme/css/pygment.css" rel="stylesheet"> --> - - <!-- <link href="{{ SITEURL }}/theme/css/home.css" rel="stylesheet"> --> - <!-- /Stylesheets --> - - <!-- {% endblock head %} - </head> - - <body> --> - - <!-- Header --> - <!-- {% block headerstyle %} - {% endblock headerstyle %} --> - - <!-- Static navbar --> - <!-- <div class="container"> - <div class="header-nav"> - <div class="header-logo"> - <a class="pull-left" href="{{ SITEURL }}/"><img class="mr20" width=192px height=64px src="{{ SITEURL }}{{NEST_HEADER_LOGO or "/images/logo3.png" }}" alt="logo"></a> - </div> - <div class="nav pull-right"> - {% for title, link in MENUITEMS %} - {% if 'http://' in link or 'https://' in link %} - <a class="naughty" href="{{ link }}">{{ title }}</a> - {% else %} - <a class="naughty" href="{{ SITEURL }}{{ link }}">{{ title }}</a> - {% endif %} - {% endfor %} - - {% if DISPLAY_PAGES_ON_MENU %} - {% for pg in PAGES %} - <a class="naughty" href="{{ SITEURL }}/{{ pg.url }}">{{ pg.title }}</a> - {% endfor %} - {% endif %} - </div> - </div> - </div> --> - <!-- /Static navbar --> - - <!-- Header --> - <!-- {% block header %} - {% endblock header %} --> - <!-- /Header --> - - <!-- </div> --> - <!-- /Header --> - - - <!-- Content --> - - <!-- <div class="container"> - <div class="row"> --> - - <!-- This is our content container in all it's glory --> - <!-- {% block content %} - {% endblock %} --> - - <!-- Append the navigation box --> -<!-- <div class="col-lg-3 content archive"> - - <h3>Categories</h3> - <ul> - {% for cat in categories %} - <li><a href="{{ SITEURL }}/{{ cat[0].url }}">{{ cat[0] }}</a> ({{cat[1]|length}})</li> - {% endfor %} - </ul> - - <h3>Tags</h3> - <ul> - {% for tag in tags %} - <li><a href="{{ SITEURL }}/{{ tag[0].url }}">{{ tag[0] }}</a> ({{tag[1]|length}})</li> - {% endfor %} - </ul> - - <h3>About the Author</h3> - <img src="{{ SITEURL }}/theme/img/cat.png"> - - </div> --> - <!-- </div> --> - <!-- /Content --> - - <!-- Footer --> - <!-- <div class="footer gradient-2"> - <div class="container footer-container"> - <div class="row"> - <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4"> - <div class="footer-title">{{ NEST_SITEMAP_COLUMN_TITLE }}</div> - <ul class="list-unstyled"> - {% for title, link in NEST_SITEMAP_MENU %} - <li><a href="{{ SITEURL }}{{ link }}">{{ title }}</a></li> - {% endfor %} - {% if FEED_ALL_ATOM %} - <li><a href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate">{{ NEST_SITEMAP_ATOM_LINK }}</a></li> - {% endif %} - {% if FEED_ALL_RSS %} - <li><a href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate">{{ NEST_SITEMAP_RSS_LINK }}</a></li> - {% endif %} - </ul> - </div> - <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4"> - {% if SOCIAL %} - <div class="footer-title">{{ NEST_SOCIAL_COLUMN_TITLE }}</div> - <ul class="list-unstyled"> - {% for name, link in SOCIAL %} - <li><a href="{{ link }}" target="_blank">{{name}}</a></li> - {% endfor %} - </ul> - {% endif %} - </div> - <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4"> - {% if LINKS %} - <div class="footer-title">{{ NEST_LINKS_COLUMN_TITLE }}</div> - <ul class="list-unstyled"> - {% for name, link in LINKS %} - <li><a href="{{ link }}" target="_blank">{{name}}</a></li> - {% endfor %} - </ul> - {% endif %} - </div> - </div> - </div> - </div> --> - <!-- /Footer --> - <!-- </body> --> - - - - <!-- <script src="{{ SITEURL }}/theme/js/random_colour.js"></script> --> -<!-- </html> --> diff --git a/crumbs/templates/category.html b/crumbs/templates/category.html index b1a1c69..3264eef 100755 --- a/crumbs/templates/category.html +++ b/crumbs/templates/category.html @@ -1,44 +1,38 @@ {% extends "base.html" %} -<!-- {% block title %}{{ NEST_CATEGORY_HEAD_TITLE }} {{ category|capitalize }} - {{ super() }} CATEGORY {% endblock title %} --> -<!-- {% block description %}{{ NEST_CATEGORY_HEAD_DESCRIPTION }} {{ category|capitalize }}{% endblock description %} --> - -<!-- {% block headerstyle %} - {% if NEST_HEADER_IMAGES %} - <div class="header-container" style="background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('{{ SITEURL }}/images/{{ NEST_HEADER_IMAGES }}'); background-position: center; "> - {% else %} - <div class="header-container gradient"> - {% endif %} -{% endblock headerstyle %} --> - -{% block header %} -<!-- TEMPLATE: CATEGORY --> -<div class="container header-wrapper"> - <div class="row"> - <div class="col-lg-12"> - <div class="header-content"> - <h1 class="header-title text-uppercase">{{ NEST_CATEGORY_HEADER_TITLE }} {{ category|capitalize }}</h1> - <!-- <div class="header-underline"></div> --> - </div> - </div> - </div> -</div> -{% endblock header %} +{% block title %}{{ NEST_CATEGORY_HEAD_TITLE }} {{ category|capitalize }} - {{ super() }} CATEGORY {% endblock title %} +{% block description %}{{ NEST_CATEGORY_HEAD_DESCRIPTION }} {{ category|capitalize }}{% endblock description %} {% block content %} -<div class="col-lg-12 content"> - <dl class="dl-horizontal"> +<h1>{{ category }}</h1> - <!-- This loops through all the articles --> +<br/> + +<dl class="dl-horizontal"> {% for article in articles %} - <dt><p>{{ article.locale_date}}</p></dt> - <dd> - <a href="{{ SITEURL }}/{{ article.url }}"><h2>{{ article.title }}</h2></a> + <div class="card"> + <h2><b>{{ article.title }}</b></h2> + <hr class="divider" /> <p>{{ article.summary }}</p> - </dd> + </div> {% endfor %} - </dl> -</div> +</dl> + + + +<!-- <div class="col-lg-12 content"> --> + <!-- <dl class="dl-horizontal"> --> + + <!-- This loops through all the articles --> + <!-- {% for article in articles %} --> + <!-- <dt><p>{{ article.locale_date}}</p></dt> --> + <!-- <dd> --> + <!-- <a href="{{ SITEURL }}/{{ article.url }}"><h2>{{ article.title }}</h2></a> --> + <!-- <p>{{ article.summary }}</p> --> + <!-- </dd> --> + <!-- {% endfor %} --> + <!-- </dl> --> +<!-- </div> --> {% endblock content %} |