Skip to content

Commit

Permalink
Cambios agregados.
Browse files Browse the repository at this point in the history
  • Loading branch information
despinoUY committed Mar 29, 2020
1 parent f206100 commit 520be10
Show file tree
Hide file tree
Showing 6 changed files with 151 additions and 9 deletions.
4 changes: 2 additions & 2 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
<div class="container">
<h1>404</h1>

<p><strong>Page not found :(</strong></p>
<p>The requested page could not be found.</p>
<p><strong>Página no encontrada :(</strong></p>
<p>La página solicitada no fue encontrada</p>
</div>
12 changes: 6 additions & 6 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.

title: Solidaridad
email: your-email@example.com
title: Solidaridad.uy
email: uysolidaridad@gmail.com
description: >- # this means to ignore newlines until "baseurl:"
Write an awesome description for your new site here. You can edit this
line in _config.yml. It will appear in your document head meta (for
Google search results) and in your feed.xml site description.
Se trata de un proyecto en el que se recaban todas las iniciativas
solidarias que se han desarrollado de forma de combatir las consecuencias
de la pandemia del COVID-19 en Uruguay.
baseurl: "" # the subpath of your site, e.g. /blog
url: "" # the base hostname & protocol for your site, e.g. http://example.com
twitter_username: jekyllrb
Expand Down Expand Up @@ -55,7 +55,7 @@ plugins:
# - vendor/ruby/

collections:
organizacions:
organizaciones:
output: true
departamentos:
output: true
Expand Down
28 changes: 28 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

{% if (page.id or page.title != blank) and page.url != "/"%}
<title>{{site.title}} | {{page.title}}</title>
{% else %}
<title>{{site.title}}</title>
{% endif %}

<meta name="generator" content="Jekyll v3.8.5" />
{% if page.id %}
<meta property="og:title" content="{{site.title}} | {{page.title}}" />
{% else %}
<meta property="og:title" content="{{site.title}}" />
{% endif %}
<meta property="og:locale" content="es_UY" />
<meta name="description" content="{{site.description}}" />
<meta property="og:description" content="{{site.description}}" />
<link rel="canonical" href="{{page.url | absolute_url}}" />
<meta property="og:url" content="{{page.url | absolute_url}}" />
<meta property="og:site_name" content="{{site.title}}" />
<script type="application/ld+json">
{"@type":"WebSite","url":"{{page.url}}","name":"{{site.title}}","headline":"{{site.title}}","description":"{{site.description}}","@context":"https://schema.org"}</script>
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}"><link type="application/atom+xml" rel="alternate" href="{{ "feed.xml" | absolute_url }}" title="{{site.title}}" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css">
</head>
59 changes: 59 additions & 0 deletions _layouts/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
layout: default
---

<div class="home">
{%- if page.title -%}
<h1 class="page-heading">{{ page.title }}</h1>
{%- endif -%}

{{ content }}


{% if site.paginate %}
{% assign posts = paginator.organizaciones %}
{% else %}
{% assign posts = site.organizaciones %}
{% endif %}


{%- if posts.size > 0 -%}
<h2 class="post-list-heading">Todas las organizaciones</h2>
<ul class="post-list">
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
{%- for post in posts -%}
<li>
<span class="post-meta">{{ post.barrio }}, {{ post.departamento }}</span>
<h3>
<a class="post-link" href="{{ post.url | relative_url }}">
{{ post.title | escape }}
</a>
</h3>
{%- if site.show_excerpts -%}
{{ post.excerpt }}
{%- endif -%}
</li>
{%- endfor -%}
</ul>

{% if site.paginate %}
<div class="pager">
<ul class="pagination">
{%- if paginator.previous_page %}
<li><a href="{{ paginator.previous_page_path | relative_url }}" class="previous-page">{{ paginator.previous_page }}</a></li>
{%- else %}
<li><div class="pager-edge"></div></li>
{%- endif %}
<li><div class="current-page">{{ paginator.page }}</div></li>
{%- if paginator.next_page %}
<li><a href="{{ paginator.next_page_path | relative_url }}" class="next-page">{{ paginator.next_page }}</a></li>
{%- else %}
<li><div class="pager-edge"></div></li>
{%- endif %}
</ul>
</div>
{%- endif %}

{%- endif -%}

</div>
55 changes: 55 additions & 0 deletions _layouts/organizacion.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
layout: default
---
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
<header class="post-header">
<h1 class="post-title p-name" itemprop="name headline">
{{ page.title | escape }}
</h1>
</header>

<div class="post-content e-content" itemprop="articleBody">
<table>
<tbody>
<tr>
<td class="title">Actividad:</td>
<td>{{page.actividades}}</td>
</tr>
<tr>
<td class="title">Departamento:</td>
<td>{{page.departamento}}</td>
</tr>
<tr>
<td class="title">Barrio:</td>
<td>{{page.barrio}}</td>
</tr>
<tr>
<td class="title">Dirección:</td>
<td>{{page.direccion}}</td>
</tr>
<tr>
<td class="title">Teléfono:</td>
<td>{{page.telefono_contacto}}</td>
</tr>
<tr>
<td class="title">Necesidades:</td>
<td>{{page.necesidades}}</td>
</tr>
</tbody>
</table>
<div class="post-share-links">
<i>Compartí esta organización en:</i>
<div>
<span><a target="_blank" href="https://www.facebook.com/sharer.php?u={{site.url}}{{ page.url }}">
<i class="fab fa-facebook"></i>
</a></span>
<span><a target="_blank" href="https://twitter.com/intent/tweet?url={{site.url}}{{ page.url }}&text={{ page.title }}">
<i class="fab fa-twitter"></i>
</a></span>
<span><a target="_blank" href="https://wa.me/?text={{ page.title | url_encode }}%20{{site.url}}{{ page.url | url_encode }}">
<i class="fab fa-whatsapp"></i>
</a></span>
</div>
</div>
</div>
</article>
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ otros_contactos: "[email protected]"
horario: "10:00 a 12:00"
aclaraciones: "Esta es una olla de test"
cuenta_bancaria: "BROU 111111111111-00001"
---
---

0 comments on commit 520be10

Please sign in to comment.