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