Added pelican-bootstrap3 theme
This commit is contained in:
13
pelican-bootstrap3/templates/archives.html
Normal file
13
pelican-bootstrap3/templates/archives.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<section id="content">
|
||||
<h1>Archives for {{ SITENAME }}</h1>
|
||||
|
||||
<dl>
|
||||
{% for article in dates %}
|
||||
<dt>{{ article.locale_date }}</dt>
|
||||
<dd><a href='{{ article.url }}'>{{ article.title }}</a></dd>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
</section>
|
||||
{% endblock %}
|
||||
29
pelican-bootstrap3/templates/article.html
Normal file
29
pelican-bootstrap3/templates/article.html
Normal file
@@ -0,0 +1,29 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}{{ article.title }}{% endblock %}
|
||||
{% block content %}
|
||||
<section id="content">
|
||||
<article>
|
||||
<header>
|
||||
<h1>
|
||||
<a href="{{ SITEURL }}/{{ article.url }}"
|
||||
rel="bookmark"
|
||||
title="Permalink to {{ article.title }}">
|
||||
{{ article.title }}
|
||||
</a>
|
||||
</h1>
|
||||
</header>
|
||||
<div class="entry-content">
|
||||
<div class="panel">
|
||||
<div class="panel-body">
|
||||
{% include "includes/article_info.html" %}
|
||||
</div>
|
||||
</div>
|
||||
{{ article.content }}
|
||||
</div>
|
||||
<!-- /.entry-content -->
|
||||
{% include 'includes/addthis.html' %}
|
||||
{% include 'includes/comments.html' %}
|
||||
</article>
|
||||
</section>
|
||||
|
||||
{% endblock %}
|
||||
9
pelican-bootstrap3/templates/author.html
Normal file
9
pelican-bootstrap3/templates/author.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
9
pelican-bootstrap3/templates/authors.html
Normal file
9
pelican-bootstrap3/templates/authors.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
123
pelican-bootstrap3/templates/base.html
Normal file
123
pelican-bootstrap3/templates/base.html
Normal file
@@ -0,0 +1,123 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:og="http://ogp.me/ns#"
|
||||
xmlns:fb="https://www.facebook.com/2008/fbml">
|
||||
<head>
|
||||
<title>{% block title %}{{ SITENAME }}{% endblock %}</title>
|
||||
<!-- Using the latest rendering mode for IE -->
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<!-- Open Graph tags -->
|
||||
{% if USE_OPEN_GRAPH is not defined %}
|
||||
{% set USE_OPEN_GRAPH = True %}
|
||||
{% endif %}
|
||||
|
||||
{% if USE_OPEN_GRAPH %}
|
||||
{% if OPEN_GRAPH_FB_APP_ID %}
|
||||
<meta property="fb:app_id" content="{{ OPEN_GRAPH_FB_APP_ID }}"/>
|
||||
{% endif %}
|
||||
{% if article %}
|
||||
<meta property="og:type" content="article"/>
|
||||
<meta property="og:title" content="{{ article.title }}"/>
|
||||
<meta property="og:url" content="{{ SITEURL }}/{{ article.url }}"/>
|
||||
<meta property="og:description" content="{{ article.summary|striptags }}"/>
|
||||
{% elif page %}
|
||||
<meta property="og:type" content="article"/>
|
||||
<meta property="og:title" content="{{ page.title }}"/>
|
||||
<meta property="og:url" content="{{ SITEURL }}/{{ page.url }}"/>
|
||||
{% else %}
|
||||
<meta property="og:type" content="website"/>
|
||||
<meta property="og:title" content="{{ SITENAME }}"/>
|
||||
<meta property="og:url" content="{{ SITEURL }}"/>
|
||||
<meta property="og:description" content="{{ SITENAME }}"/>
|
||||
{% if OPEN_GRAPH_IMAGE %}
|
||||
<meta property="og:image"
|
||||
content="{{ SITEURL }}/static/{{ OPEN_GRAPH_IMAGE }}"/>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
<!-- Bootstrap -->
|
||||
{% if BOOTSWATCH_THEME %}
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/bootstrap.{{ BOOTSWATCH_THEME }}.min.css" type="text/css"/>
|
||||
{% else %}
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/bootstrap.min.css" type="text/css"/>
|
||||
{% endif %}
|
||||
<link href="{{ SITEURL }}/theme/css/font-awesome.min.css" rel="stylesheet">
|
||||
<link href="{{ SITEURL }}/theme/css/bootstrap-glyphicons.css" rel="stylesheet">
|
||||
<link href="{{ SITEURL }}/theme/css/pygments.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/style.css" type="text/css"/>
|
||||
<!-- JavaScript plugins (requires jQuery) -->
|
||||
<script src="http://code.jquery.com/jquery.js"></script>
|
||||
|
||||
{% if FEED_ALL_ATOM %}
|
||||
<link href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate"
|
||||
title="{{ SITENAME }} ATOM Feed"/>
|
||||
{% endif %}
|
||||
{% if FEED_ALL_RSS %}
|
||||
<link href="{{ SITEURL }}/{{ FEED_ALL_RSS }}" type="application/atom+xml" rel="alternate"
|
||||
title="{{ SITENAME }} RSS Feed"/>
|
||||
{% endif %}
|
||||
|
||||
{% include 'includes/ga.html' %}
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar navbar-fixed-top" role="navigation">
|
||||
<div class="container">
|
||||
<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>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a href="{{ SITEURL }}" class="navbar-brand">{{ SITENAME }}</a>
|
||||
</div>
|
||||
<div class="collapse navbar-collapse navbar-ex1-collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
{% for title, link in MENUITEMS %}
|
||||
<li><a href="{{ link }}">{{ title }}</a></li>
|
||||
{% endfor %}
|
||||
{% if DISPLAY_PAGES_ON_MENU %}
|
||||
{% for page in PAGES %}
|
||||
<li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if DISPLAY_CATEGORIES_ON_MENU %}
|
||||
{% for cat, null in categories %}
|
||||
<li {% if cat == category %}class="active"{% endif %}>
|
||||
<a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</ul>
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li><a href="{{ SITEURL }}/archives.html"><i class="icon-th-list"></i>Archives</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- /.navbar-collapse -->
|
||||
</div>
|
||||
</nav>
|
||||
<!-- /.navbar -->
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-9">
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
<div class="col-lg-3 well well-sm" id="sidebar">
|
||||
{% include 'includes/sidebar.html' %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Include all compiled plugins (below), or include individual files as needed -->
|
||||
<script src="{{ SITEURL }}/theme/js/bootstrap.min.js"></script>
|
||||
|
||||
<!-- Enable responsive features in IE8 with Respond.js (https://github.com/scottjehl/Respond) -->
|
||||
<script src="{{ SITEURL }}/theme/js/respond.min.js"></script>
|
||||
{% include 'includes/disqus_script.html' %}
|
||||
</body>
|
||||
</html>
|
||||
13
pelican-bootstrap3/templates/categories.html
Normal file
13
pelican-bootstrap3/templates/categories.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}{{ SITENAME }} - Categories{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<section id="categories">
|
||||
<h1>Categories for {{ SITENAME }}</h1>
|
||||
<ul>
|
||||
{% for category, articles in categories %}
|
||||
<li><a href="{{ category.url }}">{{ category }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</section>
|
||||
{% endblock %}
|
||||
2
pelican-bootstrap3/templates/category.html
Normal file
2
pelican-bootstrap3/templates/category.html
Normal file
@@ -0,0 +1,2 @@
|
||||
{% extends "index.html" %}
|
||||
{% block title %}{{ SITENAME }} - {{ category }}{% endblock %}
|
||||
12
pelican-bootstrap3/templates/includes/addthis.html
Normal file
12
pelican-bootstrap3/templates/includes/addthis.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{% if ADDTHIS_PROFILE %}
|
||||
<hr />
|
||||
<!-- AddThis Button BEGIN -->
|
||||
<div class="addthis_toolbox addthis_default_style">
|
||||
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
|
||||
<a class="addthis_button_tweet"></a>
|
||||
<a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
|
||||
</div>
|
||||
<script type="text/javascript">var addthis_config = {"data_track_addressbar": true};</script>
|
||||
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid={{ ADDTHIS_PROFILE }}"></script>
|
||||
<!-- AddThis Button END -->
|
||||
{% endif %}
|
||||
24
pelican-bootstrap3/templates/includes/article_info.html
Normal file
24
pelican-bootstrap3/templates/includes/article_info.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<footer class="post-info">
|
||||
<span class="label label-default">Date</span>
|
||||
<span class="published">
|
||||
<i class="icon-calendar"></i>{{ article.locale_date }}
|
||||
</span>
|
||||
{# Uncomment if you want the author shown #}
|
||||
{#{% if article.author %}#}
|
||||
{#<span class="label">By</span>#}
|
||||
{#<a href="{{ SITEURL }}/{{ article.author.url }}"><i class="icon-user"></i>{{ article.author }}</a>#}
|
||||
{#{% endif %}#}
|
||||
|
||||
{# Uncomment if you want to show Categories#}
|
||||
{#<span class="label label-default">Category</span>#}
|
||||
{#<a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>#}
|
||||
|
||||
{% if PDF_PROCESSOR %}
|
||||
<span class="label label-default">
|
||||
<a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">PDF</a>
|
||||
</span>
|
||||
{% endif %}
|
||||
|
||||
{% include 'includes/taglist.html' %}
|
||||
{% include 'includes/translations.html' %}
|
||||
</footer><!-- /.post-info -->
|
||||
1
pelican-bootstrap3/templates/includes/comment_count.html
Normal file
1
pelican-bootstrap3/templates/includes/comment_count.html
Normal file
@@ -0,0 +1 @@
|
||||
{% if DISQUS_SITENAME %}<p><small>There are <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread" data-disqus-identifier="{{ article.slug }}">comments</a>.</small></p>{% endif %}
|
||||
26
pelican-bootstrap3/templates/includes/comments.html
Normal file
26
pelican-bootstrap3/templates/includes/comments.html
Normal file
@@ -0,0 +1,26 @@
|
||||
{% if DISQUS_SITENAME %}
|
||||
<hr />
|
||||
<section class="comments" id="comments">
|
||||
<h2>Comments</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
|
||||
var disqus_shortname = '{{ DISQUS_SITENAME }}'; // required: replace example with your forum shortname
|
||||
var disqus_identifier = '{{ article.slug }}';
|
||||
var disqus_url = '{{ SITEURL }}/{{ article.url }}';
|
||||
|
||||
/* * * DON'T EDIT BELOW THIS LINE * * */
|
||||
(function () {
|
||||
var dsq = document.createElement('script');
|
||||
dsq.type = 'text/javascript';
|
||||
dsq.async = true;
|
||||
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by
|
||||
Disqus.</a></noscript>
|
||||
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
|
||||
|
||||
</section>
|
||||
{% endif %}
|
||||
15
pelican-bootstrap3/templates/includes/disqus_script.html
Normal file
15
pelican-bootstrap3/templates/includes/disqus_script.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{% if DISQUS_SITENAME %}
|
||||
<script type="text/javascript">
|
||||
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
|
||||
var disqus_shortname = '{{ DISQUS_SITENAME }}'; // required: replace example with your forum shortname
|
||||
|
||||
/* * * DON'T EDIT BELOW THIS LINE * * */
|
||||
(function () {
|
||||
var s = document.createElement('script');
|
||||
s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
{% endif %}
|
||||
18
pelican-bootstrap3/templates/includes/ga.html
Normal file
18
pelican-bootstrap3/templates/includes/ga.html
Normal file
@@ -0,0 +1,18 @@
|
||||
{% if GOOGLE_ANALYTICS %}
|
||||
<script type="text/javascript">
|
||||
|
||||
var _gaq = _gaq || [];
|
||||
_gaq.push(['_setAccount', '{{ GOOGLE_ANALYTICS }}']);
|
||||
_gaq.push(['_trackPageview']);
|
||||
|
||||
(function () {
|
||||
var ga = document.createElement('script');
|
||||
ga.type = 'text/javascript';
|
||||
ga.async = true;
|
||||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(ga, s);
|
||||
})();
|
||||
|
||||
</script>
|
||||
{% endif %}
|
||||
46
pelican-bootstrap3/templates/includes/github.html
Normal file
46
pelican-bootstrap3/templates/includes/github.html
Normal file
@@ -0,0 +1,46 @@
|
||||
{% if GITHUB_USER %}
|
||||
|
||||
{% if GITHUB_REPO_COUNT is not defined %}
|
||||
{% set GITHUB_REPO_COUNT = 5 %}
|
||||
{% endif %}
|
||||
{% if GITHUB_SKIP_FORK is not defined %}
|
||||
{% set GITHUB_SKIP_FORK = "false" %}
|
||||
{% else %}
|
||||
{% if GITHUB_SKIP_FORK %}
|
||||
{% set GITHUB_SKIP_FORK = "true" %}
|
||||
{% else %}
|
||||
{% set GITHUB_SKIP_FORK = "false" %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
<section>
|
||||
<ul class="list-group list-group-flush">
|
||||
<li class="list-group-item"><h4><i class="icon-github icon-large"></i>GitHub Repos</h4></li>
|
||||
<div id="gh_repos">
|
||||
<p class="list-group-item">Status updating...</p>
|
||||
</div>
|
||||
{% if GITHUB_SHOW_USER_LINK is defined %}
|
||||
<a href="https://github.com/{{ GITHUB_USER }}">@{{ GITHUB_USER }}</a> on GitHub
|
||||
{% endif %}
|
||||
</ul>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
if (!window.jXHR) {
|
||||
var jxhr = document.createElement('script');
|
||||
jxhr.type = 'text/javascript';
|
||||
jxhr.src = '{{ SITEURL }}/theme/js/jXHR.js';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(jxhr, s);
|
||||
}
|
||||
|
||||
github.showRepos({
|
||||
user: '{{ GITHUB_USER }}',
|
||||
count: {{ GITHUB_REPO_COUNT }},
|
||||
skip_forks: {{ GITHUB_SKIP_FORK }},
|
||||
target: '#gh_repos'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script src="{{ SITEURL }}/theme/js/github.js" type="text/javascript"></script>
|
||||
</section>
|
||||
{% endif %}
|
||||
35
pelican-bootstrap3/templates/includes/sidebar.html
Normal file
35
pelican-bootstrap3/templates/includes/sidebar.html
Normal file
@@ -0,0 +1,35 @@
|
||||
<aside>
|
||||
<section>
|
||||
<ul class="list-group list-group-flush">
|
||||
{% if SOCIAL %}
|
||||
<li class="list-group-item"><h4><i class="icon-home icon-large"></i>Social</h4></li>
|
||||
{% for name, link in SOCIAL %}
|
||||
<li class="list-group-item"><a href="{{ link }}"><i
|
||||
class="icon-{{ name }}-sign icon-large"></i>{{ name }}
|
||||
</a></li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{# Uncomment if you want to show Categories #}
|
||||
|
||||
{# <li class="list-group-item"><h4><i class="icon-home icon-large"></i>Categories</h4></li>#}
|
||||
{# {% for cat, null in categories %}#}
|
||||
{# <li class="list-group-item">#}
|
||||
{# <a href="{{ SITEURL }}/{{ cat.url }}">#}
|
||||
{# <i class="icon-folder-open icon-large"></i>{{ cat }}#}
|
||||
{# </a>#}
|
||||
{# </li>#}
|
||||
{# {% endfor %}#}
|
||||
|
||||
<li class="list-group-item"><h4><i class="icon-tags icon-large"></i>Tags</h4></li>
|
||||
{% for tag in tag_cloud|sort(attribute='1') %}
|
||||
<li class="list-group-item tag-{{ tag.1 }}">
|
||||
<a href="{{ SITEURL }}/{{ tag.0.url }}">
|
||||
{{ tag.0 }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</section>
|
||||
{% include 'includes/github.html' %}
|
||||
</aside>
|
||||
9
pelican-bootstrap3/templates/includes/taglist.html
Normal file
9
pelican-bootstrap3/templates/includes/taglist.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{% if article.tags %}
|
||||
<span class="label label-default">Tags</span>
|
||||
{% for tag in article.tags %}
|
||||
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>
|
||||
{% if not loop.last %}
|
||||
/
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
6
pelican-bootstrap3/templates/includes/translations.html
Normal file
6
pelican-bootstrap3/templates/includes/translations.html
Normal file
@@ -0,0 +1,6 @@
|
||||
{% if article.translations %}
|
||||
<span class="label label-default">Lang</span>
|
||||
{% for translation in article.translations %}
|
||||
<a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
38
pelican-bootstrap3/templates/index.html
Normal file
38
pelican-bootstrap3/templates/index.html
Normal file
@@ -0,0 +1,38 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
{% if articles %}
|
||||
{% for article in (articles_page.object_list if articles_page else articles) %}
|
||||
<article>
|
||||
<h2><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h2>
|
||||
<div class="summary">{{ article.summary }}
|
||||
{# Uncomment if you want to show comment counts #}
|
||||
{#{% include 'includes/comment_count.html' %}#}
|
||||
<a class="btn btn-default btn-xs" href="{{ SITEURL }}/{{ article.url }}">more ...</a>
|
||||
</div>
|
||||
</article>
|
||||
<hr/>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if articles_page and articles_paginator.num_pages > 1 %}
|
||||
<ul class="pagination">
|
||||
{% if articles_page.has_previous() %}
|
||||
{% set num = articles_page.previous_page_number() %}
|
||||
<li class="prev"><a href="{{ SITEURL }}/{{ page_name }}{{ num if num > 1 else '' }}.html">«</a>
|
||||
</li>
|
||||
{% else %}
|
||||
<li class="prev disabled"><a href="#">«</a></li>
|
||||
{% endif %}
|
||||
{% for num in range( 1, 1 + articles_paginator.num_pages ) %}
|
||||
<li class="{{ 'active' if num == articles_page.number else '' }}"><a
|
||||
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 }}/{{ page_name }}{{ articles_page.next_page_number() }}.html">»</a></li>
|
||||
{% else %}
|
||||
<li class="next disabled"><a href="#">«</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endblock content %}
|
||||
15
pelican-bootstrap3/templates/page.html
Normal file
15
pelican-bootstrap3/templates/page.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}{{ page.title }}{% endblock %}
|
||||
{% block content %}
|
||||
<section id="content" class="body">
|
||||
<h1 class="entry-title">{{ page.title }}</h1>
|
||||
{% if PDF_PROCESSOR %}
|
||||
<a href="{{ SITEURL }}/pdf/{{ page.slug }}.pdf">
|
||||
get the pdf
|
||||
</a>
|
||||
{% endif %}
|
||||
<div class="entry-content">
|
||||
{{ page.content }}
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
||||
2
pelican-bootstrap3/templates/tag.html
Normal file
2
pelican-bootstrap3/templates/tag.html
Normal file
@@ -0,0 +1,2 @@
|
||||
{% extends "index.html" %}
|
||||
{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %}
|
||||
13
pelican-bootstrap3/templates/tags.html
Normal file
13
pelican-bootstrap3/templates/tags.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}{{ SITENAME }} - Tags{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<section id="tags">
|
||||
<h1>Tags for {{ SITENAME }}</h1>
|
||||
<ul>
|
||||
{%- for tag, articles in tags|sort %}
|
||||
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> ({{ articles|count }})</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</section>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user