Skip to content

Commit 3be6480

Browse files
committed
Update category dojos
1 parent b7bd786 commit 3be6480

File tree

6 files changed

+55
-23
lines changed

6 files changed

+55
-23
lines changed

_config.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,12 @@
1515
# in the templates via {{ site.myvariable }}.
1616
title: CoderDojo España
1717
email: info@coderdojo.es
18-
description: > # this means to ignore newlines until "baseurl:"
19-
La red española de clubes de programación donde niños y jóvenes aprenden
20-
a programar y a investigar sobre tecnología de acuerdo a sus intereses,
21-
en un entorno informal y creativo, con el apoyo de mentores voluntarios.
2218
baseurl: "" # the subpath of your site, e.g. /blog
23-
url: "http://www.coderdojo.es" # the base hostname & protocol for your site
19+
url: http://www.coderdojo.es # the base hostname & protocol for your site
20+
21+
# SEO
22+
description: Asociación española de CoderDojo Foundation. Clubes gratuitos de programación para chicos y chicas de 7 a 17.
2423

25-
# Social
26-
githubUsername: CoderDojoES
27-
twitterUsername: CoderDojo_ES
2824

2925
# Build settings
3026
markdown: kramdown

_layouts/default.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
<link rel="shortcut icon" type="image/png" href="/images/favicon.ico">
88

99
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
10-
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
10+
<meta name="description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
11+
1112
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
1213

1314
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Lato:200,300,400" type="text/css">
@@ -67,8 +68,8 @@
6768
<div class="col-xs-12 col-md-4">
6869
<div class="text-right">
6970
<ul>
70-
<li><a target="_blank" href="https://twitter.com/{{ site.twitterUsername }}"><span class="fa fa-twitter"></span></a></li>
71-
<li><a target="_blank" href="https://github.com/{{ site.githubUsername }}"><span class="fa fa-github"></span></a></li>
71+
<li><a target="_blank" href="https://twitter.com/CoderDojo_es"><span class="fa fa-twitter"></span></a></li>
72+
<li><a target="_blank" href="https://github.com/CoderDojoES"><span class="fa fa-github"></span></a></li>
7273
</ul>
7374
</div>
7475
</div>

_layouts/post.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
22
layout: page
33
---
4-
{{ content }}
5-
4+
{{ content }}

_pages/dojos.html

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,21 @@
33
title: Dojos en España
44
permalink: /dojos/
55
---
6-
7-
{% for post in site.categories.dojos %}
8-
<article>
9-
<h1>
10-
<a href="{{ site.baseurl }}{{ post.url }}" title="{{post.title}}">{{post.title}}</a>
11-
</h1>
12-
</article>
13-
{% endfor %}
6+
<div id="dojos">
7+
{% for post in site.categories.dojos %}
8+
<div class="row">
9+
<div class="col-12 col-md-6">
10+
<article>
11+
<div class="image">
12+
<a href="{{ site.baseurl }}{{ post.url }}" title="{{post.title}}">
13+
<img class="img-fluid" src="{{ post.intro_image }}" alt="{{post.title}}" />
14+
</a>
15+
</div>
16+
<div class="title">
17+
<a href="{{ site.baseurl }}{{ post.url }}" title="{{post.title}}">{{post.title}}</a>
18+
</div>
19+
</article>
20+
</div>
21+
</div>
22+
{% endfor %}
23+
</div>

_posts/2015-09-01-coderdojo-murcia.markdown

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
---
22
layout: post
3-
title: CoderDojo Murcia
43
category: dojos
4+
5+
# Propiedades del artículo
6+
title: CoderDojo Murcia
7+
intro_image: /images/dojos/coderdojo-murcia.png
8+
description: Club gratuito de programación y robótica en Murcia organizado por la Asociación Programo Ergo Sum.
59
---
610

711
> CoderDojo Murcia es un Club gratuito de Programación y Robótica para niños, niñas y jóvenes de 10 a 17 años organizado por la Asociación Programo Ergo Sum y sus mentores voluntarios.
812
913
<p align="center">
10-
<img src="/images/dojos/coderdojo-murcia.png">
14+
<img src="{{ page.intro_image }}" title="{{ page.title }}">
1115
</p>
1216

1317
# ¿Quién puede participar?

_sass/base/_style.scss

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,28 @@
9191
text-align: center;
9292
}
9393
}
94+
#dojos {
95+
article {
96+
position: relative;
97+
margin: 0 0 20px;
98+
.image {
99+
100+
}
101+
.title {
102+
position: absolute;
103+
bottom:0;
104+
left:0;
105+
right: 0;
106+
padding: 10px 20px;
107+
text-align: center;
108+
background: #000;
109+
color: #fff;
110+
a {
111+
color: #fff;
112+
}
113+
}
114+
}
115+
}
94116
}
95117
@media only screen and (max-width:1199px){}
96118
@media only screen and (max-width:991px){

0 commit comments

Comments
 (0)