Trailing whitespaces cleanup in bootstrap2
This commit is contained in:
@@ -2,39 +2,39 @@
|
||||
{% block title %}{{ article.title }}{% endblock %}
|
||||
{% block content %}
|
||||
<section id="content">
|
||||
<article>
|
||||
<header>
|
||||
<h1>
|
||||
<a href="{{ pagename }}"
|
||||
rel="bookmark"
|
||||
title="Permalink to {{ article.title }}">
|
||||
{{ article.title}}
|
||||
</a>
|
||||
{% include 'twitter.html' %}
|
||||
</h1>
|
||||
</header>
|
||||
<div class="entry-content">
|
||||
<div class="well">
|
||||
{% include 'article_infos.html' %}
|
||||
</div>
|
||||
{{ article.content }}
|
||||
</div><!-- /.entry-content -->
|
||||
{% if DISQUS_SITENAME %}
|
||||
<div class="comments">
|
||||
<h2>Comments !</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_identifier = "{{ article.url }}";
|
||||
(function() {
|
||||
var dsq = document.createElement('script');
|
||||
dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = 'http://{{ DISQUS_SITENAME }}.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] ||
|
||||
document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
{% endif %}
|
||||
</article>
|
||||
<article>
|
||||
<header>
|
||||
<h1>
|
||||
<a href="{{ pagename }}"
|
||||
rel="bookmark"
|
||||
title="Permalink to {{ article.title }}">
|
||||
{{ article.title}}
|
||||
</a>
|
||||
{% include 'twitter.html' %}
|
||||
</h1>
|
||||
</header>
|
||||
<div class="entry-content">
|
||||
<div class="well">
|
||||
{% include 'article_infos.html' %}
|
||||
</div>
|
||||
{{ article.content }}
|
||||
</div><!-- /.entry-content -->
|
||||
{% if DISQUS_SITENAME %}
|
||||
<div class="comments">
|
||||
<h2>Comments !</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_identifier = "{{ article.url }}";
|
||||
(function() {
|
||||
var dsq = document.createElement('script');
|
||||
dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = 'http://{{ DISQUS_SITENAME }}.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] ||
|
||||
document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
{% endif %}
|
||||
</article>
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<footer class="post-info">
|
||||
<span class="label">Date</span>
|
||||
<abbr class="published" title="{{ article.date.isoformat() }}">
|
||||
<i class="icon-calendar"></i>{{ article.locale_date }}
|
||||
<i class="icon-calendar"></i>{{ article.locale_date }}
|
||||
</abbr>
|
||||
{% if article.author %}
|
||||
<span class="label">By</span>
|
||||
|
||||
@@ -17,26 +17,21 @@
|
||||
.sidebar-nav {
|
||||
padding: 9px 0;
|
||||
}
|
||||
|
||||
.tag-1 {
|
||||
font-size: 13pt;
|
||||
}
|
||||
|
||||
.tag-2 {
|
||||
font-size: 10pt;
|
||||
}
|
||||
|
||||
.tag-2 {
|
||||
font-size: 8pt;
|
||||
}
|
||||
|
||||
.tag-4 {
|
||||
font-size: 6pt;
|
||||
}
|
||||
|
||||
.tag-1 {
|
||||
font-size: 13pt;
|
||||
}
|
||||
.tag-2 {
|
||||
font-size: 10pt;
|
||||
}
|
||||
.tag-2 {
|
||||
font-size: 8pt;
|
||||
}
|
||||
.tag-4 {
|
||||
font-size: 6pt;
|
||||
}
|
||||
</style>
|
||||
<link href="{{ SITEURL }}/theme/css/bootstrap-responsive.css" rel="stylesheet">
|
||||
<link href="{{ SITEURL }}/theme/css/font-awesome.css" rel="stylesheet">
|
||||
<link href="{{ SITEURL }}/theme/css/font-awesome.css" rel="stylesheet">
|
||||
|
||||
<link href="{{ SITEURL }}/theme/css/pygments.css" rel="stylesheet">
|
||||
|
||||
@@ -78,19 +73,19 @@
|
||||
{% for page in PAGES %}
|
||||
<li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
|
||||
{% endfor %}
|
||||
<li class="divider-vertical"></li>
|
||||
<li class="divider-vertical"></li>
|
||||
{% endif %}
|
||||
{% for cat, null in categories %}
|
||||
<li {% if cat == category %}class="active"{% endif %}>
|
||||
<a href="{{ SITEURL }}/category/{{ cat }}.html">
|
||||
<i class="icon-folder-open icon-large"></i>{{ cat }}
|
||||
</a>
|
||||
<i class="icon-folder-open icon-large"></i>{{ cat }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
||||
<ul class="nav pull-right">
|
||||
<li><a href="{{ SITEURL }}/archives.html"><i class="icon-th-list"></i>Archives</a></li>
|
||||
</ul>
|
||||
<ul class="nav pull-right">
|
||||
<li><a href="{{ SITEURL }}/archives.html"><i class="icon-th-list"></i>Archives</a></li>
|
||||
</ul>
|
||||
|
||||
</ul>
|
||||
<!--<p class="navbar-text pull-right">Logged in as <a href="#">username</a></p>-->
|
||||
@@ -106,7 +101,7 @@
|
||||
{% endblock %}
|
||||
</div><!--/span-->
|
||||
|
||||
<div class="span3 well sidebar-nav" id="sidebar">
|
||||
<div class="span3 well sidebar-nav" id="sidebar">
|
||||
{% include 'sidebar.html' %}
|
||||
</div><!--/.well -->
|
||||
|
||||
@@ -117,11 +112,11 @@
|
||||
<footer>
|
||||
<address id="about">
|
||||
Proudly powered by <a href="http://pelican.notmyidea.org/">Pelican <i class="icon-external-link"></i></a>,
|
||||
which takes great advantage of <a href="http://python.org">Python <i class="icon-external-link"></i></a>.
|
||||
which takes great advantage of <a href="http://python.org">Python <i class="icon-external-link"></i></a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is from <a href="http://twitter.github.com/bootstrap/">Bootstrap from Twitter <i class="icon-external-link"></i></a>,
|
||||
and <a href="http://fortawesome.github.com/Font-Awesome/">Font-Awesome <i class="icon-external-link"></i></a>, thanks!</p>
|
||||
and <a href="http://fortawesome.github.com/Font-Awesome/">Font-Awesome <i class="icon-external-link"></i></a>, thanks!</p>
|
||||
</footer>
|
||||
|
||||
</div><!--/.fluid-container-->
|
||||
@@ -149,7 +144,6 @@
|
||||
<script src="{{ SITEURL }}/theme/js/bootstrap-carousel.js"></script>
|
||||
<script src="{{ SITEURL }}/theme/js/bootstrap-typeahead.js"></script>
|
||||
|
||||
<!--<script src="{{ SITEURL }}/theme/js/autosidebar.js"></script>-->
|
||||
<!--<script src="{{ SITEURL }}/theme/js/autosidebar.js"></script>-->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
@@ -2,46 +2,46 @@
|
||||
{% block content_title %}{% endblock %}
|
||||
{% block content %}
|
||||
{% if articles %}
|
||||
{% for article in (articles_page.object_list if articles_page else articles) %}
|
||||
<div class='article'>
|
||||
<h1><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h1>
|
||||
<div class="well small">{% include "article_infos.html" %}</div>
|
||||
<div class="summary">{{ article.summary }}
|
||||
<a class="btn primary xsmall" href="{{ SITEURL }}/{{ article.url }}">more ...</a>
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
{% endfor %}
|
||||
{%endif%}
|
||||
{% for article in (articles_page.object_list if articles_page else articles) %}
|
||||
<div class="article">
|
||||
<h1><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h1>
|
||||
<div class="well small">{% include "article_infos.html" %}</div>
|
||||
<div class="summary">{{ article.summary }}
|
||||
<a class="btn primary xsmall" href="{{ SITEURL }}/{{ article.url }}">more ...</a>
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if articles_page and articles_paginator.num_pages > 1 %}
|
||||
<div class="pagination">
|
||||
<ul>
|
||||
{% 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">← Previous</a></li>
|
||||
{% else %}
|
||||
<li class="prev disabled"><a href="#">← Previous</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">Next →</a></li>
|
||||
{% else %}
|
||||
<li class="next disabled"><a href="#">→ Next</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
{% if articles_page and articles_paginator.num_pages > 1 %}
|
||||
<div class="pagination">
|
||||
<ul>
|
||||
{% 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">← Previous</a></li>
|
||||
{% else %}
|
||||
<li class="prev disabled"><a href="#">← Previous</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">Next →</a></li>
|
||||
{% else %}
|
||||
<li class="next disabled"><a href="#">→ Next</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{% else %}
|
||||
{% if PAGES %}
|
||||
<section id="content" class="body">
|
||||
<h1>Pages</h1>
|
||||
{% for page in PAGES %}
|
||||
<li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
|
||||
{% endfor %}
|
||||
</section>
|
||||
{% endif %}
|
||||
{% if PAGES %}
|
||||
<section id="content" class="body">
|
||||
<h1>Pages</h1>
|
||||
{% for page in PAGES %}
|
||||
<li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
|
||||
{% endfor %}
|
||||
</section>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endblock content %}
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
{% 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 %}
|
||||
{{ page.content }}
|
||||
<h1 class="entry-title">{{ page.title }}</h1>
|
||||
{% if PDF_PROCESSOR %}
|
||||
<a href="{{ SITEURL }}/pdf/{{ page.slug }}.pdf">
|
||||
get the pdf
|
||||
</a>
|
||||
{% endif %}
|
||||
{{ page.content }}
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user