diff --git a/pelicanconf.py b/pelicanconf.py
index ffdc294..7fa8163 100644
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -1,3 +1,5 @@
+import re
+
AUTHOR = 'Les lexicos'
SITENAME = 'Lexicographe Déconstruit'
SITEURL = ''
@@ -15,6 +17,10 @@ TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
+THEME = './themes/default/'
+
+DEFAULT_DATE = 'fs'
+
# Blogroll
LINKS = (('Pelican', 'https://getpelican.com/'),
('Python.org', 'https://www.python.org/'),
@@ -27,5 +33,36 @@ SOCIAL = (('You can add links in your config file', '#'),
DEFAULT_PAGINATION = False
+# custom Jinja2 filter for indexing articles
+def sort_by_letter(articles):
+ organized_articles = {}
+ for article in sorted(articles, key=lambda a:a.title):
+ if article.category != 'definitions':
+ continue
+ letter = article.title[0].upper()
+ if letter not in organized_articles:
+ organized_articles[letter] = []
+ organized_articles[letter].append(article)
+ return organized_articles.items()
+
+def titleless (html):
+ """Filter out titles in html"""
+ return re.sub('[^<]*', ' ', html)
+
+def styleless (html):
+ """Filter out html tags"""
+ return re.sub('<[^<]*>', ' ', html)
+
+def begin (text):
+ """Only let the begining of the text"""
+ return text if len(text) < 200 else text[0:200] + '…'
+
+JINJA_FILTERS = {
+ "sortbyletter": sort_by_letter,
+ "titleless": titleless,
+ "styleless": styleless,
+ "begin": begin,
+}
+
# Uncomment following line if you want document-relative URLs when developing
-#RELATIVE_URLS = True
\ No newline at end of file
+#RELATIVE_URLS = True
diff --git a/sync-content.sh b/sync-content.sh
index bb1f19c..18d9b25 100755
--- a/sync-content.sh
+++ b/sync-content.sh
@@ -18,9 +18,9 @@ if [ -z "$action" ] ; then
fi
if [ "$action" = 'pull' ] ; then
- rclone copy --webdav-url="$server/remote.php/webdav/" --webdav-vendor=nextcloud --webdav-user="$user" --webdav-pass=$(rclone obscure $password) :webdav:"$ncpath" content
+ rclone sync --webdav-url="$server/remote.php/webdav/" --webdav-vendor=nextcloud --webdav-user="$user" --webdav-pass=$(rclone obscure $password) :webdav:"$ncpath" content
elif [ "$action" = 'push' ] ; then
- rclone copy --webdav-url="$server/remote.php/webdav/" --webdav-vendor=nextcloud --webdav-user="$user" --webdav-pass=$(rclone obscure $password) content :webdav:"$ncpath"
+ rclone sync --webdav-url="$server/remote.php/webdav/" --webdav-vendor=nextcloud --webdav-user="$user" --webdav-pass=$(rclone obscure $password) content :webdav:"$ncpath"
else
echo "unknown action: $action"
exit 1
diff --git a/themes/default/static/images/logos abc - export.png b/themes/default/static/images/logos abc - export.png
new file mode 100644
index 0000000..91e2bd1
Binary files /dev/null and b/themes/default/static/images/logos abc - export.png differ
diff --git a/themes/default/static/images/logos abc - export.svg b/themes/default/static/images/logos abc - export.svg
new file mode 100644
index 0000000..915987f
--- /dev/null
+++ b/themes/default/static/images/logos abc - export.svg
@@ -0,0 +1,82 @@
+
+
+
+
diff --git a/themes/default/templates/base.html b/themes/default/templates/base.html
index e526c2b..6971c8e 100644
--- a/themes/default/templates/base.html
+++ b/themes/default/templates/base.html
@@ -67,6 +67,7 @@ format(slug=tag.slug) }}{% endif %}" type="application/rss+xml" rel="alternate"
{% block content %}
+ {{ page.content }}
{% endblock %}