-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
75 lines (55 loc) · 2.81 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
layout: default
---
<section class="blog-content spanish hidden">
{% for post in site.posts %}
{% if post.lang == 'es' %}
<div class="blog-content-post animated fadeInUp">
<a href="{{ post.url | prepend: site.baseurl }}"><div class="blog-content-post-image-container"><img src={{ post.image }} class="blog-content-post-image-container-img"/></div></a>
<h2 class="{{ post.category-title-slug }} {{ post.color-code }}">
<a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</h2>
<div class="{{ post.category-tag-slug }} {{ post.color-code }}">{{ post.category-tag }}</div>
<span class="blog-content-post-meta"><b>{% if post.autor %}By {{ post.autor }} - {% endif %}</b>{{ post.date | date: "%b %-d, %Y" }}</span>
<p class="blog-content-post-description">{{ post.description }}</p>
<span class="{{ post.category-link-slug }} {{ post.color-code }}">
<a href="{{ post.url | prepend: site.baseurl }}">Read more</a>
</span>
</div>
{% endif %}
{% endfor %}
</section>
<section class="blog-content english">
{% for post in site.posts %}
{% if post.lang == 'en' %}
<div class="blog-content-post animated fadeInUp">
<a href="{{ post.url | prepend: site.baseurl }}"><div class="blog-content-post-image-container"><img src={{ post.image }} class="blog-content-post-image-container-img"/></div></a>
<h2 class="{{ post.category-title-slug }} {{ post.color-code }}">
<a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</h2>
<div class="{{ post.category-tag-slug }} {{ post.color-code }}">{{ post.category-tag }}</div>
<span class="blog-content-post-meta"><b>{% if post.autor %}By {{ post.autor }} - {% endif %}</b>{{ post.date | date: "%b %-d, %Y" }}</span>
<p class="blog-content-post-description">{{ post.description }}</p>
<span class="{{ post.category-link-slug }} {{ post.color-code }}">
<a href="{{ post.url | prepend: site.baseurl }}">Read more</a>
</span>
</div>
{% endif %}
{% endfor %}
<script>
var $switcher = $('#switchLang');
var english;
$switcher.click(function(e) {
e.preventDefault();
if (english == true) {
$('a#switchLang').text("Spanish version");
english = false;
} else {
$('a#switchLang').text("English version");
english = true
}
$('.blog-content.spanish').toggleClass('hidden');
$('.blog-content.english').toggleClass('hidden');
});
</script>
</section>