changeset 6fbcdc6a5eba in www.tryton.org:default
details: https://hg.tryton.org/www.tryton.org?cmd=changeset;node=6fbcdc6a5eba
description:
        Add link to the news and RSS feed
diffstat:

 app.py                |  1 +
 iconfont/rss-box.svg  |  1 +
 templates/index.html  |  4 ++++
 templates/layout.html |  1 +
 4 files changed, 7 insertions(+), 0 deletions(-)

diffs (42 lines):

diff -r aad05037aa1f -r 6fbcdc6a5eba app.py
--- a/app.py    Fri Jul 26 18:32:21 2019 +0200
+++ b/app.py    Fri Jul 26 18:33:05 2019 +0200
@@ -118,6 +118,7 @@
     menu = OrderedDict()
     menu['Tryton'] = [
         ('Success Stories', url_for('success_stories')),
+        ('News', url_for('news')),
         ('Get Tryton', url_for('download')),
         ('Documentation', '//docs.tryton.org/'),
         ]
diff -r aad05037aa1f -r 6fbcdc6a5eba iconfont/rss-box.svg
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/iconfont/rss-box.svg      Fri Jul 26 18:33:05 2019 +0200
@@ -0,0 +1,1 @@
+<svg xmlns="http://www.w3.org/2000/svg"; width="24" height="24"><path d="M5 
3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2m2.5 12A1.5 
1.5 0 0 0 6 16.5 1.5 1.5 0 0 0 7.5 18 1.5 1.5 0 0 0 9 16.5 1.5 1.5 0 0 0 7.5 
15M6 10v2a6 6 0 0 1 6 6h2a8 8 0 0 0-8-8m0-4v2a10 10 0 0 1 10 10h2A12 12 0 0 0 6 
6z"/></svg>
\ No newline at end of file
diff -r aad05037aa1f -r 6fbcdc6a5eba templates/index.html
--- a/templates/index.html      Fri Jul 26 18:32:21 2019 +0200
+++ b/templates/index.html      Fri Jul 26 18:33:05 2019 +0200
@@ -4,6 +4,10 @@
 {% macro slide_img(i, alt) %}
 <img class="d-block w-100 img-fluid" src="{{ url_for('static', 
filename='images/slide%i.jpg' % i) }}" sizes="100vw" srcset="{{ 
url_for('static', filename='images/slide%i.jpg' % i) }} 1920w, {{ 
url_for('static', filename='images/slide%i-800px.jpg' % i) }} 800w, {{ 
url_for('static', filename='images/slide%i-400px.jpg' % i) }} 400w" alt="{{ alt 
}}">
 {% endmacro %}
+{% block style %}
+{{ super() }}
+<link rel="alternate" type="application/rss+xml" title="Tryton's news" 
href="{{ url_for('news_rss') }}"/>
+{% endblock style %}
 {% block header %}
 {{ super() }}
 <div id="carousel-header" class="carousel slide carousel-fade" 
data-ride="carousel">
diff -r aad05037aa1f -r 6fbcdc6a5eba templates/layout.html
--- a/templates/layout.html     Fri Jul 26 18:32:21 2019 +0200
+++ b/templates/layout.html     Fri Jul 26 18:33:05 2019 +0200
@@ -112,6 +112,7 @@
                                 </p>
                                 <div class="socials">
                                     <h2>Follow us</h2>
+                                    <a href="{{ url_for('news_rss') }}" 
class="mr-3 wow zoomIn icon icon-rss-box i-36" data-wow-delay=".2s"><span 
class="sr-only">RSS</span></a>
                                     <a 
href="https://twitter.com/TrytonSoftware"; target="_blank" rel="noopener" 
class="mr-3 wow zoomIn icon icon-twitter-box i-36" data-wow-delay=".2s"><span 
class="sr-only">Twitter</span></a>
                                     <a 
href="https://www.facebook.com/TrytonSoftware/"; target="_blank" rel="noopener" 
class="mr-3 wow zoomIn icon icon-facebook-box i-36" data-wow-delay=".1s"><span 
class="sr-only">Facebook</span></a>
                                     <a 
href="https://www.linkedin.com/groups/1313967"; target="_blank" rel="noopener" 
class="mr-3 wow zoomIn icon icon-linkedin-box i-36" data-wow-delay=".3s"><span 
class="sr-only">LinkedIn</span></a>

Reply via email to