Browse Source

added minimo theme as submodule

putro 3 months ago
parent
commit
592cea3c48

+ 3
- 0
.gitmodules View File

@@ -0,0 +1,3 @@
1
+[submodule "themes/minimo"]
2
+	path = themes/minimo
3
+	url = https://git.abbiamoundominio.org/dan/minimo.git

+ 1
- 0
themes/minimo

@@ -0,0 +1 @@
1
+Subproject commit 5638e7ba4561733f84de542a7771f10ee6cee158

+ 0
- 37
themes/minimo/static/css/style.css View File

@@ -1,37 +0,0 @@
1
-body {
2
-    font-family: "Courier New", Courier, monospace
3
-    font-size: 100%;
4
-    background-color: #F4F4E8;
5
-    color: #333333;
6
-    min-width: 400px;
7
-    min-height: 200px;
8
-    margin: 2% 2%;
9
-    padding:0;
10
-    height:98%;;
11
-    margin-left: 33%;
12
-    margin-right: 33%;
13
-}
14
-
15
-a:link { color: #003399; text-decoration: none; }
16
-a:visited { color: #336699; text-decoration: none; }
17
-a:hover { color: #003399; background: #ff8c19; text-decoration: none; }
18
-
19
-h1 a { color: inherit !important }
20
-h2 a { color: inherit !important }
21
-h3 a { color: inherit !important }
22
-h4 a { color: inherit !important }
23
-h5 a { color: inherit !important }
24
-h6 a { color: inherit !important }
25
-
26
-#menu li {
27
-    display: inline;
28
-}
29
-
30
-#post-list {
31
-    margin-bottom: 1em;
32
-    margin-top: 1em;
33
-}
34
-
35
-pre {
36
-    margin: 2em 1em 2em 4em;
37
-}

+ 0
- 42
themes/minimo/templates/archives.html View File

@@ -1,42 +0,0 @@
1
-{% extends "index.html" %}
2
-{% block title %}Archivio {{ SITENAME }}{% endblock %}
3
-{% block ogtitle %}Archivio {{ SITENAME }}{% endblock %}
4
-{% block ogurl %}{{ SITEURL }}/archives.html{%endblock%}
5
-{% block canonicalurl %}{{ SITEURL }}/archives.html{%endblock%}
6
-
7
-{% block content %}
8
-<div class="span9">
9
-  <section>
10
-    <h1>{% block content_title %}Archivio per data{% endblock %}</h1>
11
-
12
-    {% for article in dates %}
13
-    {% set this_year = article.date.strftime('%Y') %}
14
-
15
-    {% if this_year != prev_year %}
16
-    <div class="row-fluid archive_row">
17
-      <div class="span1 archive_year">{{ this_year }}</div>
18
-    </div>
19
-    {% endif %}
20
-    {% if this_year != prev_year or this_month != prev_month %}
21
-    <div class="row-fluid archive_row">
22
-      <div class="offset1 span1 archive_month">{{ this_month }}</div>
23
-    </div>
24
-    {% endif %}
25
-    <div class="row-fluid archive_row">
26
-      {% if this_month != prev_month or this_day != prev_day %}
27
-      <div class="offset1 span1 archive_day">
28
-        {{ this_day }}
29
-      </div>
30
-      {% endif %}
31
-      <div class="{% if this_year == prev_year and this_month == prev_month and this_day == prev_day %}offset2 {% endif %}span10">
32
-        <dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a> <small>{{ article.category }}</small></dd>
33
-      </div>
34
-    </div>
35
-    {% set prev_year = this_year %}
36
-    {% set prev_month = this_month %}
37
-    {% set prev_day = this_day %}
38
-    {% endfor %}
39
-  </section>
40
-</div>
41
-{% endblock %}
42
-

+ 0
- 28
themes/minimo/templates/article.html View File

@@ -1,28 +0,0 @@
1
-{% extends "base.html" %}
2
-
3
-{% block title %}{{ article.title|striptags }} | {{ SITENAME }}{% endblock %}
4
-{% block ogtitle %}{{ article.title|striptags }}{% endblock %}
5
-{% block ogurl %}{{ SITEURL }}/{{ article.url }}{%endblock%}
6
-{% block ogtype %}article{%endblock%}
7
-{% block canonicalurl %}{{ SITEURL }}/{{ article.url }}{%endblock%}
8
-
9
-{% block content %}
10
-
11
-<div class="span10 offset1">
12
-  <section>
13
-    <article>
14
-      <header>
15
-        <h1 class="entry-title">
16
-          <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
17
-             title="Permalink a {{ article.title|striptags }}">{{ article.title}}</a></h1>
18
-      </header>
19
-
20
-      <div class="entry-content">
21
-        {% include 'article_infos.html' %}
22
-        {{ article.content }}
23
-      </div>
24
-
25
-    </article>
26
-  </section>
27
-</div>
28
-{% endblock %}

+ 0
- 25
themes/minimo/templates/article_infos.html View File

@@ -1,25 +0,0 @@
1
-<footer class="post-info">
2
-  {% if article.author %}
3
-  <address class="vcard author">
4
-    <a class="url fn" href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a>
5
-  </address>
6
-  {% endif %}
7
-
8
-  data: {{ article.date.strftime('%d %B %Y') }}
9
-
10
-  <br>
11
-
12
-  categoria: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
13
-
14
-  <br>
15
-
16
-  {% if article.tags %}
17
-  tag: {% for tag in article.tags %}
18
-  <a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>
19
-  {% endfor %}
20
-  {% endif %}
21
-
22
-    {% import 'translations.html' as translations with context %}
23
-    {{ translations.translations_for(article) }}
24
-
25
-</footer>

+ 0
- 5
themes/minimo/templates/author.html View File

@@ -1,5 +0,0 @@
1
-{% extends "index.html" %}
2
-{% block title %}{{ SITENAME }} - {{ author }} | {{ SITENAME }}{% endblock %}
3
-{% block ogtitle %}{{ SITENAME }} - {{ author }}{% endblock %}
4
-{% block ogurl %}{{ SITEURL }}/{{ author.url }}{%endblock%}
5
-{% block canonicalurl %}{{ SITEURL }}/{{ author.url }}{%endblock%}

+ 0
- 72
themes/minimo/templates/base.html View File

@@ -1,72 +0,0 @@
1
-<!DOCTYPE html>
2
-<html lang="{{ DEFAULT_LANG }}">
3
-<head>
4
-  {% block head %}
5
-  <title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
6
-  <meta charset="utf-8" />
7
-  <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/style.css" />
8
-  {% if FEED_ALL_ATOM %}
9
-  <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Full Atom Feed" />
10
-  {% endif %}
11
-  {% if FEED_ALL_RSS %}
12
-  <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Full RSS Feed" />
13
-  {% endif %}
14
-  {% if FEED_ATOM %}
15
-  <link href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" />
16
-  {% endif %}
17
-  {% if FEED_RSS %}
18
-  <link href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
19
-  {% endif %}
20
-  {% if CATEGORY_FEED_ATOM and category %}
21
-  <link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_ATOM|format(category.slug) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Categories Atom Feed" />
22
-  {% endif %}
23
-  {% if CATEGORY_FEED_RSS and category %}
24
-  <link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_RSS|format(category.slug) }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Categories RSS Feed" />
25
-  {% endif %}
26
-  {% if TAG_FEED_ATOM and tag %}
27
-  <link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_ATOM|format(tag.slug) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Tags Atom Feed" />
28
-  {% endif %}
29
-  {% if TAG_FEED_RSS and tag %}
30
-  <link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_RSS|format(tag.slug) }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Tags RSS Feed" />
31
-  {% endif %}
32
-  {% endblock head %}
33
-</head>
34
-
35
-<body id="index" class="home">
36
-  <header id="banner" class="body">
37
-    <h1><a href="{{ SITEURL }}/">{{ SITENAME }} <strong>{{ SITESUBTITLE }}</strong></a></h1>
38
-    <img src="{{ SITELOGO }}" alt="logo" width="85" height="85" border="0">
39
-  </header><!-- /#banner -->
40
-  <nav id="menu"><ul>
41
-      {% for title, link in MENUITEMS %}
42
-      <li><a href="{{ link }}">{{ title }}</a></li>
43
-      {% endfor %}
44
-      {% if DISPLAY_PAGES_ON_MENU %}
45
-      {% for p in pages %}
46
-      <li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
47
-      {% endfor %}
48
-      {% else %}
49
-      {% if DISPLAY_CATEGORIES_ON_MENU %}
50
-      {% for cat, null in categories %}
51
-      <li{% if cat == category %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
52
-      {% endfor %}
53
-      {% endif %}
54
-      {% endif %}
55
-  </ul></nav><!-- /#menu -->
56
-  {% block content %}
57
-  {% endblock %}
58
-
59
-  <footer id="contentinfo" class="body">
60
-    <hr>
61
-    <address id="about" class="vcard body">
62
-      <small>
63
-        unit hacklab 2019 - Alimentato da
64
-        <a href="http://python.org">Python</a> e
65
-        <a href="http://getpelican.com/">Pelican</a>, tema 
66
-        <a href="https://git.abbiamoundominio.org/dan/minimo">minimo</a> 
67
-      </small>
68
-    </address><!-- /#about -->
69
-  </footer><!-- /#contentinfo -->
70
-
71
-</body>
72
-</html>

+ 0
- 19
themes/minimo/templates/categories.html View File

@@ -1,19 +0,0 @@
1
-{% extends "index.html" %}
2
-{% block title %}Categorie di {{ SITENAME }}{% endblock %}
3
-{% block ogtitle %}Categorie di {{ SITENAME }}{% endblock %}
4
-{% block ogurl %}{{ SITEURL }}/categories.html{%endblock%}
5
-{% block canonicalurl %}{{ SITEURL }}/categories.html{%endblock%}
6
-
7
-{% block content %}
8
-<div class="span9">
9
-  <section>
10
-    <h1>{% block content_title %}Categorie {% endblock %}</h1>
11
-
12
-    <dl>
13
-      {% for category, articles in categories %}
14
-      <dd><a href="{{ SITEURL }}/{{ category.url }}">{{ category }} ({{ articles|count }})</a></dd>
15
-      {% endfor %}
16
-    </dl>
17
-  </section>
18
-</div>
19
-{% endblock %}

+ 0
- 6
themes/minimo/templates/category.html View File

@@ -1,6 +0,0 @@
1
-{% extends "archives.html" %}
2
-{% block title %}{{ SITENAME }} - {{ category }}{% endblock %}
3
-{% block content_title %} Ricerca per categoria: {{ category }}{% endblock %}
4
-{% block ogtitle %}{{ SITENAME }} - {{ category }}{% endblock %}
5
-{% block ogurl %}{{ SITEURL }}/{{ category.url }}{%endblock%}
6
-{% block canonicalurl %}{{ SITEURL }}/{{ category.url }}{%endblock%}

+ 0
- 74
themes/minimo/templates/index.html View File

@@ -1,74 +0,0 @@
1
-{% extends "base.html" %}
2
-{% block content_title %}{% endblock %}
3
-{% block ogtitle %}{{ SITENAME }}{% endblock %}
4
-{% block ogurl %}{{ SITEURL }}{%endblock%}
5
-{% block canonicalurl %}{{ SITEURL }}{%endblock%}
6
-
7
-{% block content %}
8
-<div class="span9">
9
-  {% if articles %}
10
-  {% for article in articles_page.object_list %}
11
-  {% if loop.length > 0 %}
12
-  {% if loop.first %}
13
-  <section>
14
-    <ol id="posts-list" class="hfeed" start="{{ articles_paginator.per_page -1 }}">
15
-      {% endif %}
16
-      <article>
17
-        <header>
18
-          <h1 class="entry-title">
19
-            <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink: {{ article.title|striptags }}">
20
-              {{ article.title }}
21
-            </a>
22
-          </h1>
23
-        </header>
24
-        <div class="entry-content">
25
-          {% include 'article_infos.html' %}
26
-          {{ article.summary }}
27
-          <p class="readmore">
28
-            <a class="btn btn-small btn-info" href="{{ SITEURL }}/{{ article.url }}">continua..</a>
29
-          </p>
30
-        </div>
31
-        <hr/>
32
-      </article>
33
-      {% if loop.last %}
34
-    </ol><!-- /#posts-list -->
35
-    {% if loop.last and (articles_page.has_previous()
36
-    or not articles_page.has_previous() and loop.length > 1) %}
37
-    {% include 'pagination.html' %}
38
-    {% endif %}
39
-  </section><!-- /#content -->
40
-  {% endif %}
41
-  {% endif %}
42
-  {% endfor %}
43
-  {% else %}
44
-  <section>
45
-    <h2>Pages</h2>
46
-    {% for page in PAGES %}
47
-    <li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
48
-    {% endfor %}
49
-  </section>
50
-  {% endif %}
51
-</div>
52
-{% endblock content %}
53
-
54
-{% if LINKS %}
55
-<div>
56
-  <h2>Links</h2>
57
-  <ul>
58
-    {% for name, link in LINKS %}
59
-    <li><a href="{{ link }}">{{ name }}</a></li>
60
-    {% endfor %}
61
-  </ul>
62
-</div><!-- /.Links -->
63
-{% endif %}
64
-{% if TAG_CLOUD_STEPS %}
65
-<div>
66
-  <h2>Tags</h2>
67
-  <ul id="cloud">
68
-    {% for tag in tag_cloud %}
69
-    <li class="tag-{{ tag.1 }}"><a href="{{ SITEURL }}/{{ tag.0.url }}">{{ tag.0 }}</a></li>
70
-    {% endfor %}
71
-  </ul>
72
-</div>
73
-{% endif %}<!-- /.Tags -->
74
-</div>

+ 0
- 15
themes/minimo/templates/page.html View File

@@ -1,15 +0,0 @@
1
-{% extends "base.html" %}
2
-{% block title %}{{ page.title }} | {{ SITENAME }}{% endblock %}
3
-{% block ogtitle %}{{ page.title|striptags }}{% endblock %}
4
-{% block ogurl %}{{ SITEURL }}/{{ page.url }}{%endblock%}%}
5
-{% block canonicalurl %}{{ SITEURL }}/{{ page.url }}{%endblock%}
6
-
7
-{% block content %}        
8
-<section  >    
9
-    <h1 class="entry-title">{{ page.title }}</h1>
10
-    {% import 'translations.html' as translations with context %}
11
-    {{ translations.translations_for(page) }}
12
-    {{ page.content }}
13
-</section>
14
-{% endblock %}
15
-

+ 0
- 6
themes/minimo/templates/tag.html View File

@@ -1,6 +0,0 @@
1
-{% extends "archives.html" %}
2
-{% block title %}{{ SITENAME }} - {{ tag }} | {{ SITENAME }}{% endblock %}
3
-{% block content_title %}Ricerca per tag: "{{ tag }}"{% endblock %}
4
-{% block ogtitle %}{{ SITENAME }} - {{ tag }}{% endblock %}
5
-{% block ogurl %}{{ SITEURL }}/{{ tag.url }}{%endblock%}
6
-{% block canonicalurl %}{{ SITEURL }}/{{ tag.url }}{%endblock%}

+ 0
- 19
themes/minimo/templates/tags.html View File

@@ -1,19 +0,0 @@
1
-{% extends "index.html" %}
2
-{% block title %}Tags in {{ SITENAME }}{% endblock %}
3
-{% block ogtitle %}Tags in {{ SITENAME }}{% endblock %}
4
-{% block ogurl %}{{ SITEURL }}/tags.html{%endblock%}%}
5
-{% block canonicalurl %}{{ SITEURL }}/tags.html{%endblock%}
6
-
7
-{% block content %}
8
-<div class="span9">
9
-  <section>
10
-    <h1>{% block content_title %}Tags{% endblock %}</h1>
11
-
12
-    <dl>
13
-      {% for tag, articles in tags|sort %}
14
-      <dd><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }} ({{ articles|count }})</a></dd>
15
-      {% endfor %}
16
-    </dl>
17
-  </section>
18
-</div>
19
-{% endblock %}

+ 0
- 10
themes/minimo/templates/translations.html View File

@@ -1,10 +0,0 @@
1
-{% macro translations_for(article) %}
2
-{% if article.translations %}
3
-<br>
4
-Translations: 
5
-    {% for translation in article.translations %}
6
-        <a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
7
-    {% endfor %}
8
-{% endif %}
9
-{% endmacro %}
10
-

Loading…
Cancel
Save