Skip to content

Commit 0e27782

Browse files
committed
Add dojos
1 parent e974362 commit 0e27782

File tree

11 files changed

+102
-76
lines changed

11 files changed

+102
-76
lines changed

Gemfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ ruby RUBY_VERSION
1919
gem "github-pages", group: :jekyll_plugins
2020

2121
# If you have any plugins, put them here!
22-
# group :jekyll_plugins do
23-
# gem "jekyll-github-metadata", "~> 1.0"
24-
# end
22+
group :jekyll_plugins do
23+
#gem "jekyll-github-metadata", "~> 1.0"
24+
gem 'jekyll-sitemap'
25+
end

_config.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
# You can create any custom variable you would like, and they will be accessible
1515
# in the templates via {{ site.myvariable }}.
1616

17+
# Build settings
18+
markdown: kramdown
19+
1720
email: info@coderdojo.es
1821
baseurl: "" # the subpath of your site, e.g. /blog
1922
url: http://www.coderdojo.es # the base hostname & protocol for your site
@@ -41,9 +44,18 @@ defaults:
4144
path: _posts
4245
type: posts
4346

44-
# Build settings
45-
markdown: kramdown
46-
include: [ _dojos, _pages, _posts ]
47-
exclude: [ _site, README.md ]
47+
include:
48+
- _pages
49+
50+
exclude:
51+
- _site
52+
- Gemfile
53+
- Gemfile.lock
54+
- README.md
55+
4856
sass:
4957
style: compressed
58+
59+
# Plugins
60+
plugins:
61+
- jekyll-sitemap

_data/dojos.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
- Name: Bilbao
2+
Address:
3+
Place:
4+
Address:
5+
Logo: https://pbs.twimg.com/profile_images/3635429224/c6be378af398cc0c441199723e40c5a4_400x400.png
6+
Redes:
7+
Twitter: https://twitter.com/CoderdojoBio
8+
9+
- Name: Cáceres
10+
Address:
11+
Place:
12+
Address:
13+
Logo: https://pbs.twimg.com/profile_images/482632637173858305/plc0AwR6_400x400.jpeg
14+
Redes:
15+
Twitter: https://twitter.com/coderdojo_CC
16+
17+
- Name: León
18+
Address:
19+
Place:
20+
Address:
21+
Logo: https://pbs.twimg.com/profile_images/454220229359308800/-fOIWkuA_400x400.png
22+
Redes:
23+
Twitter: https://twitter.com/coderdojoleon
24+
25+
- Name: Madrid - Majadahonda
26+
Address:
27+
Place:
28+
Address:
29+
Logo: https://pbs.twimg.com/profile_images/656154225437642752/8ogHObML_400x400.png
30+
Redes:
31+
Twitter: https://twitter.com/coderdojomj
32+
33+
- Name: Madrid - Medialab-Prado
34+
Address:
35+
Place:
36+
Address:
37+
Logo: https://pbs.twimg.com/profile_images/378800000521863718/9132214a86bb47747ad2ba58d0c01c4a_400x400.jpeg
38+
Redes:
39+
Twitter: https://twitter.com/CoderDojoMLP
40+
41+
- Name: Murcia
42+
Address:
43+
Place: Centro Municipal 585m2 Espacio Joven
44+
Address: Plaza Toledo, s/n, 30009 Murcia
45+
Logo: https://pbs.twimg.com/profile_images/894476524518244352/vf_hYx32_400x400.jpg
46+
Redes:
47+
Twitter: https://twitter.com/CoderDojoMurcia
48+
49+
- Name: Valencia
50+
Address:
51+
Place:
52+
Address:
53+
Logo: https://pbs.twimg.com/profile_images/1028573001661460480/ikWDdLqG_400x400.jpg
54+
Redes:
55+
Twitter: https://twitter.com/CoderDojoVLC

_dojos/caceres/caceres.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

_dojos/caceres/caceres.png

-54.2 KB
Binary file not shown.

_dojos/leon/leon.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

_dojos/leon/leon.png

-54.2 KB
Binary file not shown.

_dojos/valencia/valencia.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

_dojos/valencia/valencia.png

-54.2 KB
Binary file not shown.

_pages/dojos.html

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,32 @@ <h1>Clubes gratuitos de programación (dojos) activos en España</h1>
1616

1717
<div class="block-description">
1818
<div class="container-fluid">
19+
1920
<div class="row">
20-
{% for dojo in site.dojos %}
21-
<div class="col-md-4">
22-
<div class="card mb-4 box-shadow">
23-
<a href="{{ site.baseurl }}{{ dojo.url }}" title="{{dojo.meta.title}}">
24-
<img class="card-img-top" src="{{ dojo.meta.image }}" alt="{{dojo.meta.title}}">
25-
</a>
26-
<div class="card-body">
27-
<p class="card-text">{{ dojo.meta.title }}</p>
28-
<div class="d-flex justify-content-between align-items-center">
29-
<small class="text-muted">{{ dojo.meta.description }}</small>
30-
</div>
31-
</div>
21+
{% for dojo in site.data.dojos %}
22+
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3 col-xl-2">
23+
<div class="dojo">
24+
<img width="150px" height="150px" class="img-fluid" src="{{dojo.Logo}}">
25+
<h5 class="title">{{dojo.Name}}</h5>
3226
</div>
27+
28+
<!--
29+
<p class="card-text">{{dojo.Address.Place}}</p>
30+
<p class="card-text">{{dojo.Address.Address}}</p>
31+
-->
32+
<!--
33+
{% for d in site.dojos %}
34+
{% if d.meta.title == dojo.Name %}
35+
<a href="{{ site.baseurl }}{{ d.url }}" title="{{d.meta.title}}">
36+
{{d.meta.title}}
37+
</a>
38+
{% endif %}
39+
{% endfor %}
40+
-->
3341
</div>
3442
{% endfor %}
3543
</div>
44+
3645
</div>
3746
</div>
3847

_sass/dojos.scss

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,14 @@
77

88
#dojos .dojo {
99
font-size: 1.3rem;
10-
position: relative;
1110
margin: 0 0 20px;
11+
text-align: center;
12+
img {
13+
margin: 0 0 20px;
14+
border-radius: 50%;
15+
}
1216
.title {
13-
position: absolute;
14-
bottom:0;
15-
left:0;
16-
right: 0;
17-
padding: 10px 20px;
18-
text-align: center;
19-
background: #000;
20-
color: #fff;
21-
a {
22-
color: #fff;
23-
}
17+
font-weight: bold;
2418
}
2519
}
2620

0 commit comments

Comments
 (0)