This commit is contained in:
Marc Beninca 2021-11-09 00:34:33 +01:00
parent 0c581ece64
commit ffeda211d3
3 changed files with 33 additions and 66 deletions

View file

@ -1,12 +1,14 @@
AUTHOR = 'MSPE' AUTHOR = 'MSPE'
SITENAME = 'RWX work' SITENAME = 'RWX work'
SITEURL = '' SITESUBTITLE = 'Read Write eXecute'
SITEURL = 'https://blog.rwx.work'
PATH = 'content' PATH = 'content'
TIMEZONE = 'Europe/Paris' TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = 'en' DEFAULT_LANG = 'en'
DEFAULT_DATE_FORMAT = '%B %d, %Y'
FEED_ALL_ATOM = None FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None CATEGORY_FEED_ATOM = None
@ -14,8 +16,14 @@ TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None AUTHOR_FEED_RSS = None
DEFAULT_PAGINATION = False
RELATIVE_URLS = True
THEME = 'themes/pelican-striped-html5up' THEME = 'themes/pelican-striped-html5up'
STATIC_PATHS = ['images']
# PLUGINS = ['neighbors']
HOSTS = ( HOSTS = (
('rwx.work', 'https://blog.rwx.work'), ('rwx.work', 'https://blog.rwx.work'),
('envs.net', 'https://mspe.envs.net'), ('envs.net', 'https://mspe.envs.net'),
@ -72,7 +80,3 @@ SOCIAL = (
('linkedin.com', 'https://www.linkedin.com/in/marc-beninca'), ('linkedin.com', 'https://www.linkedin.com/in/marc-beninca'),
('lbry.tv', 'https://lbry.tv/@marc-beninca:d'), ('lbry.tv', 'https://lbry.tv/@marc-beninca:d'),
) )
DEFAULT_PAGINATION = False
RELATIVE_URLS = True

View file

@ -1,39 +0,0 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = ''
SITENAME = ''
SITESUBTITLE = ''
SITEURL = 'localhost'
PATH = 'content'
TIMEZONE = 'UTC'
DEFAULT_LANG = 'en'
DEFAULT_DATE_FORMAT = '%B %d, %Y'
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
# Blogroll
LINKS = (('Pelican', 'http://getpelican.com/'),
('Python.org', 'http://python.org/'),
('Jinja2', 'http://jinja.pocoo.org/'),
('You can modify those links in your config file', '#'),)
# Social widget
SOCIAL = (('You can add links in your config file', '#'),
('Another social link', '#'),)
DEFAULT_PAGINATION = 10
# Uncomment following line if you want document-relative URLs when developing
# RELATIVE_URLS = True
# THEME = ''
STATIC_PATHS = ['images']
PLUGINS = ['neighbors']

View file

@ -43,19 +43,36 @@
<div id="sidebar"> <div id="sidebar">
<!-- Logo --> <!-- Logo -->
<h1 id="logo"><a href="/">{{ SITENAME }}</a></h1> <h1 id="logo">
<a href="/">{{ SITENAME }}</a>
</h1>
{{ SITESUBTITLE }}
<!-- Text --> <!-- Text -->
<section class="box text-style1"> <section class="box text-style1">
<div class="inner"> <div class="inner"><ul>
<p> {% for text, url in HOSTS %}
<strong>Ut scelerisque nec sapien ut sollicitudin:</strong><br />{{SITESUBTITLE}} <li><a href="{{ url }}">{{ text }}</a></li>
</p> {% endfor %}
</div> </ul></div>
<div class="inner"><ul>
{% for text, url in SITES %}
<li><a href="{{ url }}">{{ text }}</a></li>
{% endfor %}
</ul></div>
<div class="inner"><ul>
{% for text, url in GIT %}
<li><a href="{{ url }}">{{ text }}</a></li>
{% endfor %}
</ul></div>
<div class="inner"><ul>
{% for text, url in SOCIAL %}
<li><a href="{{ url }}">{{ text }}</a></li>
{% endfor %}
</ul></div>
</section> </section>
<!-- Nav --> <!-- Nav -->
<nav id="nav"> <nav id="nav">
<ul> <ul>
<li><a href="#">Nam euismod dui</a></li> <li><a href="#">Nam euismod dui</a></li>
<li><a href="#">Integer eget eros</a></li> <li><a href="#">Integer eget eros</a></li>
<li><a href="#">Proin vehicula tortor</a></li> <li><a href="#">Proin vehicula tortor</a></li>
@ -79,23 +96,8 @@
</header> </header>
<ul> <ul>
<li><a class="icon fa-envelope" href="#"> eMail</a></li> <li><a class="icon fa-envelope" href="#"> eMail</a></li>
<li><a class="icon fa-twitter" href="#"> Twitter</a></li>
<li><a class="icon fa-facebook" href="#"> Facebook</a></li>
<li><a class="icon fa-github" href="#"> Github</a></li>
</ul> </ul>
</section> </section>
<!-- Copyright -->
<ul id="copyright">
<li>Proudly powered by <a href="http://getpelican.com/">Pelican</a>,
which takes great advantage of <a href="http://python.org">Python</a>.</li>
<li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
<li>Modified under a <a href="https://creativecommons.org/licenses/by/3.0/">CC:BY</a> license.</li>
</ul>
</div><!-- /#menu --> </div><!-- /#menu -->
{% block content %} {% block content %}
{% endblock %} {% endblock %}