changeset 842:3eb26b269539

themes (default): display a link to the atom feed below the static blog entries
author souliane <souliane@mailoo.org>
date Thu, 14 Jan 2016 23:34:31 +0100
parents 4a01be961fd2
children 83a40d786e7a
files themes/default/images/atom/Feed-icon.svg themes/default/images/atom/README themes/default/static_blog.html themes/default/styles/blog.css
diffstat 4 files changed, 37 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/themes/default/images/atom/Feed-icon.svg	Thu Jan 14 23:34:31 2016 +0100
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> 
+<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="128px" height="128px" id="RSSicon" viewBox="0 0 256 256">
+<defs>
+<linearGradient x1="0.085" y1="0.085" x2="0.915" y2="0.915" id="RSSg">
+<stop  offset="0.0" stop-color="#E3702D"/><stop  offset="0.1071" stop-color="#EA7D31"/>
+<stop  offset="0.3503" stop-color="#F69537"/><stop  offset="0.5" stop-color="#FB9E3A"/>
+<stop  offset="0.7016" stop-color="#EA7C31"/><stop  offset="0.8866" stop-color="#DE642B"/>
+<stop  offset="1.0" stop-color="#D95B29"/>
+</linearGradient>
+</defs>
+<rect width="256" height="256" rx="55" ry="55" x="0"  y="0"  fill="#CC5D15"/>
+<rect width="246" height="246" rx="50" ry="50" x="5"  y="5"  fill="#F49C52"/>
+<rect width="236" height="236" rx="47" ry="47" x="10" y="10" fill="url(#RSSg)"/>
+<circle cx="68" cy="189" r="24" fill="#FFF"/>
+<path d="M160 213h-34a82 82 0 0 0 -82 -82v-34a116 116 0 0 1 116 116z" fill="#FFF"/>
+<path d="M184 213A140 140 0 0 0 44 73 V 38a175 175 0 0 1 175 175z" fill="#FFF"/>
+</svg>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/themes/default/images/atom/README	Thu Jan 14 23:34:31 2016 +0100
@@ -0,0 +1,7 @@
+The work in this directory is licenced under a MPL/GPL/LGPL tri-license:
+    - MPL 1.1
+    - GPL 2 or later
+    - LGPL 2 or later
+
+Originally distributed by the Mozilla Foundation
+Source: http://www.feedicons.com
\ No newline at end of file
--- a/themes/default/static_blog.html	Wed Jan 13 17:14:04 2016 +0100
+++ b/themes/default/static_blog.html	Thu Jan 14 23:34:31 2016 +0100
@@ -117,5 +117,11 @@
         <div class="powered">
             Powered by <a href="http://salut-a-toi.org" target="#"><img src="/media/icons/apps/16/sat.png"> Salut à Toi</a>
         </div>
+        <div class="feed">
+            Subscribe to this news feed
+            <a href="{{base_url}}/atom.xml" target="#">
+                <img src="{{images}}/atom/Feed-icon.svg" alt="Atom feed">
+            </a>
+        </div>
     </body>
 </html>
--- a/themes/default/styles/blog.css	Wed Jan 13 17:14:04 2016 +0100
+++ b/themes/default/styles/blog.css	Thu Jan 14 23:34:31 2016 +0100
@@ -212,16 +212,18 @@
     border-radius: 5px;
 }
 
-.powered {
+.powered, .feed {
     text-align: center;
     font-family: FreeSans,Liberation Sans,Arial,sans-serif;
     color: rgb(51, 51, 51);
     font-size: small;
 }
 
-.powered a {
+.powered a, .feed a {
     text-decoration: none;
 }
-.powered img {
+.powered img, .feed img {
     vertical-align: bottom;
-}
\ No newline at end of file
+    width: 16px;
+    heigth: 16px;
+}