_includes/post.html in radios-comunitarias-jekyll-theme-0.3.0rc0 vs _includes/post.html in radios-comunitarias-jekyll-theme-0.3.0rc1
- old
+ new
@@ -3,15 +3,23 @@
ponemos en includes para poder reutilizarlo en la portada.
Ya tiene todos los metadatos para schema.org y microformats.org
{% endcomment %}
+{% assign license = site.posts | find: "layout", "license" %}
+{%- assign date_format = site.i18n.date.format | default: "%b %-d, %Y" -%}
+
{% assign page = include.page %}
<article class="h-entry mt-5" itemscope itemtype="http://schema.org/Article">
<header class="row no-gutters align-items-center mb-3">
<div class="p-name col-12 col-lg-9">
+
+ {% if page.activity.inReplyTo %}
+ {% include_cached activity_pub/replying_to.html activity=page.activity.inReplyTo %}
+ {% endif %}
+
<h1 class="p-name" itemprop="name headline">
{{ page.title | default: '' | escape }}
</h1>
{%- if page.description -%}
@@ -33,11 +41,10 @@
<div class="col-6 col-lg-3 text-right">
<time
class="dt-published"
datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
- {%- assign date_format = site.i18n.date | default: "%b %-d, %Y" -%}
{{ page.date | date: date_format }}
</time>
</div>
</header>
@@ -45,11 +52,11 @@
En responsive, el contenido pierde el espacio que lo separa de la
imagen a la derecha y las dos columnas invierten su orden, la imagen
se coloca encima.
{% endcomment %}
<div class="row no-gutters">
- <div class="col-12 col-md-6 e-content pt-3 pr-md-3 order-1 order-md-0" itemprop="articleBody">
+ <div class="col-12 col-md-6 e-content pt-3 pr-md-3 order-1 order-md-0 content" itemprop="articleBody">
{{ page.content }}
{% comment %}
TODO: Estaría bueno tener una forma de extraer las imágenes
y videos y mandarlas a la barra del costado no?
@@ -87,27 +94,31 @@
categories=page.categories
%}
</div>
</div>
- <footer>
+ <footer class="mt-5">
<a class="u-url" itemprop="url" href="{{ page.url }}" hidden>
- {{ site.url }}/{{ page.url }}
+ {{ page.url | absolute_url }}
</a>
{%- if page.uuid -%}
<span hidden itemprop="identifier">{{ page.uuid }}</span>
{%- endif -%}
- {%- if page.license.url -%}
+ {%- if license -%}
<p itemprop="license" itemtype="http://schema.org/CreativeWork">
- <a rel="license" itemprop="url" href="{{ page.license.url }}">
+ <a rel="license" itemprop="url" href="{{ license.url }}">
<span itemprop="articleBody">
- {{ page.license.description }}
+ {{ license.description }}
</span>
</a>
</p>
{%- endif -%}
+
+ {% if page.activity %}
+ {% include activity_pub/interactions.html activity=page.activity profile=site.actor %}
+ {% endif %}
{%- if page.tags %}
<span itemprop="keywords" hidden>{{ page.tags | join: ', ' }}</span>
{%- for tag in page.tags -%}
<span hidden class="h-category">{{ tag }}</span>