Commit e0469b1d authored by fauno's avatar fauno

sitio transportable

parent e33b0280
......@@ -11,8 +11,8 @@ title: Utopía Pirata
<div class="page-header">
<div class="media">
<a class="pull-left" href="/">
<img src="assets/images/logo_sin_nombre_negro.png"/>
<a class="pull-left" href="">
<img src="assets/images/logo_sin_nombre_negro.png" />
</a>
<div class="media-body">
<h1 class="media-heading">Utopía Pirata</h1>
......@@ -25,5 +25,5 @@ title: Utopía Pirata
<h1>Error 404</h1>
<h2>Lo que estás buscando no está más P(</h2>
<p><a href="/" class="btn btn-info btn-lg">Volver al principio</a></p>
<p><a href="" class="btn btn-info btn-lg">Volver al principio</a></p>
</section>
title: 'Utopía Pirata'
canonical: 'https://utopia.partidopirata.com.ar'
email: 'contacto@partidopirata.com.ar'
lang: es
markdown: pandoc
pandoc:
skip:
......@@ -66,4 +67,5 @@ torrent:
file: utopiapirata.torrent
collections:
- zines
zines:
output: true
<!DOCTYPE html>
<html lang="es" prefix="og: http://ogp.me">
<html lang="{{ site.lang }}" prefix="og: http://ogp.me">
<head>
<meta charset="utf-8" />
{% assign base = '' %}
{% assign depth = page.url | split: '/' %}
{% for dots in depth offset: 1 %}
{% assign base = base | append: '../' %}
{% endfor %}
<base href="{{ base }}" />
<meta charset="utf-8" />
<title>{{ page.title }}</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta property="og:title" content="{{ page.title }}"/>
<meta property="og:url" content="http://utopia.partidopirata.com.ar{{ page.url }}"/>
<meta property="og:locale" content="es_AR"/>
<meta property="og:site_name" content="Utopía Pirata"/>
<meta property="og:type" content="article"/>
<meta property="og:article:published_time" content="{{ page.date }}"/>
<meta property="og:article:author" content="{{ page.author }}"/>
<meta property="og:title" content="{{ page.title }}" />
<meta property="og:url" content="{{ site.canonical }}{{ page.url }}" />
<meta property="og:locale" content="{{ site.lang }}" />
<meta property="og:site_name" content="Utopía Pirata" />
<meta property="og:type" content="article" />
<meta property="og:article:published_time" content="{{ page.date }}" />
<meta property="og:article:author" content="{{ page.author }}" />
{% if page.cover %}
<meta property="og:image" content="http://utopia.partidopirata.com.ar/{{ page.cover }}"/>
<meta property="og:image" content="{{ site.canonical }}/{{ page.cover }}" />
{% else %}
<meta property="og:image" content="http://utopia.partidopirata.com.ar/assets/utopia_pirata_logo.png"/>
<meta property="og:image" content="{{ site.canonical }}/assets/utopia_pirata_logo.png" />
{% endif %}
<link rel="shortcut icon" type="image/png" href="favicon.png" />
<link type='text/css'
rel="stylesheet"
href="assets/css/bootstrap.min.css" />
<link type='text/css'
rel="stylesheet"
href="assets/fonts/stylesheet.css" />
......@@ -37,7 +39,7 @@
title="Utopía Pirata"
href="atom.xml" />
<link rel="related" href="/utopias.opds"
<link rel="related" href="utopias.opds"
type="application/atom+xml;profile=opds-catalog;kind=acquisition"
title="Catálogo OPDS" />
</head>
......
......@@ -4,7 +4,7 @@ layout: default
<article>
<header>
<h4><a href="/" alt='Inicio'>Utopía Pirata</a></h4>
<h4><a href="" alt='Inicio'>Utopía Pirata</a></h4>
<nav id="formats" class="pull-right">
<span class="glyphicon glyphicon-cloud-download"></span> Otros formatos
<ul class="list-inline">
......
......@@ -5,9 +5,9 @@ layout: null
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ site.title }}</title>
<link href="{{ site.canonical }}/atom.xml" rel="self"/>
<link href="{{ site.canonical }}/"/>
<link href="{{ site.canonical }}/{{ site.torrent.file }}" rel="torrent"/>
<link href="{{ site.canonical }}/atom.xml" rel="self" />
<link href="{{ site.canonical }}/" />
<link href="{{ site.canonical }}/{{ site.torrent.file }}" rel="torrent" />
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ site.canonical }}/</id>
<author>
......@@ -18,17 +18,17 @@ layout: null
{% for post in site.posts %}
<entry>
<title>{{ post.title }}</title>
<link href="{{ site.canonical }}{{ post.url }}"/>
<link href="{{ site.canonical }}{{ post.url }}" />
<updated>{{ post.date | date_to_xmlschema }}</updated>
<id>{{ site.canonical }}{{ post.id }}</id>
{% if post.license %}
<link rel="license" type="text/html" href="{{ post.license }}"/>
<link rel="license" type="text/html" href="{{ post.license }}" />
{% endif %}
<content type="html">{{ post.content | xml_escape }}</content>
{% for format in site.pandoc.outputs %}
{% capture extension %}{{ format | first }}{% endcapture %}
<link rel="enclosure" title="{{ post.title }}"
href="{{ site.canonical }}{{ post.url | remove:'.html' }}.{{ extension }}"/>
href="{{ site.canonical }}{{ post.url | remove:'.html' }}.{{ extension }}" />
{% endfor %}
</entry>
{% endfor %}
......
......@@ -11,8 +11,8 @@ title: Utopía Pirata
<div class="page-header">
<div class="media">
<a class="pull-left" href="/">
<img src="assets/images/logo_sin_nombre_negro.png"/>
<a class="pull-left" href="">
<img src="assets/images/logo_sin_nombre_negro.png" />
</a>
<div class="media-body">
<h1 class="media-heading">Utopía Pirata</h1>
......@@ -23,7 +23,7 @@ title: Utopía Pirata
<div id="carrousel" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
{% for post in site.posts %}
{% unless post.slider %}{% next %}{% endunless %}
{% unless post.slider %}{% continue %}{% endunless %}
<li data-target="#carrousel" data-slide-to="{{ forloop.index0 }}"></li>
{% endfor %}
</ol>
......@@ -31,9 +31,11 @@ title: Utopía Pirata
<div class="carousel-inner">
{% assign active = 'active' %}
{% for post in site.posts %}
{% unless post.slider %}{% next %}{% endunless %}
<div class="item{% if forloop.first %} active{% endif %}">
{% unless post.slider %}{% continue %}{% endunless %}
<div class="item {{ active }}">
{% assign active = '' %}
<img src="{{ post.slider }}" />
<div class="carousel-caption">
<h1><small><a href="{{ post.url }}">{{ post.title }}</a></small></h1>
......@@ -90,7 +92,7 @@ title: Utopía Pirata
{% for post in site.zines %}
<li class="media">
<h4 class="inline">
<a href="{{ post.url }}">{{ post.title }}</a>
<a href="{{ post.url }}.html">{{ post.title }}</a>
<small class="author">{{post.author}}</small>
</h4>
......@@ -111,8 +113,8 @@ title: Utopía Pirata
</section>
<footer>
<a href="/atom.xml">Feed Completo</a> |
<a href="/{{ site.torrent.file }}">Torrent</a> |
<a href="atom.xml">Feed Completo</a> |
<a href="{{ site.torrent.file }}">Torrent</a> |
<a href="https://0xacab.org/utopias-piratas/utopia.partidopirata.com.ar">Código fuente</a>
</footer>
......
......@@ -52,4 +52,37 @@ layout: null
<dc:issued>{{ post.date | date: '%Y-%m-%d' }}</dc:issued>
</entry>
{% endfor %}
{% for post in site.zines %}
<entry>
<id>{{ site.canonical }}{{ post.url }}</id>
<link rel="http://opds-spec.org/acquisition"
type="application/epub+zip"
href="{{ site.canonical }}{{ post.url | remove: '.html' }}.epub"/>
{% if post.cover %}
<link rel="http://opds-spec.org/image"
type="image/png"
href="{{ site.canonical }}/{{ post.cover }}" />
<link rel="http://opds-spec.org/image/thumbnail"
type="image/png"
href="{{ site.canonical }}/{{ post.cover }}" />
{% endif %}
{% if post.license %}
<link rel="license"
type="text/html"
href="{{ post.license }}"/>
{% endif %}
<author>
<name>{{ post.author }}</name>
</author>
<dc:language>es</dc:language>
<title>{{ post.title }}</title>
<updated>{{ post.date | date_to_xmlschema }}</updated>
<dc:date>{{ post.date | date_to_xmlschema }}</dc:date>
<dcterms:date>{{ post.date | date_to_xmlschema }}</dcterms:date>
<dc:issued>{{ post.date | date: '%Y-%m-%d' }}</dc:issued>
</entry>
{% endfor %}
</feed>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment