diff options
Diffstat (limited to 'pelican-bootstrap3/templates')
-rw-r--r-- | pelican-bootstrap3/templates/article.html | 21 | ||||
-rw-r--r-- | pelican-bootstrap3/templates/base.html | 74 | ||||
-rw-r--r-- | pelican-bootstrap3/templates/includes/aboutme.html | 16 | ||||
-rw-r--r-- | pelican-bootstrap3/templates/includes/addthis.html | 4 | ||||
-rw-r--r-- | pelican-bootstrap3/templates/includes/article_info.html | 13 | ||||
-rw-r--r-- | pelican-bootstrap3/templates/includes/banner.html | 16 | ||||
-rw-r--r-- | pelican-bootstrap3/templates/includes/coderwall-js.html | 15 | ||||
-rw-r--r-- | pelican-bootstrap3/templates/includes/coderwall.html | 7 | ||||
-rw-r--r-- | pelican-bootstrap3/templates/includes/footer.html | 2 | ||||
-rw-r--r-- | pelican-bootstrap3/templates/includes/liquid_tags_nb_header.html | 2 | ||||
-rw-r--r-- | pelican-bootstrap3/templates/includes/pagination.html | 7 | ||||
-rw-r--r-- | pelican-bootstrap3/templates/includes/series.html | 22 | ||||
-rw-r--r-- | pelican-bootstrap3/templates/includes/shariff.html | 25 | ||||
-rw-r--r-- | pelican-bootstrap3/templates/includes/sidebar.html | 161 | ||||
-rw-r--r-- | pelican-bootstrap3/templates/index.html | 3 | ||||
-rw-r--r-- | pelican-bootstrap3/templates/search.html | 29 |
16 files changed, 218 insertions, 199 deletions
diff --git a/pelican-bootstrap3/templates/article.html b/pelican-bootstrap3/templates/article.html index fcfab20..087e432 100644 --- a/pelican-bootstrap3/templates/article.html +++ b/pelican-bootstrap3/templates/article.html @@ -15,8 +15,10 @@ {% endif %} {% endblock %} {% block opengraph %} - {% if OPEN_GRAPH_FB_APP_ID %} - <meta property="fb:app_id" content="{{ OPEN_GRAPH_FB_APP_ID }}"/> + {% if USE_OPEN_GRAPH %} + {% if OPEN_GRAPH_FB_APP_ID %} + <meta property="fb:app_id" content="{{ OPEN_GRAPH_FB_APP_ID }}"/> + {% endif %} <meta property="og:site_name" content="{{ SITENAME }}" /> <meta property="og:type" content="article"/> <meta property="og:title" content="{{ article.title|striptags|escape }}"/> @@ -87,10 +89,23 @@ </div> <!-- /.entry-content --> {% include 'includes/related-posts.html' %} - {% include 'includes/series.html' %} {% include 'includes/addthis.html' %} + {% include 'includes/shariff.html' %} {% include 'includes/comments.html' %} </article> </section> {% endblock %} + +{% block scripts %} +{% if ADDTHIS_PROFILE %} + {% if ADDTHIS_DATA_TRACK_ADDRESSBAR|default(true) %} + <script type="text/javascript">var addthis_config = {"data_track_addressbar": true};</script> + {% endif %} + <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid={{ ADDTHIS_PROFILE }}"></script> +{% endif %} +{% if SHARIFF|default(false) %} + <!-- add shariff support --> + <script src="{{ SITEURL }}/theme/js/shariff.min.js"></script> +{% endif %} +{% endblock %} diff --git a/pelican-bootstrap3/templates/base.html b/pelican-bootstrap3/templates/base.html index 5cbd8cc..112c249 100644 --- a/pelican-bootstrap3/templates/base.html +++ b/pelican-bootstrap3/templates/base.html @@ -31,15 +31,6 @@ <meta name="author" content="{{ AUTHOR }}" /> {% endblock %} - <!-- Enable latex plugin --> - {% if article and article.latex %} - {{ article.latex }} - {% endif %} - {% if page and page.latex %} - {{ page.latex }} - {% endif %} - - {# Open Graph tags #} {% if USE_OPEN_GRAPH is not defined %} {% set USE_OPEN_GRAPH = True %} @@ -74,6 +65,9 @@ <link href="{{ SITEURL }}/theme/css/font-awesome.min.css" rel="stylesheet"> <link href="{{ SITEURL }}/theme/css/pygments/{{ PYGMENTS_STYLE|default('native') }}.css" rel="stylesheet"> + {% if 'tipue_search' in PLUGINS %} + <link href="{{ SITEURL}}/theme/tipuesearch/tipuesearch.css" rel="stylesheet"> + {% endif %} {% if DOCUTIL_CSS %} <link href="{{ SITEURL }}/theme/css/html4css1.css" rel="stylesheet"> {% endif %} @@ -84,6 +78,9 @@ {% if CUSTOM_CSS %} <link href="{{ SITEURL }}/{{ CUSTOM_CSS }}" rel="stylesheet"> {% endif %} + {% if SHARIFF %} + <link href="{{ SITEURL }}/theme/css/shariff/shariff.min.css" rel="stylesheet"> + {% endif %} {% if FEED_ALL_ATOM %} <link href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" @@ -94,21 +91,11 @@ title="{{ SITENAME }} RSS Feed"/> {% endif %} - {% if tag and TAG_FEED_ATOM %} - <link href="{{ SITEURL }}/{{ TAG_FEED_ATOM|format(tag.slug) }}" type="application/atom+xml" rel="alternate" - title="{{ SITENAME }} {{ tag }} ATOM Feed"/> - {% endif %} - - {% if category and CATEGORY_FEED_ATOM %} - <link href="{{ SITEURL }}/{{ CATEGORY_FEED_ATOM|format(category.slug) }}" type="application/atom+xml" rel="alternate" - title="{{ SITENAME }} {{ category }} ATOM Feed"/> - {% endif %} - </head> <body> <div class="navbar {% if BOOTSTRAP_NAVBAR_INVERSE %}navbar-inverse{% else %}navbar-default{% endif %} navbar-fixed-top" role="navigation"> - <div class="container"> + <div class="container{% if BOOTSTRAP_FLUID %}-fluid{% endif %}"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"> <span class="sr-only">Toggle navigation</span> @@ -142,16 +129,29 @@ {% endif %} </ul> <ul class="nav navbar-nav navbar-right"> - <li><a href="{{ SITEURL }}/{{ ARCHIVES_URL | default('archives.html') }}"><i class="fa fa-th-list"></i><span class="icon-label">Archives</span></a></li> + {% if 'tipue_search' in PLUGINS %} + <li><span> + <form class="navbar-search" action="/search"> + <input type="text" class="search-query" placeholder="Search" name="q" id="tipue_search_input" required> + </form></span> + </li> + {% endif %} + <li><a href="{{ SITEURL }}/{{ ARCHIVES_URL | default('archives.html') }}"><i class="fa fa-th-list"></i><span class="icon-label">Archives</span></a></li> </ul> </div> <!-- /.navbar-collapse --> </div> </div> <!-- /.navbar --> - -<div class="container"> +<!-- Banner --> +{% if BANNER and BANNER_ALL_PAGES %} + {% include 'includes/banner.html' %} +{% elif BANNER and not BANNER_ALL_PAGES %} + {% block banner %}{% endblock %} +{% endif %} +<!-- End Banner --> +<div class="container{% if BOOTSTRAP_FLUID %}-fluid{% endif %}"> <div class="row"> - {% if not HIDE_SIDEBAR or SHOW_ABOUTME %} + {% if not HIDE_SIDEBAR or ABOUT_ME %} <div class="col-sm-9"> {% else %} <div class="col-lg-12"> @@ -162,16 +162,18 @@ {% block content %} {% endblock %} </div> - {% if ABOUT_ME %} - <div class="col-sm-3" id="aboutme"> - {% include 'includes/aboutme.html' %} + {% if not HIDE_SIDEBAR or ABOUT_ME %} + <div class="col-sm-3" id="sidebar"> + <aside> + {% if ABOUT_ME %} + {% include 'includes/aboutme.html' %} + {% endif %} + {% if not HIDE_SIDEBAR %} + {% include 'includes/sidebar.html' %} + {% endif %} + </aside> </div> - {% endif %} - {% if not HIDE_SIDEBAR %} - <div class="col-sm-3 well well-sm" id="sidebar"> - {% include 'includes/sidebar.html' %} - </div> - {% endif %} + {% endif %} </div> </div> {% include 'includes/footer.html' %} @@ -184,10 +186,14 @@ <!-- Enable responsive features in IE8 with Respond.js (https://github.com/scottjehl/Respond) --> <script src="{{ SITEURL }}/theme/js/respond.min.js"></script> +{% if BANNER %} + <script src="{{ SITEURL }}/theme/js/bodypadding.js"></script> +{% endif %} {% include 'includes/github-js.html' %} -{% include 'includes/coderwall-js.html' %} {% include 'includes/disqus_script.html' %} {% include 'includes/ga.html' %} {% include 'includes/piwik.html' %} + +{% block scripts %}{% endblock %} </body> </html> diff --git a/pelican-bootstrap3/templates/includes/aboutme.html b/pelican-bootstrap3/templates/includes/aboutme.html index ba56070..f38f0bc 100644 --- a/pelican-bootstrap3/templates/includes/aboutme.html +++ b/pelican-bootstrap3/templates/includes/aboutme.html @@ -1,9 +1,11 @@ -{% if AVATAR %} +<div id="aboutme"> + {% if AVATAR %} + <p> + <img width="100%" class="img-thumbnail" src="{{ AVATAR }}"/> + </p> + {% endif %} <p> - <img width="100%" class="img-thumbnail" src="{{ AVATAR }}"/> + <strong>About {{ AUTHOR }}</strong><br/> + {{ ABOUT_ME }} </p> -{% endif %} -<p> - <strong>About {{ AUTHOR }}</strong><br/> - {{ ABOUT_ME }} -</p> +</div>
\ No newline at end of file diff --git a/pelican-bootstrap3/templates/includes/addthis.html b/pelican-bootstrap3/templates/includes/addthis.html index 12e2e8a..52bad77 100644 --- a/pelican-bootstrap3/templates/includes/addthis.html +++ b/pelican-bootstrap3/templates/includes/addthis.html @@ -12,9 +12,5 @@ <a class="addthis_button_google_plusone" g:plusone:size="medium"></a> {% endif %} </div> - {% if ADDTHIS_DATA_TRACK_ADDRESSBAR|default(true) %} - <script type="text/javascript">var addthis_config = {"data_track_addressbar": true};</script> - {% endif %} - <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid={{ ADDTHIS_PROFILE }}"></script> <!-- AddThis Button END --> {% endif %}
\ No newline at end of file diff --git a/pelican-bootstrap3/templates/includes/article_info.html b/pelican-bootstrap3/templates/includes/article_info.html index 787c360..ee107c9 100644 --- a/pelican-bootstrap3/templates/includes/article_info.html +++ b/pelican-bootstrap3/templates/includes/article_info.html @@ -3,15 +3,14 @@ <span class="published"> <i class="fa fa-calendar"></i><time datetime="{{ article.date.isoformat() }}"> {{ article.locale_date }}</time> </span> - - {% if SHOW_SERIES %} - {% if article.series %} - <span class="label label-default">Series</span> - Part {{ article.series.index}} of {{ article.series.name }} + {% if SHOW_DATE_MODIFIED %} + {% if article.modified %} + <span class="label label-default">Modified</span> + <span class="modified"> + <i class="fa fa-calendar"></i><time datetime="{{ article.modified.isoformat() }}"> {{ article.locale_modified }}</time> + </span> {% endif %} {% endif %} - - {% if SHOW_ARTICLE_AUTHOR %} {% if article.author %} <span class="label label-default">By</span> diff --git a/pelican-bootstrap3/templates/includes/banner.html b/pelican-bootstrap3/templates/includes/banner.html new file mode 100644 index 0000000..637eb38 --- /dev/null +++ b/pelican-bootstrap3/templates/includes/banner.html @@ -0,0 +1,16 @@ +<style> + #banner{ + background-image:url("{{ SITEURL}}/{{ BANNER }}"); + } +</style> + +<div id="banner"> + <div class="container{% if BOOTSTRAP_FLUID %}-fluid{% endif %}"> + <div class="copy"> + <h1>{{ SITENAME }}</h1> + {% if BANNER_SUBTITLE %} + <p class="intro">{{ BANNER_SUBTITLE }}</p> + {% endif %} + </div> + </div> +</div>
\ No newline at end of file diff --git a/pelican-bootstrap3/templates/includes/coderwall-js.html b/pelican-bootstrap3/templates/includes/coderwall-js.html deleted file mode 100644 index 1e3a9d5..0000000 --- a/pelican-bootstrap3/templates/includes/coderwall-js.html +++ /dev/null @@ -1,15 +0,0 @@ -{% if CODERWALL_USER %}
- <script type="text/javascript">
- $(document).ready(function(){
- $.getJSON("http://coderwall.com/{{ CODERWALL_USER }}.json?callback=?", function(data){
- for(var i = 0; i < data.data.badges.length ; i++){
- var badge = data.data.badges[i];
- var badge_tag = $("<img />");
- badge_tag.attr("src",badge.badge);
- badge_tag.css("width","50%");
- $("#coderwall_badges").append(badge_tag);
- }
- });
- });
- </script>
-{% endif %}
diff --git a/pelican-bootstrap3/templates/includes/coderwall.html b/pelican-bootstrap3/templates/includes/coderwall.html deleted file mode 100644 index 2917577..0000000 --- a/pelican-bootstrap3/templates/includes/coderwall.html +++ /dev/null @@ -1,7 +0,0 @@ -{% if CODERWALL_USER %}
- <li class="list-group-item">
- <h4><i class="fa fa-github-alt fa-lg"></i><span class="icon-label">Coderwall Badges</span></h4>
- <div id="coderwall_badges"></div>
- <a href="http://coderwall.com/{{ CODERWALL_USER }}">@{{ CODERWALL_USER }}</a> on coderwall
- </li>
-{% endif %}
diff --git a/pelican-bootstrap3/templates/includes/footer.html b/pelican-bootstrap3/templates/includes/footer.html index 7b430cd..76e8ed4 100644 --- a/pelican-bootstrap3/templates/includes/footer.html +++ b/pelican-bootstrap3/templates/includes/footer.html @@ -1,5 +1,5 @@ <footer> - <div class="container"> + <div class="container{% if BOOTSTRAP_FLUID %}-fluid{% endif %}"> <hr> <div class="row"> {% if articles %} diff --git a/pelican-bootstrap3/templates/includes/liquid_tags_nb_header.html b/pelican-bootstrap3/templates/includes/liquid_tags_nb_header.html index 3d70df5..c9e9c59 100644 --- a/pelican-bootstrap3/templates/includes/liquid_tags_nb_header.html +++ b/pelican-bootstrap3/templates/includes/liquid_tags_nb_header.html @@ -135,7 +135,7 @@ div.text_cell_render { img.anim_icon{padding:0; border:0; vertical-align:middle; -webkit-box-shadow:none; -box-shadow:none} </style> -<script src="https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS_HTML" type="text/javascript"></script> +<script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML" type="text/javascript"></script> <script type="text/javascript"> init_mathjax = function() { if (window.MathJax) { diff --git a/pelican-bootstrap3/templates/includes/pagination.html b/pelican-bootstrap3/templates/includes/pagination.html index 2627bb1..9ae4285 100644 --- a/pelican-bootstrap3/templates/includes/pagination.html +++ b/pelican-bootstrap3/templates/includes/pagination.html @@ -23,10 +23,9 @@ <li class="prev disabled"><a href="#">«</a></li> {% endif %} {% for num in range( 1, 1 + articles_paginator.num_pages ) %} - {% set page = articles_paginator.page(num) %} <li class="{{ 'active' if num == articles_page.number else '' }}"><a - href="{{ SITEURL }}/{{ page.url }}">{{ num }}</a></li> - {% endfor %} + href="{{ SITEURL }}/{{ page_name }}{{ num if num > 1 else '' }}.html">{{ num }}</a></li> + {% endfor %} {% if articles_page.has_next() %} <li class="next"><a href="{{ SITEURL }}/{{ articles_next_page.url }}">»</a></li> @@ -35,4 +34,4 @@ {% endif %} </ul> {% endif %} -{% endif %} +{% endif %}
\ No newline at end of file diff --git a/pelican-bootstrap3/templates/includes/series.html b/pelican-bootstrap3/templates/includes/series.html deleted file mode 100644 index 24729a2..0000000 --- a/pelican-bootstrap3/templates/includes/series.html +++ /dev/null @@ -1,22 +0,0 @@ -{% if article.series %} -<section class="well" id="related-posts"> - {% set text = SERIES_TEXT|default('Part %(index)s of the %(name)s series') %} - <h4>{{ text|format(index=article.series.index, name=article.series.name) }}</h4> - {% if article.series.all_previous %} - <h5>Previous articles</h5> - <ul> - {% for article in article.series.all_previous %} - <li><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></li> - {% endfor %} - </ul> - {% endif %} - {% if article.series.all_next %} - <h5>Next articles</h5> - <ul> - {% for article in article.series.all_next %} - <li><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></li> - {% endfor %} - </ul> - {% endif %} -</section> -{% endif %} diff --git a/pelican-bootstrap3/templates/includes/shariff.html b/pelican-bootstrap3/templates/includes/shariff.html new file mode 100644 index 0000000..d00e5f7 --- /dev/null +++ b/pelican-bootstrap3/templates/includes/shariff.html @@ -0,0 +1,25 @@ +{% if SHARIFF|default(false) %} + <hr /> + <!-- Shariff Button BEGIN --> + <div class="shariff" + {% if SHARIFF_BACKEND_URL %} + data-backend-url="{{ SHARIFF_BACKEND_URL }}" + {% endif %} + {% if SHARIFF_LANG %} + data-lang="{{ SHARIFF_LANG }}" + {% endif %} + {% if SHARIFF_ORIENTATION|default('vertical') %} + data-orientation="{{ SHARIFF_ORIENTATION }}" + {% endif %} + {% if SHARIFF_SERVICES %} + data-services = "{{ SHARIFF_SERVICES }}" + {% endif %} + {% if SHARIFF_THEME %} + data-theme="{{ SHARIFF_THEME }}" + {% endif %} + {% if SHARIFF_TWITTER_VIA|default(false) %} + data-twitter-via="{{ TWITTER_USERNAME }}" + {% endif %} + data-url="{{ SITEURL }}/{{ article.url }}"></div> + <!-- Shariff Button END --> +{% endif %}
\ No newline at end of file diff --git a/pelican-bootstrap3/templates/includes/sidebar.html b/pelican-bootstrap3/templates/includes/sidebar.html index 35811f6..db8d0a3 100644 --- a/pelican-bootstrap3/templates/includes/sidebar.html +++ b/pelican-bootstrap3/templates/includes/sidebar.html @@ -2,103 +2,76 @@ {% set DISPLAY_TAGS_ON_SIDEBAR = True %} {% endif %} -<aside> - <section> - <ul class="list-group list-group-flush"> - {% if SOCIAL %} - <li class="list-group-item"><h4><i class="fa fa-home fa-lg"></i><span class="icon-label">Social</span></h4> - <ul class="list-group" id="social"> - {% for name, link in SOCIAL %} - {% set name_sanitized = name|lower|replace('+','-plus')|replace(' ','-') %} - {% if name_sanitized in ['flickr', 'spotify', 'stack-overflow'] %} - {% set iconattributes = '"fa fa-' ~ name_sanitized ~ ' fa-lg"' %} - {% else %} - {% set iconattributes = '"fa fa-' ~ name_sanitized ~ '-square fa-lg"' %} - {% endif %} - <li class="list-group-item"><a href="{{ link }}"><i class={{ iconattributes }}></i> {{ name }}</a></li> - {% endfor %} - </ul> - </li> - {% endif %} - - {% if DISPLAY_RECENT_POSTS_ON_SIDEBAR %} - {% if RECENT_POST_COUNT is not defined %} - {% set RECENT_POST_COUNT = 5 %} - {% endif %} - <li class="list-group-item"><h4><i class="fa fa-home fa-lg"></i><span class="icon-label">Recent Posts</span></h4> - <ul class="list-group" id="recentposts"> - {% for article in articles[:RECENT_POST_COUNT] %} - <li class="list-group-item"> - <a href="{{ SITEURL }}/{{ article.url }}"> - {{ article.title }} - </a> - </li> - {% endfor %} - </ul> - </li> - {% endif %} +<section class="well well-sm"> + <ul class="list-group list-group-flush"> + {% if SOCIAL %} + <li class="list-group-item"><h4><i class="fa fa-home fa-lg"></i><span class="icon-label">Social</span></h4> + <ul class="list-group" id="social"> + {% for name, link in SOCIAL %} + {% set name_sanitized = name|lower|replace('+','-plus')|replace(' ','-') %} + {% if name_sanitized in ['flickr', 'spotify', 'stack-overflow', 'weibo'] %} + {% set iconattributes = '"fa fa-' ~ name_sanitized ~ ' fa-lg"' %} + {% else %} + {% set iconattributes = '"fa fa-' ~ name_sanitized ~ '-square fa-lg"' %} + {% endif %} + <li class="list-group-item"><a href="{{ link }}"><i class={{ iconattributes }}></i> {{ name }}</a></li> + {% endfor %} + </ul> + </li> + {% endif %} - {% if DISPLAY_CATEGORIES_ON_SIDEBAR %} - <li class="list-group-item"><a href="{{ SITEURL }}/{{ CATEGORIES_URL }}"><h4><i class="fa fa-home fa-lg"></i><span class="icon-label">Categories</span></h4></a> - <ul class="list-group" id="categories"> - {% for cat, null in categories %} - <li class="list-group-item"> - <a href="{{ SITEURL }}/{{ cat.url }}"> - <i class="fa fa-folder-open fa-lg"></i> {{ cat }} - </a> - </li> - {% endfor %} - </ul> - </li> + {% if DISPLAY_RECENT_POSTS_ON_SIDEBAR %} + {% if RECENT_POST_COUNT is not defined %} + {% set RECENT_POST_COUNT = 5 %} {% endif %} + <li class="list-group-item"><h4><i class="fa fa-home fa-lg"></i><span class="icon-label">Recent Posts</span></h4> + <ul class="list-group" id="recentposts"> + {% for article in articles[:RECENT_POST_COUNT] %} + <li class="list-group-item"> + <a href="{{ SITEURL }}/{{ article.url }}"> + {{ article.title }} + </a> + </li> + {% endfor %} + </ul> + </li> + {% endif %} - {% if DISPLAY_TAGS_ON_SIDEBAR %} - {% if DISPLAY_TAGS_INLINE %} - {% set tags = tag_cloud | sort(attribute='0') %} - {% else %} - {% set tags = tag_cloud | sort(attribute='1') %} - {% endif %} - <li class="list-group-item"><a href="{{ SITEURL }}/{{ TAGS_URL }}"><h4><i class="fa fa-tags fa-lg"></i><span class="icon-label">Tags</span></h4></a> - <ul class="list-group {% if DISPLAY_TAGS_INLINE %}list-inline tagcloud{% endif %}" id="tags"> - {% for tag in tags %} - <li class="list-group-item tag-{{ tag.1 }}"> - <a href="{{ SITEURL }}/{{ tag.0.url }}"> - {{ tag.0 }} - </a> - </li> - {% endfor %} - </ul> - </li> - {% endif %} + {% if DISPLAY_CATEGORIES_ON_SIDEBAR %} + <li class="list-group-item"><a href="{{ SITEURL }}/{{ CATEGORIES_URL }}"><h4><i class="fa fa-home fa-lg"></i><span class="icon-label">Categories</span></h4></a> + <ul class="list-group" id="categories"> + {% for cat, null in categories %} + <li class="list-group-item"> + <a href="{{ SITEURL }}/{{ cat.url }}"> + <i class="fa fa-folder-open fa-lg"></i> {{ cat }} + </a> + </li> + {% endfor %} + </ul> + </li> + {% endif %} - {% if DISPLAY_SERIES_ON_SIDEBAR %} - {% if article %} - {% if article.series %} - <li class="list-group-item"><h4><i class="fa fa-tags fa-list-ul"></i><span class="icon-label">Series</span></h4> - <ul class="list-group"> - <li class="list-group-item"> - {% if article.series.previous %} - <h5></i> Previous article</h5> - <a href="{{ SITEURL }}/{{ article.series.previous.url }}">{{ article.series.previous.title }}</a> - {% endif %} - </li> - <li class="list-group-item"> - {% if article.series.next %} - <h5>Next article</h5> - <a href="{{ SITEURL }}/{{ article.series.next.url }}">{{ article.series.next.title }}</a> - {% endif %} - </li> - </ul> - </li> - {% endif%} - {% endif %} + {% if DISPLAY_TAGS_ON_SIDEBAR %} + {% if DISPLAY_TAGS_INLINE %} + {% set tags = tag_cloud | sort(attribute='0') %} + {% else %} + {% set tags = tag_cloud | sort(attribute='1') %} {% endif %} + <li class="list-group-item"><a href="{{ SITEURL }}/{{ TAGS_URL }}"><h4><i class="fa fa-tags fa-lg"></i><span class="icon-label">Tags</span></h4></a> + <ul class="list-group {% if DISPLAY_TAGS_INLINE %}list-inline tagcloud{% endif %}" id="tags"> + {% for tag in tags %} + <li class="list-group-item tag-{{ tag.1 }}"> + <a href="{{ SITEURL }}/{{ tag.0.url }}"> + {{ tag.0 }} + </a> + </li> + {% endfor %} + </ul> + </li> + {% endif %} + {% include 'includes/github.html' %} + {% include 'includes/twitter_timeline.html' %} + {% include 'includes/links.html' %} + </ul> +</section> - {% include 'includes/github.html' %} - {% include 'includes/twitter_timeline.html' %} - {% include 'includes/links.html' %} - - </ul> - </section> - -</aside> diff --git a/pelican-bootstrap3/templates/index.html b/pelican-bootstrap3/templates/index.html index 29ba7d6..503b11a 100644 --- a/pelican-bootstrap3/templates/index.html +++ b/pelican-bootstrap3/templates/index.html @@ -2,3 +2,6 @@ {% block canonical_rel %}<link rel="canonical" href="{{ SITEURL }}">{% endblock %} +{% block banner %} + {% include 'includes/banner.html' %} +{% endblock %}
\ No newline at end of file diff --git a/pelican-bootstrap3/templates/search.html b/pelican-bootstrap3/templates/search.html new file mode 100644 index 0000000..a194256 --- /dev/null +++ b/pelican-bootstrap3/templates/search.html @@ -0,0 +1,29 @@ +{% extends 'base.html' %} + +{% block title %} +Search - {{ super() }} +{% endblock %} + +{% block scripts %} + {% if 'assets' in PLUGINS %} + {% include '_includes/minify_tipuesearch.html' with context %} + {% else %} + <link href="{{ SITEURL }}/theme/tipuesearch/tipuesearch.css" rel="stylesheet"> + <script type="text/javascript" src="{{ SITEURL }}/theme/tipuesearch/tipuesearch_set.js"></script> + <script type="text/javascript" src="{{ SITEURL }}/theme/tipuesearch/tipuesearch.min.js"></script> + {% endif %} + <script> + $(document).ready(function() { + $('#tipue_search_input').tipuesearch({ + 'mode' : 'json', + 'show': 10, + 'newWindow': false, + 'contentLocation': 'tipuesearch_content.json' + }); + }); + </script> +{% endblock %} + +{% block content %} +<div id="tipue_search_content"></div> +{% endblock %} |