diff options
author | Daan Debie <daan.debie@info.nl> | 2013-08-23 00:44:51 +0200 |
---|---|---|
committer | Daan Debie <daan.debie@info.nl> | 2013-08-23 00:44:51 +0200 |
commit | 5d9619c81b1ccccf71340aae544a66f62c103f64 (patch) | |
tree | 18600bed40dfaebc439ae2a4b48b18336989059b /pelican-bootstrap3/templates/includes | |
parent | 543532ce68ac584ab33102adab578bf63e98ca42 (diff) | |
download | pelican-themes-5d9619c81b1ccccf71340aae544a66f62c103f64.tar.gz |
Added pelican-bootstrap3 theme
Diffstat (limited to 'pelican-bootstrap3/templates/includes')
10 files changed, 192 insertions, 0 deletions
diff --git a/pelican-bootstrap3/templates/includes/addthis.html b/pelican-bootstrap3/templates/includes/addthis.html new file mode 100644 index 0000000..9f8fe50 --- /dev/null +++ b/pelican-bootstrap3/templates/includes/addthis.html @@ -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 %}
\ No newline at end of file diff --git a/pelican-bootstrap3/templates/includes/article_info.html b/pelican-bootstrap3/templates/includes/article_info.html new file mode 100644 index 0000000..6610aa2 --- /dev/null +++ b/pelican-bootstrap3/templates/includes/article_info.html @@ -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 --> diff --git a/pelican-bootstrap3/templates/includes/comment_count.html b/pelican-bootstrap3/templates/includes/comment_count.html new file mode 100644 index 0000000..7ebaf20 --- /dev/null +++ b/pelican-bootstrap3/templates/includes/comment_count.html @@ -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 %}
\ No newline at end of file diff --git a/pelican-bootstrap3/templates/includes/comments.html b/pelican-bootstrap3/templates/includes/comments.html new file mode 100644 index 0000000..b16517b --- /dev/null +++ b/pelican-bootstrap3/templates/includes/comments.html @@ -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 %}
\ No newline at end of file diff --git a/pelican-bootstrap3/templates/includes/disqus_script.html b/pelican-bootstrap3/templates/includes/disqus_script.html new file mode 100644 index 0000000..8dbb999 --- /dev/null +++ b/pelican-bootstrap3/templates/includes/disqus_script.html @@ -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 %}
\ No newline at end of file diff --git a/pelican-bootstrap3/templates/includes/ga.html b/pelican-bootstrap3/templates/includes/ga.html new file mode 100644 index 0000000..2f75571 --- /dev/null +++ b/pelican-bootstrap3/templates/includes/ga.html @@ -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 %}
\ No newline at end of file diff --git a/pelican-bootstrap3/templates/includes/github.html b/pelican-bootstrap3/templates/includes/github.html new file mode 100644 index 0000000..1d1e7f2 --- /dev/null +++ b/pelican-bootstrap3/templates/includes/github.html @@ -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 %}
\ No newline at end of file diff --git a/pelican-bootstrap3/templates/includes/sidebar.html b/pelican-bootstrap3/templates/includes/sidebar.html new file mode 100644 index 0000000..6ff43b3 --- /dev/null +++ b/pelican-bootstrap3/templates/includes/sidebar.html @@ -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>
\ No newline at end of file diff --git a/pelican-bootstrap3/templates/includes/taglist.html b/pelican-bootstrap3/templates/includes/taglist.html new file mode 100644 index 0000000..bcaa470 --- /dev/null +++ b/pelican-bootstrap3/templates/includes/taglist.html @@ -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 %} diff --git a/pelican-bootstrap3/templates/includes/translations.html b/pelican-bootstrap3/templates/includes/translations.html new file mode 100644 index 0000000..65c5684 --- /dev/null +++ b/pelican-bootstrap3/templates/includes/translations.html @@ -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 %} |