1
0
Fork 0
forked from github/pelican

Display feed(s) in footer if no SOCIAL links

For sites where there are no SOCIAL links defined the FEED_ALL_ATOM and/or the FEED_ALL_RSS links are not displayed.
Also update the functional tests output.
This commit is contained in:
Steve Schwarz 2013-02-23 16:43:48 -06:00 committed by Alexis Métaireau
commit 1bbfdf96a0
27 changed files with 209 additions and 27 deletions

View file

@ -54,7 +54,7 @@
</ul>
</div><!-- /.blogroll -->
{% endif %}
{% if SOCIAL %}
{% if SOCIAL or FEED_ALL_ATOM or FEED_ALL_RSS %}
<div class="social">
<h2>social</h2>
<ul>

View file

@ -53,7 +53,14 @@
</article>
</section>
<section id="extras" class="body">
</section><!-- /#extras -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">

View file

@ -54,7 +54,14 @@
</dl>
</section>
<section id="extras" class="body">
</section><!-- /#extras -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">

View file

@ -52,7 +52,14 @@
</article>
</section>
<section id="extras" class="body">
</section><!-- /#extras -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">

View file

@ -52,7 +52,14 @@
</article>
</section>
<section id="extras" class="body">
</section><!-- /#extras -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">

View file

@ -52,7 +52,14 @@
</article>
</section>
<section id="extras" class="body">
</section><!-- /#extras -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">

View file

@ -86,7 +86,14 @@ as well as <strong>inline markup</strong>.</p>
</ol><!-- /#posts-list -->
</section><!-- /#content -->
<section id="extras" class="body">
</section><!-- /#extras -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">

View file

@ -36,7 +36,14 @@
<li><a href="./category/yeah.html">yeah</a></li>
</ul>
<section id="extras" class="body">
</section><!-- /#extras -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">

View file

@ -56,7 +56,14 @@ YEAH !</p>
</ol><!-- /#posts-list -->
</section><!-- /#content -->
<section id="extras" class="body">
</section><!-- /#extras -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">

View file

@ -119,7 +119,14 @@
</ol><!-- /#posts-list -->
</section><!-- /#content -->
<section id="extras" class="body">
</section><!-- /#extras -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">

View file

@ -100,7 +100,14 @@
</ol><!-- /#posts-list -->
</section><!-- /#content -->
<section id="extras" class="body">
</section><!-- /#extras -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">

View file

@ -62,7 +62,14 @@
</ol><!-- /#posts-list -->
</section><!-- /#content -->
<section id="extras" class="body">
</section><!-- /#extras -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">

View file

@ -52,7 +52,14 @@
</article>
</section>
<section id="extras" class="body">
</section><!-- /#extras -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">

View file

@ -245,7 +245,14 @@ YEAH !</p>
</ol><!-- /#posts-list -->
</section><!-- /#content -->
<section id="extras" class="body">
</section><!-- /#extras -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">

View file

@ -60,7 +60,14 @@ YEAH !</p>
</article>
</section>
<section id="extras" class="body">
</section><!-- /#extras -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">

View file

@ -38,7 +38,14 @@ Anyone can see this page but it's not linked to anywhere!</p>
</section>
<section id="extras" class="body">
</section><!-- /#extras -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">

View file

@ -38,7 +38,14 @@
</section>
<section id="extras" class="body">
</section><!-- /#extras -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">

View file

@ -54,7 +54,14 @@
</article>
</section>
<section id="extras" class="body">
</section><!-- /#extras -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">

View file

@ -54,7 +54,14 @@
</article>
</section>
<section id="extras" class="body">
</section><!-- /#extras -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">

View file

@ -134,7 +134,14 @@ YEAH !</p>
</ol><!-- /#posts-list -->
</section><!-- /#content -->
<section id="extras" class="body">
</section><!-- /#extras -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">

View file

@ -78,7 +78,14 @@
</ol><!-- /#posts-list -->
</section><!-- /#content -->
<section id="extras" class="body">
</section><!-- /#extras -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">

View file

@ -104,7 +104,14 @@ as well as <strong>inline markup</strong>.</p>
</ol><!-- /#posts-list -->
</section><!-- /#content -->
<section id="extras" class="body">
</section><!-- /#extras -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">

View file

@ -62,7 +62,14 @@
</ol><!-- /#posts-list -->
</section><!-- /#content -->
<section id="extras" class="body">
</section><!-- /#extras -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">

View file

@ -56,7 +56,14 @@ YEAH !</p>
</ol><!-- /#posts-list -->
</section><!-- /#content -->
<section id="extras" class="body">
</section><!-- /#extras -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">

View file

@ -56,7 +56,14 @@ YEAH !</p>
</ol><!-- /#posts-list -->
</section><!-- /#content -->
<section id="extras" class="body">
</section><!-- /#extras -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">

View file

@ -66,7 +66,14 @@
</article>
</section>
<section id="extras" class="body">
</section><!-- /#extras -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">

View file

@ -54,7 +54,14 @@
</article>
</section>
<section id="extras" class="body">
</section><!-- /#extras -->
<div class="social">
<h2>social</h2>
<ul>
<li><a href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">