diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..99ef33c --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/minimo"] + path = themes/minimo + url = https://git.abbiamoundominio.org/dan/minimo.git diff --git a/themes/minimo b/themes/minimo new file mode 160000 index 0000000..5638e7b --- /dev/null +++ b/themes/minimo @@ -0,0 +1 @@ +Subproject commit 5638e7ba4561733f84de542a7771f10ee6cee158 diff --git a/themes/minimo/static/css/style.css b/themes/minimo/static/css/style.css deleted file mode 100644 index 8bcc524..0000000 --- a/themes/minimo/static/css/style.css +++ /dev/null @@ -1,37 +0,0 @@ -body { - font-family: "Courier New", Courier, monospace - font-size: 100%; - background-color: #F4F4E8; - color: #333333; - min-width: 400px; - min-height: 200px; - margin: 2% 2%; - padding:0; - height:98%;; - margin-left: 33%; - margin-right: 33%; -} - -a:link { color: #003399; text-decoration: none; } -a:visited { color: #336699; text-decoration: none; } -a:hover { color: #003399; background: #ff8c19; text-decoration: none; } - -h1 a { color: inherit !important } -h2 a { color: inherit !important } -h3 a { color: inherit !important } -h4 a { color: inherit !important } -h5 a { color: inherit !important } -h6 a { color: inherit !important } - -#menu li { - display: inline; -} - -#post-list { - margin-bottom: 1em; - margin-top: 1em; -} - -pre { - margin: 2em 1em 2em 4em; -} diff --git a/themes/minimo/templates/archives.html b/themes/minimo/templates/archives.html deleted file mode 100644 index 7b9b10d..0000000 --- a/themes/minimo/templates/archives.html +++ /dev/null @@ -1,42 +0,0 @@ -{% extends "index.html" %} -{% block title %}Archivio {{ SITENAME }}{% endblock %} -{% block ogtitle %}Archivio {{ SITENAME }}{% endblock %} -{% block ogurl %}{{ SITEURL }}/archives.html{%endblock%} -{% block canonicalurl %}{{ SITEURL }}/archives.html{%endblock%} - -{% block content %} -
-
-

{% block content_title %}Archivio per data{% endblock %}

- - {% for article in dates %} - {% set this_year = article.date.strftime('%Y') %} - - {% if this_year != prev_year %} -
-
{{ this_year }}
-
- {% endif %} - {% if this_year != prev_year or this_month != prev_month %} -
-
{{ this_month }}
-
- {% endif %} -
- {% if this_month != prev_month or this_day != prev_day %} -
- {{ this_day }} -
- {% endif %} -
-
{{ article.title }} {{ article.category }}
-
-
- {% set prev_year = this_year %} - {% set prev_month = this_month %} - {% set prev_day = this_day %} - {% endfor %} -
-
-{% endblock %} - diff --git a/themes/minimo/templates/article.html b/themes/minimo/templates/article.html deleted file mode 100644 index 2055670..0000000 --- a/themes/minimo/templates/article.html +++ /dev/null @@ -1,28 +0,0 @@ -{% extends "base.html" %} - -{% block title %}{{ article.title|striptags }} | {{ SITENAME }}{% endblock %} -{% block ogtitle %}{{ article.title|striptags }}{% endblock %} -{% block ogurl %}{{ SITEURL }}/{{ article.url }}{%endblock%} -{% block ogtype %}article{%endblock%} -{% block canonicalurl %}{{ SITEURL }}/{{ article.url }}{%endblock%} - -{% block content %} - -
-
-
-
-

- {{ article.title}}

-
- -
- {% include 'article_infos.html' %} - {{ article.content }} -
- -
-
-
-{% endblock %} diff --git a/themes/minimo/templates/article_infos.html b/themes/minimo/templates/article_infos.html deleted file mode 100644 index 72d253b..0000000 --- a/themes/minimo/templates/article_infos.html +++ /dev/null @@ -1,25 +0,0 @@ - diff --git a/themes/minimo/templates/author.html b/themes/minimo/templates/author.html deleted file mode 100644 index e5db843..0000000 --- a/themes/minimo/templates/author.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends "index.html" %} -{% block title %}{{ SITENAME }} - {{ author }} | {{ SITENAME }}{% endblock %} -{% block ogtitle %}{{ SITENAME }} - {{ author }}{% endblock %} -{% block ogurl %}{{ SITEURL }}/{{ author.url }}{%endblock%} -{% block canonicalurl %}{{ SITEURL }}/{{ author.url }}{%endblock%} diff --git a/themes/minimo/templates/base.html b/themes/minimo/templates/base.html deleted file mode 100644 index b879117..0000000 --- a/themes/minimo/templates/base.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - {% block head %} - {% block title %}{{ SITENAME }}{% endblock title %} - - - {% if FEED_ALL_ATOM %} - - {% endif %} - {% if FEED_ALL_RSS %} - - {% endif %} - {% if FEED_ATOM %} - - {% endif %} - {% if FEED_RSS %} - - {% endif %} - {% if CATEGORY_FEED_ATOM and category %} - - {% endif %} - {% if CATEGORY_FEED_RSS and category %} - - {% endif %} - {% if TAG_FEED_ATOM and tag %} - - {% endif %} - {% if TAG_FEED_RSS and tag %} - - {% endif %} - {% endblock head %} - - - - - - {% block content %} - {% endblock %} - - - - - diff --git a/themes/minimo/templates/categories.html b/themes/minimo/templates/categories.html deleted file mode 100644 index 2ec2f33..0000000 --- a/themes/minimo/templates/categories.html +++ /dev/null @@ -1,19 +0,0 @@ -{% extends "index.html" %} -{% block title %}Categorie di {{ SITENAME }}{% endblock %} -{% block ogtitle %}Categorie di {{ SITENAME }}{% endblock %} -{% block ogurl %}{{ SITEURL }}/categories.html{%endblock%} -{% block canonicalurl %}{{ SITEURL }}/categories.html{%endblock%} - -{% block content %} -
-
-

{% block content_title %}Categorie {% endblock %}

- -
- {% for category, articles in categories %} -
{{ category }} ({{ articles|count }})
- {% endfor %} -
-
-
-{% endblock %} diff --git a/themes/minimo/templates/category.html b/themes/minimo/templates/category.html deleted file mode 100644 index d38824e..0000000 --- a/themes/minimo/templates/category.html +++ /dev/null @@ -1,6 +0,0 @@ -{% extends "archives.html" %} -{% block title %}{{ SITENAME }} - {{ category }}{% endblock %} -{% block content_title %} Ricerca per categoria: {{ category }}{% endblock %} -{% block ogtitle %}{{ SITENAME }} - {{ category }}{% endblock %} -{% block ogurl %}{{ SITEURL }}/{{ category.url }}{%endblock%} -{% block canonicalurl %}{{ SITEURL }}/{{ category.url }}{%endblock%} diff --git a/themes/minimo/templates/index.html b/themes/minimo/templates/index.html deleted file mode 100644 index d325ad1..0000000 --- a/themes/minimo/templates/index.html +++ /dev/null @@ -1,74 +0,0 @@ -{% extends "base.html" %} -{% block content_title %}{% endblock %} -{% block ogtitle %}{{ SITENAME }}{% endblock %} -{% block ogurl %}{{ SITEURL }}{%endblock%} -{% block canonicalurl %}{{ SITEURL }}{%endblock%} - -{% block content %} -
- {% if articles %} - {% for article in articles_page.object_list %} - {% if loop.length > 0 %} - {% if loop.first %} -
-
    - {% endif %} - - {% if loop.last %} -
- {% if loop.last and (articles_page.has_previous() - or not articles_page.has_previous() and loop.length > 1) %} - {% include 'pagination.html' %} - {% endif %} -
- {% endif %} - {% endif %} - {% endfor %} - {% else %} -
-

Pages

- {% for page in PAGES %} -
  • {{ page.title }}
  • - {% endfor %} -
    - {% endif %} -
    -{% endblock content %} - -{% if LINKS %} -
    -

    Links

    - -
    -{% endif %} -{% if TAG_CLOUD_STEPS %} -
    -

    Tags

    - -
    -{% endif %} - diff --git a/themes/minimo/templates/page.html b/themes/minimo/templates/page.html deleted file mode 100644 index 6ff8139..0000000 --- a/themes/minimo/templates/page.html +++ /dev/null @@ -1,15 +0,0 @@ -{% extends "base.html" %} -{% block title %}{{ page.title }} | {{ SITENAME }}{% endblock %} -{% block ogtitle %}{{ page.title|striptags }}{% endblock %} -{% block ogurl %}{{ SITEURL }}/{{ page.url }}{%endblock%}%} -{% block canonicalurl %}{{ SITEURL }}/{{ page.url }}{%endblock%} - -{% block content %} -
    -

    {{ page.title }}

    - {% import 'translations.html' as translations with context %} - {{ translations.translations_for(page) }} - {{ page.content }} -
    -{% endblock %} - diff --git a/themes/minimo/templates/tag.html b/themes/minimo/templates/tag.html deleted file mode 100644 index 293c64e..0000000 --- a/themes/minimo/templates/tag.html +++ /dev/null @@ -1,6 +0,0 @@ -{% extends "archives.html" %} -{% block title %}{{ SITENAME }} - {{ tag }} | {{ SITENAME }}{% endblock %} -{% block content_title %}Ricerca per tag: "{{ tag }}"{% endblock %} -{% block ogtitle %}{{ SITENAME }} - {{ tag }}{% endblock %} -{% block ogurl %}{{ SITEURL }}/{{ tag.url }}{%endblock%} -{% block canonicalurl %}{{ SITEURL }}/{{ tag.url }}{%endblock%} diff --git a/themes/minimo/templates/tags.html b/themes/minimo/templates/tags.html deleted file mode 100644 index b81ff60..0000000 --- a/themes/minimo/templates/tags.html +++ /dev/null @@ -1,19 +0,0 @@ -{% extends "index.html" %} -{% block title %}Tags in {{ SITENAME }}{% endblock %} -{% block ogtitle %}Tags in {{ SITENAME }}{% endblock %} -{% block ogurl %}{{ SITEURL }}/tags.html{%endblock%}%} -{% block canonicalurl %}{{ SITEURL }}/tags.html{%endblock%} - -{% block content %} -
    -
    -

    {% block content_title %}Tags{% endblock %}

    - -
    - {% for tag, articles in tags|sort %} -
    {{ tag }} ({{ articles|count }})
    - {% endfor %} -
    -
    -
    -{% endblock %} diff --git a/themes/minimo/templates/translations.html b/themes/minimo/templates/translations.html deleted file mode 100644 index 75ed375..0000000 --- a/themes/minimo/templates/translations.html +++ /dev/null @@ -1,10 +0,0 @@ -{% macro translations_for(article) %} -{% if article.translations %} -
    -Translations: - {% for translation in article.translations %} - {{ translation.lang }} - {% endfor %} -{% endif %} -{% endmacro %} -