Browse Source

update from webadmin

exegetes.eu.org crontab 8 years ago
parent
commit
0706f2faeb

+ 3 - 2
TODO

@@ -9,7 +9,8 @@
 - remettre les bonnes dates pour les postes
 - remettre les bonnes dates pour les postes
 
 
 Roadmap:
 Roadmap:
-- feed.xml
-- i18n
 - recours
 - recours
 - wget --spider puis comparaison
 - wget --spider puis comparaison
+
+Whishlist:
+- tags

+ 3 - 5
content/en/contents.lr

@@ -1,8 +1,6 @@
----
-title: The “exégètes amateurs” (eggs hey jet amateurs)
----
 body:
 body:
 
 
+
 The *“exégètes amateurs”* is the nickname given to a group of
 The *“exégètes amateurs”* is the nickname given to a group of
 activists litigating in France against mass surveillance, data
 activists litigating in France against mass surveillance, data
 retention and State censorship on the Internet.
 retention and State censorship on the Internet.
@@ -24,5 +22,5 @@ du Net's website](https://www.laquadrature.net/fr/recours#english).
 
 
 Feel free to get in touch with us especially to join our litigations,
 Feel free to get in touch with us especially to join our litigations,
 like Privacy International, Article 19 and the Center for Democracy and Technology.
 like Privacy International, Article 19 and the Center for Democracy and Technology.
-
-(We'll update this page with more info).
+---
+title: About

+ 8 - 0
content/contents+en.lr

@@ -0,0 +1,8 @@
+_model: home
+---
+title: Welcome to exegetes.eu.org in english !
+---
+body:
+
+This is a basic demo website that shows how to use Lektor for a basic
+website with some pages and a blog.

+ 3 - 0
content/feed.xml/contents.lr

@@ -0,0 +1,3 @@
+_model: feed
+---
+_slug: feed.xml

+ 7 - 0
databags/description.ini

@@ -0,0 +1,7 @@
+[fr]
+description = "Groupe d'action juridique et contentieuse commun entre French Data Network (FDN), La Quadrature du Net (LQDN) et la fédération des fournisseurs d'accès à Internet associatifs (Fédération FDN). Depuis décembre 2014."
+
+[en]
+description = "Common legal action group between French Data Network (FDN), La Quadrature du Net (LQDN) and a federation of non-profit Internet access providers (Fédération FDN). Since December 2014."
+
+

+ 14 - 0
databags/menu.ini

@@ -0,0 +1,14 @@
+[about]
+path = /about
+label = À propos
+label_en = About
+
+[dossiers]
+path = /dossiers
+label = Dossiers
+label_en = Dossiers
+
+[rp]
+path = /rp
+label = Revue de presse
+label_en = Press review

+ 14 - 0
exegetes.eu.org.lektorproject

@@ -1,8 +1,22 @@
 [project]
 [project]
 name = exegetes.eu.org
 name = exegetes.eu.org
+<<<<<<< HEAD
 
 
 [servers.chimay]
 [servers.chimay]
 name = Chimay
 name = Chimay
 enabled = yes
 enabled = yes
 default = yes
 default = yes
 target = cp:///var/www/chimay
 target = cp:///var/www/chimay
+=======
+url_style = relative
+
+[alternatives.fr]
+primary = yes
+name = French
+locale = fr
+
+[alternatives.en]
+name = English
+url_prefix = /en/
+locale = en_US
+>>>>>>> 8ba0e38c3a535e4dc3678e69c19ee40c776434aa

+ 8 - 0
models/feed.ini

@@ -0,0 +1,8 @@
+[model]
+name = Feed
+label = Feed
+hidden = yes
+
+[fields.title]
+label = Title
+type = string

+ 39 - 0
templates/feed.html

@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="utf-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
+<title type="text">exegetes.eu.org</title>
+<link rel="self" type="application/atom+xml" href="https://exegetes.eu.org/feed.xml" />
+<link rel="alternate" type="text/html" href="https://exegetes.eu.org" />
+
+{% for child in this.parent.pagination.items %}
+    {% if child._data._model == "posts" %}
+        {% for post in child.pagination.items|rejectattr("private") %}
+            {% if loop.index == 1 %}
+                <updated>{{ post.pub_date }}</updated>
+                <id>https://exegetes.eu.org/</id>
+                <author>
+                  <name>Les exégètes amateurs</name>
+                  <uri>https://exegetes.eu.org/</uri>
+                  <email>contact@exegetes.eu.org</email>
+                </author>
+            {% endif %}
+            {% if loop.index <= 10 %}
+                <entry>
+                  <title type="html"><![CDATA[{{ post.title }}]]></title>
+                  <link rel="alternate" type="text/html" href="https://exegetes.eu.org/{{ post|url }}"/>
+                  <id>https://exegetes.eu.org/{{ post|url }}</id>
+                  <published>{{ post.pub_date }}</published>
+                  <updated>{{ post.pub_date }}</updated>
+                  <author>
+                    <name>Les exégètes amateurs</name>
+                    <uri>https://exegetes.eu.org</uri>
+                    <email>contact@exegetes.eu.org</email>
+                  </author>
+                  <content type="html">
+                    {{ post.body|forceescape }}
+                  </content>
+                </entry>
+            {% endif %}
+        {% endfor %}
+    {% endif %}
+{% endfor %}
+</feed>

+ 4 - 5
templates/layout.html

@@ -52,9 +52,9 @@
         <div class="top-navigation">
         <div class="top-navigation">
             <nav role="navigation" id="site-nav" class="nav">
             <nav role="navigation" id="site-nav" class="nav">
                 <ul>
                 <ul>
-                    <li><a href="/about/" >À propos</a></li>
-                    <li><a href="/dossiers/" >Dossiers</a></li>
-                    <li><a href="/rp/" >Revue de Presse</a></li>
+          {% for id, item in bag('menu').iteritems() %}
+            <li{% if this.is_child_of(item.path) %} class="active"{% endif %}><a href="{{ item.path|url }}">{% if this.alt == 'fr' %}{{ item.label }}{% else %}{{ item.label_en }}{% endif %}</a></li>
+            {% endfor %}
                 </ul>
                 </ul>
             </nav>
             </nav>
         </div><!-- /.top-navigation -->
         </div><!-- /.top-navigation -->
@@ -76,7 +76,7 @@
             <div itemscope itemtype="http://schema.org/Person">
             <div itemscope itemtype="http://schema.org/Person">
                 <img src="{{ '/static/images/bio-photo.jpg'|url }}" class="bio-photo" alt="Les exégètes amateurs bio photo">
                 <img src="{{ '/static/images/bio-photo.jpg'|url }}" class="bio-photo" alt="Les exégètes amateurs bio photo">
                 <h3 itemprop="name">Les exégètes amateurs</h3>
                 <h3 itemprop="name">Les exégètes amateurs</h3>
-                <p>Groupe d'action juridique et contentieuse commun entre French Data Network (FDN), La Quadrature du Net (LQDN) et la fédération des fournisseurs d'accès à Internet associatifs (Fédération FDN). Depuis décembre 2014.</p>
+                <p>{{ bag('description', this.alt, 'description') }}</p>
                 <a href="mailto:contact@exegetes.eu.org" class="author-social" target="_blank"><i class="fa fa-fw fa-envelope-square"></i> Email</a>
                 <a href="mailto:contact@exegetes.eu.org" class="author-social" target="_blank"><i class="fa fa-fw fa-envelope-square"></i> Email</a>
                 <a href="http://twitter.com/lesExegetes" class="author-social" target="_blank"><i class="fa fa-fw fa-twitter-square"></i> Twitter</a>
                 <a href="http://twitter.com/lesExegetes" class="author-social" target="_blank"><i class="fa fa-fw fa-twitter-square"></i> Twitter</a>
             </div>
             </div>
@@ -90,7 +90,6 @@
         <footer>
         <footer>
             Fabrication artisanale d’adresses hypées. <a href="/mentions-legales/">Mentions légales</a>
             Fabrication artisanale d’adresses hypées. <a href="/mentions-legales/">Mentions légales</a>
             <br />
             <br />
-            <a href="/amateurs/">Connexion</a>
         </footer>
         </footer>
     </div><!-- /.footer-wrap -->
     </div><!-- /.footer-wrap -->