Merge branch '2017-theme'

This commit is contained in:
uid 2020-10-21 13:04:46 +02:00
commit 8037234e4a
34 changed files with 11586 additions and 34 deletions

View File

@ -4,22 +4,22 @@ Slug: faq
Questa è la nostra pagina delle F.A.Q. Questa è la nostra pagina delle F.A.Q.
le Frequented Asked Questions, le Domande Poste di Frequente. le Frequented Asked Questions, le Domande Poste di Frequente.
**Cosa è Unit?** ## Cosa è Unit?
È un hacklab. È un hacklab.
**Perché il nome Unit?** ## Perché il nome Unit?
È il nome della [tupla](https://en.wikipedia.org/wiki/Tuple) È il nome della [tupla](https://en.wikipedia.org/wiki/Tuple)
vuota di [haskell](https://en.wikipedia.org/wiki/Haskell_(programming_language)). vuota di [haskell](https://en.wikipedia.org/wiki/Haskell_(programming_language)).
Qui [trovi delucidazioni sul logo](http://stackoverflow.com/questions/16892570/what-is-in-haskell-exactly). Qui [trovi delucidazioni sul logo](http://stackoverflow.com/questions/16892570/what-is-in-haskell-exactly).
**Cos'è un hackerspace?** ## Cos'è un hackerspace?
Guarda il video: [hackerspace design patterns](https://www.youtube.com/watch?v=zr76In2h0fE) by Mitch. Guarda il video: [hackerspace design patterns](https://www.youtube.com/watch?v=zr76In2h0fE) by Mitch.
Più sul come che sul cosa, qui ci sono delle [slide PDF](https://wiki.hackerspaces.org/images/8/8e/Hacker-Space-Design-Patterns.pdf). Più sul come che sul cosa, qui ci sono delle [slide PDF](https://wiki.hackerspaces.org/images/8/8e/Hacker-Space-Design-Patterns.pdf).
**Cos'è un hacklab?** ## Cos'è un hacklab?
È un hackerspace in movimento. Un hacklab è un laboratorio autogestito di È un hackerspace in movimento. Un hacklab è un laboratorio autogestito di
sperimentazione tecnica e politica, le nostre attività comprendono corsi sperimentazione tecnica e politica, le nostre attività comprendono corsi
@ -28,7 +28,7 @@ della privacy sotto forma di incontri e convegni. Ci occupiamo non solo della
tecnica, ma anche di politica in quanto la tecnologia non è neutra. Abbiamo un tecnica, ma anche di politica in quanto la tecnologia non è neutra. Abbiamo un
[manifesto]({filename}/pages/manifesto.md). [manifesto]({filename}/pages/manifesto.md).
**Chi è un hacker?** ## Chi è un hacker?
Colei, colui o colacaso che gode dello spirito dell'intelligenza giocosa, è Colei, colui o colacaso che gode dello spirito dell'intelligenza giocosa, è
curiosa, non ha paura di sporcarsi le mani per imparare, condivide le sue curiosa, non ha paura di sporcarsi le mani per imparare, condivide le sue
@ -38,24 +38,23 @@ competenza. Ad esempio [Hackmeeting](https://www.hackmeeting.org) definisce
hacker:*"chi vuole gestirsi la vita come preferisce e sa s/battersi per hacker:*"chi vuole gestirsi la vita come preferisce e sa s/battersi per
farlo. Anche se non ha mai visto un computer in vita sua."* farlo. Anche se non ha mai visto un computer in vita sua."*
**Come posso seguire da lontano le vostre attività?** ## Come posso seguire da lontano le vostre attività?
Abbiamo una newsletter aperiodica cui [ci si può iscrivere da questa pagina](https://noise.autistici.org/mailman/listinfo/unit-news). Abbiamo una newsletter aperiodica cui [ci si può iscrivere da questa pagina](https://noise.autistici.org/mailman/listinfo/unit-news).
Abbiamo anche un [generatore di feed RSS](https://unit.abbiamoundominio.org/feed.xml) Abbiamo anche un [generatore di feed RSS](https://unit.abbiamoundominio.org/feed.xml)
che permette di seguirci senza registrazioni. che permette di seguirci senza registrazioni.
**Come posso contattarvi?** ## Come posso contattarvi?
Qui trovi la [pagina dei contatti]({filename}/pages/contatti.md). Qui trovi la [pagina dei contatti]({filename}/pages/contatti.md).
Puoi mandarci una mail a `unit [at] paranoici [dot] org` o join sul Puoi mandarci una mail a `unit [at] paranoici [dot] org` o join sul
network IRC Autistici/Inventati il canale `#unit`. network IRC Autistici/Inventati il canale `#unit`.
**Come posso incontrarvi e partecipare?** ## Come posso incontrarvi e partecipare?
Chiedi a chi ti ha mandato a questo sito di accompagnarti al prossimo incontro. Chiedi a chi ti ha mandato a questo sito di accompagnarti al prossimo incontro.
**Non voglio incontrarvi, non voglio contattarvi e neanche seguirvi. Voglio solo ## Non voglio incontrarvi, non voglio contattarvi e neanche seguirvi. Voglio solo delle risorse su che software usare.
delle risorse su che software usare.**
Ne trovi [qui](https://prism-break.org/it/). Ne trovi [qui](https://prism-break.org/it/).

View File

@ -2,23 +2,13 @@ Title: Manifesto
Slug: manifesto Slug: manifesto
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ----[ 1 ]
__ _ _ _ _ __
/ _| | | | |_____|_| |_ |_ \
| | | | | | _ | | _| | |
| |_ | |_| | | | | | |_ _| |
\__| |_____|_| |_|_|___| |__/
| manifesto |
----[ 1 ]----------------------------------------------------------------------
Noi unitariani veniamo relativamente in pace. Noi unitariani veniamo relativamente in pace.
Siamo multigenere e multiforma. Siamo multigenere e multiforma.
Condividiamo l'idea di condividere la condivisione con di voi. Condividiamo l'idea di condividere la condivisione con di voi.
----[ 1.1 ]-------------------------------------------------------------------- ----[ 1.1 ]
Pensiamo che la tecnologia non sia neutra, che Internet possa diventare anche Pensiamo che la tecnologia non sia neutra, che Internet possa diventare anche
un formidabile strumento di oppressione, che l'informazione e il software un formidabile strumento di oppressione, che l'informazione e il software
@ -36,7 +26,7 @@ Siamo mossi dal desiderio, non crediamo ai confini.
Ci aggreghiamo per affinita', prendiamo decisioni con il metodo del consenso, Ci aggreghiamo per affinita', prendiamo decisioni con il metodo del consenso,
il nostro spazio e' una Zona Autonoma, condivideremo saperi senza fondare poteri. il nostro spazio e' una Zona Autonoma, condivideremo saperi senza fondare poteri.
----[ 1.2 ]-------------------------------------------------------------------- ----[ 1.2 ]
Noi abbiamo sempre nutrito il sogno di una cosa, Noi abbiamo sempre nutrito il sogno di una cosa,
ma oggi abbiamo scelto di diventare coscienti. ma oggi abbiamo scelto di diventare coscienti.
@ -44,9 +34,6 @@ ma oggi abbiamo scelto di diventare coscienti.
Non vogliamo tutto e subito e non abbiamo fretta, Non vogliamo tutto e subito e non abbiamo fretta,
ma aspettiamo una risposta per domani mattina. ma aspettiamo una risposta per domani mattina.
----[ 2 - Domande ]------------------------------------------------------------ ----[ 2 - Domande ]
Hai delle domande? E [noi abbiamo delle FAQ:]({filename}/pages/faq.md)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Hai delle domande? E [noi abbiamo delle FAQ]({filename}/pages/faq.md)

View File

@ -64,7 +64,7 @@ MARKDOWN = {
WITH_FUTURE_DATES = False WITH_FUTURE_DATES = False
THEME = 'themes/minimunit' THEME = 'themes/2017'
SLUGIFY_SOURCE = 'title' SLUGIFY_SOURCE = 'title'
PAGE_URL = '{slug}/index.html' PAGE_URL = '{slug}/index.html'
@ -81,9 +81,9 @@ DISPLAY_CATEGORIES_ON_MENU = False
DELETE_OUTPUT_DIRECTORY = True DELETE_OUTPUT_DIRECTORY = True
MENUITEMS = (('HOME |', '/index.html'), MENUITEMS = (('HOME', '/index.html'),
('NEWS |', '/articles.html'), ('NEWS', '/articles.html'),
('CATEGORIE |', '/categories.html'), ('CATEGORIE', '/categories.html'),
('TAG |', '/tags.html'), ('TAG', '/tags.html'),
('CONTATTI |', '/contatti'), ('CONTATTI', '/contatti'),
('RSS', '/feed.xml'),) ('RSS', '/feed.xml'),)

View File

@ -0,0 +1,185 @@
@import url('../fonts/fantastique-sans/stylesheet.css');
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* GENERAL *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
html {
box-sizing: border-box;
font-family: 'Fantasque Sans Mono', monospace;
text-transform: lowercase;
}
*, *:before, *:after {
box-sizing: inherit;
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* PAGE *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
body {
width: 100%;
padding: 2rem 1rem;
}
@media (min-width: 426px) {
body {
width: 40vw;
margin: 2rem auto;
padding: 0;
}
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* TEXT *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
h1 {
font-size: 2rem;
}
h2 {
margin-top: 1.5rem;
margin-bottom: 0;
}
p, li {
font-size: 1.2rem;
}
a {
text-decoration: none;
color: #378ab4;
}
a:hover {
font-weight: bold;
background-color: #378ab4;
color: #ffffff;
}
h1 a:hover {
font-weight: bold;
background-color: #000000;
}
h1 a {
color: #000000;
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* HEADER *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
header {
width: 100%;
margin: 2rem auto 2rem auto;
}
.sitebanner img,
.sitebanner h1 {
display: inline-block;
vertical-align: middle;
font-size: 4rem;
margin: 0;
}
.sitebanner h1 a {
text-decoration: none;
color: #000000;
background-color: transparent;
}
.sitebanner > img {
width: 4rem;
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* NAVBAR *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
nav {
margin-bottom: 2rem;
}
nav > ul {
display: block;
margin: 0;
padding: 0;
list-style: none;
}
nav > ul > li {
display: inline-block;
margin-right: 0.8rem;
color: #378ab4;
}
nav > ul > li:before {
content: "+";
margin-right: 0.3rem;
color: #000000;
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* SECTION *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
section {
width: 100%;
margin: 2rem auto;
}
section:last-child {
margin-bottom: 0;
}
section > p {
margin-top: 0.5rem;
margin-bottom: 0.5rem;
}
section > p > span {
padding: 0.1rem 0;
background: #000000;
box-shadow: 0 0 0 #000000, 0 0 0 #000000;
color: #ffffff;
}
section > p:first-child > span {
background: #378ab4;
box-shadow: 0 0 0 #378ab4, 0 0 0 #378ab4;
}
section > img {
width: 100%;
height: auto;
}
.sitebanner {
position: relative;
top: 20px;
}
.siteimage {
float: left;
width: 120px;
}
#menu li {
display: inline;
}
#post-list {
margin-bottom: 1em;
margin-top: 1em;
}
#banner {
height: 85px;
}

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 309 KiB

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 385 KiB

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 349 KiB

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 316 KiB

View File

@ -0,0 +1,93 @@
Copyright (c) 2013-2017, Jany Belluz (jany.belluz@hotmail.fr)
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

View File

@ -0,0 +1,44 @@
@font-face {
font-family: 'Fantasque Sans Mono';
src: url('FantasqueSansMono-Italic.eot'); /* IE 9 Compatibility Mode */
src: url('FantasqueSansMono-Italic.eot?#iefix') format('embedded-opentype'), /* IE < 9 */
url('FantasqueSansMono-Italic.woff2') format('woff2'),
url('FantasqueSansMono-Italic.woff') format('woff'), /* Firefox >= 3.6, any other modern browser */
url('FantasqueSansMono-Italic.ttf') format('truetype'), /* Safari, Android, iOS */
url('FantasqueSansMono-Italic.svg#FantasqueSansMono-Italic') format('svg'); /* Chrome < 4, Legacy iOS */
font-weight: 400;
font-style: italic;
}
@font-face {
font-family: 'Fantasque Sans Mono';
src: url('FantasqueSansMono-Regular.eot'); /* IE 9 Compatibility Mode */
src: url('FantasqueSansMono-Regular.eot?#iefix') format('embedded-opentype'), /* IE < 9 */
url('FantasqueSansMono-Regular.woff2') format('woff2'),
url('FantasqueSansMono-Regular.woff') format('woff'), /* Firefox >= 3.6, any other modern browser */
url('FantasqueSansMono-Regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('FantasqueSansMono-Regular.svg#FantasqueSansMono-Regular') format('svg'); /* Chrome < 4, Legacy iOS */
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: 'Fantasque Sans Mono';
src: url('FantasqueSansMono-BoldItalic.eot'); /* IE 9 Compatibility Mode */
src: url('FantasqueSansMono-BoldItalic.eot?#iefix') format('embedded-opentype'), /* IE < 9 */
url('FantasqueSansMono-BoldItalic.woff2') format('woff2'),
url('FantasqueSansMono-BoldItalic.woff') format('woff'), /* Firefox >= 3.6, any other modern browser */
url('FantasqueSansMono-BoldItalic.ttf') format('truetype'), /* Safari, Android, iOS */
url('FantasqueSansMono-BoldItalic.svg#FantasqueSansMono-BoldItalic') format('svg'); /* Chrome < 4, Legacy iOS */
font-weight: 700;
font-style: italic;
}
@font-face {
font-family: 'Fantasque Sans Mono';
src: url('FantasqueSansMono-Bold.eot'); /* IE 9 Compatibility Mode */
src: url('FantasqueSansMono-Bold.eot?#iefix') format('embedded-opentype'), /* IE < 9 */
url('FantasqueSansMono-Bold.woff2') format('woff2'),
url('FantasqueSansMono-Bold.woff') format('woff'), /* Firefox >= 3.6, any other modern browser */
url('FantasqueSansMono-Bold.ttf') format('truetype'), /* Safari, Android, iOS */
url('FantasqueSansMono-Bold.svg#FantasqueSansMono-Bold') format('svg'); /* Chrome < 4, Legacy iOS */
font-weight: 700;
font-style: normal;
}

View File

@ -0,0 +1,42 @@
{% 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 %}
<div class="span9">
<section>
<h1>{% block content_title %}Archivio per data{% endblock %}</h1>
{% for article in dates %}
{% set this_year = article.date.strftime('%Y') %}
{% if this_year != prev_year %}
<div class="row-fluid archive_row">
<div class="span1 archive_year">{{ this_year }}</div>
</div>
{% endif %}
{% if this_year != prev_year or this_month != prev_month %}
<div class="row-fluid archive_row">
<div class="offset1 span1 archive_month">{{ this_month }}</div>
</div>
{% endif %}
<div class="row-fluid archive_row">
{% if this_month != prev_month or this_day != prev_day %}
<div class="offset1 span1 archive_day">
{{ this_day }}
</div>
{% endif %}
<div class="{% if this_year == prev_year and this_month == prev_month and this_day == prev_day %}offset2 {% endif %}span10">
<dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a> <small>{{ article.category }}</small></dd>
</div>
</div>
{% set prev_year = this_year %}
{% set prev_month = this_month %}
{% set prev_day = this_day %}
{% endfor %}
</section>
</div>
{% endblock %}

View File

@ -0,0 +1,28 @@
{% 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 %}
<div class="span10 offset1">
<section>
<article>
<header>
<h1 class="entry-title">
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
title="Permalink a {{ article.title|striptags }}">{{ article.title}}</a></h1>
</header>
<div class="entry-content">
{% include 'article_infos.html' %}
{{ article.content }}
</div>
</article>
</section>
</div>
{% endblock %}

View File

@ -0,0 +1,25 @@
<footer class="post-info">
{% if article.author %}
<address class="vcard author">
autore: <a class="url fn" href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a>
</address>
{% endif %}
data inserimento: {{ article.date.strftime('%d %B %Y') }}
<br>
categoria: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
<br>
{% if article.tags %}
tag: {% for tag in article.tags %}
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>
{% endfor %}
{% endif %}
{% import 'translations.html' as translations with context %}
{{ translations.translations_for(article) }}
</footer>

View File

@ -0,0 +1,5 @@
{% 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%}

View File

@ -0,0 +1,81 @@
<!DOCTYPE html>
<html lang="{{ DEFAULT_LANG }}">
<head>
{% block head %}
<title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/style.css" />
{% if FEED_ALL_ATOM %}
<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Full Atom Feed" />
{% endif %}
{% if FEED_ALL_RSS %}
<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Full RSS Feed" />
{% endif %}
{% if FEED_ATOM %}
<link href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" />
{% endif %}
{% if FEED_RSS %}
<link href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
{% endif %}
{% if CATEGORY_FEED_ATOM and category %}
<link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_ATOM|format(slug=category.slug) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Categories Atom Feed" />
{% endif %}
{% if CATEGORY_FEED_RSS and category %}
<link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_RSS|format(slug=category.slug) }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Categories RSS Feed" />
{% endif %}
{% if TAG_FEED_ATOM and tag %}
<link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_ATOM|format(slug=tag.slug) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Tags Atom Feed" />
{% endif %}
{% if TAG_FEED_RSS and tag %}
<link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_RSS|format(slug=tag.slug) }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Tags RSS Feed" />
{% endif %}
{% endblock head %}
<meta name="viewport" content="width=device-width,initial-scale=1.0">
</head>
<body id="index" class="home">
<header id="banner" class="body">
<!-- site image -->
{% if SITELOGO %}
<div class= "siteimage">
<img width="85" height="85" src={{ SITELOGO }}>
</div>
{% endif %}
<div class = "sitebanner">
<h1><a href="{{ SITEURL }}/">{{ SITENAME }} <strong>{{ SITESUBTITLE }}</strong></a></h1>
</div>
</header><!-- /#banner -->
<nav id="menu"><ul>
{% for title, link in MENUITEMS %}
<li><a href="{{ link }}">{{ title }}</a></li>
{% endfor %}
{% if DISPLAY_PAGES_ON_MENU %}
{% for p in pages %}
<li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
{% endfor %}
{% else %}
{% if DISPLAY_CATEGORIES_ON_MENU %}
{% for cat, null in categories %}
<li{% if cat == category %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
{% endfor %}
{% endif %}
{% endif %}
</ul></nav><!-- /#menu -->
{% block content %}
{% endblock %}
<footer id="contentinfo" class="body">
<hr>
<address id="about" class="vcard body">
<small>
Sito generato con
<a href="http://python.org">Python</a> e
<a href="http://getpelican.com/">Pelican</a>, qua trovi
<a href="https://git.abbiamoundominio.org/unit/website-pelican">il codice</a><br>
Se hai pensato che c'era un modo migliore, avevi ragione.
</small>
</address><!-- /#about -->
</footer><!-- /#contentinfo -->
</body>
</html>

View File

@ -0,0 +1,19 @@
{% 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 %}
<div class="span9">
<section>
<h1>{% block content_title %}Categorie {% endblock %}</h1>
<dl>
{% for category, articles in categories %}
<dd><a href="{{ SITEURL }}/{{ category.url }}">{{ category }} ({{ articles|count }})</a></dd>
{% endfor %}
</dl>
</section>
</div>
{% endblock %}

View File

@ -0,0 +1,6 @@
{% 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%}

View File

@ -0,0 +1,74 @@
{% extends "base.html" %}
{% block content_title %}{% endblock %}
{% block ogtitle %}{{ SITENAME }}{% endblock %}
{% block ogurl %}{{ SITEURL }}{%endblock%}
{% block canonicalurl %}{{ SITEURL }}{%endblock%}
{% block content %}
<div class="span9">
{% if articles %}
{% for article in articles_page.object_list %}
{% if loop.length > 0 %}
{% if loop.first %}
<section>
<ol id="posts-list" class="hfeed" start="{{ articles_paginator.per_page -1 }}">
{% endif %}
<article>
<header>
<h1 class="entry-title">
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink: {{ article.title|striptags }}">
{{ article.title }}
</a>
</h1>
</header>
<div class="entry-content">
{% include 'article_infos.html' %}
{{ article.summary }}
<p class="readmore">
<a class="btn btn-small btn-info" href="{{ SITEURL }}/{{ article.url }}">continua..</a>
</p>
</div>
<hr/>
</article>
{% if loop.last %}
</ol><!-- /#posts-list -->
{% if loop.last and (articles_page.has_previous()
or not articles_page.has_previous() and loop.length > 1) %}
{% include 'pagination.html' %}
{% endif %}
</section><!-- /#content -->
{% endif %}
{% endif %}
{% endfor %}
{% else %}
<section>
<h2>Pages</h2>
{% for page in PAGES %}
<li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
{% endfor %}
</section>
{% endif %}
</div>
{% endblock content %}
{% if LINKS %}
<div>
<h2>Links</h2>
<ul>
{% for name, link in LINKS %}
<li><a href="{{ link }}">{{ name }}</a></li>
{% endfor %}
</ul>
</div><!-- /.Links -->
{% endif %}
{% if TAG_CLOUD_STEPS %}
<div>
<h2>Tags</h2>
<ul id="cloud">
{% for tag in tag_cloud %}
<li class="tag-{{ tag.1 }}"><a href="{{ SITEURL }}/{{ tag.0.url }}">{{ tag.0 }}</a></li>
{% endfor %}
</ul>
</div>
{% endif %}<!-- /.Tags -->
</div>

View File

@ -0,0 +1,15 @@
{% 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 %}
<section >
<h1 class="entry-title">{{ page.title }}</h1>
{% import 'translations.html' as translations with context %}
{{ translations.translations_for(page) }}
{{ page.content }}
</section>
{% endblock %}

View File

@ -0,0 +1,6 @@
{% 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%}

View File

@ -0,0 +1,19 @@
{% 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 %}
<div class="span9">
<section>
<h1>{% block content_title %}Tags{% endblock %}</h1>
<dl>
{% for tag, articles in tags|sort %}
<dd><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }} ({{ articles|count }})</a></dd>
{% endfor %}
</dl>
</section>
</div>
{% endblock %}

View File

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