alna-jekyll-theme 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +48 -0
- data/_includes/author.html +22 -0
- data/_includes/book-details.html +45 -0
- data/_includes/book.html +31 -0
- data/_includes/bookcase.html +25 -0
- data/_includes/date.html +22 -0
- data/_includes/disqus-comments.html +17 -0
- data/_includes/google-analytics.html +8 -0
- data/_includes/head.html +55 -0
- data/_includes/notebook.html +31 -0
- data/_includes/page-foot.html +27 -0
- data/_includes/page-head.html +10 -0
- data/_includes/portfolio.html +23 -0
- data/_includes/post-head.html +16 -0
- data/_includes/project.html +25 -0
- data/_includes/rating.html +30 -0
- data/_includes/see-more.html +9 -0
- data/_includes/site-nav.html +22 -0
- data/_includes/social-media.html +6 -0
- data/_layouts/default.html +28 -0
- data/_layouts/page.html +16 -0
- data/_layouts/post.html +26 -0
- data/_sass/components/_components.author.scss +35 -0
- data/_sass/components/_components.book-details.scss +46 -0
- data/_sass/components/_components.book.scss +43 -0
- data/_sass/components/_components.bookcase.scss +24 -0
- data/_sass/components/_components.buttons.scss +129 -0
- data/_sass/components/_components.date.scss +8 -0
- data/_sass/components/_components.icons.scss +80 -0
- data/_sass/components/_components.notebook.scss +30 -0
- data/_sass/components/_components.page-content.scss +25 -0
- data/_sass/components/_components.page-foot.scss +36 -0
- data/_sass/components/_components.page-head.scss +9 -0
- data/_sass/components/_components.portfolio.scss +19 -0
- data/_sass/components/_components.post-head.scss +9 -0
- data/_sass/components/_components.post.scss +33 -0
- data/_sass/components/_components.project.scss +24 -0
- data/_sass/components/_components.rating.scss +7 -0
- data/_sass/components/_components.see-more.scss +7 -0
- data/_sass/components/_components.site-nav.scss +45 -0
- data/_sass/components/_components.social-media.scss +12 -0
- data/_sass/elements/_elements.descriptions.scss +23 -0
- data/_sass/elements/_elements.headings.scss +8 -0
- data/_sass/elements/_elements.links.scss +14 -0
- data/_sass/elements/_elements.page.scss +20 -0
- data/_sass/main.scss +197 -0
- data/_sass/settings/_settings.colors.scss +174 -0
- data/_sass/settings/_settings.global.scss +20 -0
- data/_sass/tools/_tools.aliases.scss +18 -0
- data/assets/css/main.css +2 -0
- data/assets/fonts/icomoon.eot +0 -0
- data/assets/fonts/icomoon.svg +20 -0
- data/assets/fonts/icomoon.ttf +0 -0
- data/assets/fonts/icomoon.woff +0 -0
- metadata +141 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 541ad58e2f275a197bf181b9bd6d86e68a45a241
|
4
|
+
data.tar.gz: 5d46c20647489dff273cdc98af16b632aaba80a9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ba888774c9ca1bdeef0e2ca4b84a2da893986289b6044e9754a13451acaca562728f6e1ed5d927de5815faa90d8b8514d36f10a8f0494c921b596323695d17df
|
7
|
+
data.tar.gz: 84fa69f080e5500cc32202551139c9670f3b1bf1a2058bc653497ae942b5751b299faee103bb5c2623370016a9849ceb196edb12798b228585102f12b8b94a60
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Abel Nieva
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
# alna-jekyll-theme
|
2
|
+
|
3
|
+
Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes` and your sass in `_sass`. To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your Jekyll site's `Gemfile`:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem "alna-jekyll-theme"
|
13
|
+
```
|
14
|
+
|
15
|
+
And add this line to your Jekyll site's `_config.yml`:
|
16
|
+
|
17
|
+
```yaml
|
18
|
+
theme: alna-jekyll-theme
|
19
|
+
```
|
20
|
+
|
21
|
+
And then execute:
|
22
|
+
|
23
|
+
$ bundle
|
24
|
+
|
25
|
+
Or install it yourself as:
|
26
|
+
|
27
|
+
$ gem install alna-jekyll-theme
|
28
|
+
|
29
|
+
## Usage
|
30
|
+
|
31
|
+
TODO: Write usage instructions here. Describe your available layouts, includes, and/or sass.
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
|
+
|
37
|
+
## Development
|
38
|
+
|
39
|
+
To set up your environment to develop this theme, run `bundle install`.
|
40
|
+
|
41
|
+
Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
|
42
|
+
|
43
|
+
When your theme is released, only the files in `_layouts`, `_includes`, and `_sass` tracked with Git will be released.
|
44
|
+
|
45
|
+
## License
|
46
|
+
|
47
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
48
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<figure class="o-flag c-author {% if include.padding-none %}u-padding-none{% endif %}"
|
2
|
+
itemprop="image"
|
3
|
+
itemscope
|
4
|
+
itemtype="http://schema.org/ImageObject">
|
5
|
+
|
6
|
+
<div class="o-flag__img c-author__photo">
|
7
|
+
|
8
|
+
<a href="/">
|
9
|
+
<img src="{{ site.author.avatar }}"
|
10
|
+
srcset="{{ site.author.avatar }} 1x, {{ site.author.avatar2x }} 2x"
|
11
|
+
alt="{{ site.author.avatar_alt }}"
|
12
|
+
width="120"
|
13
|
+
height="120"
|
14
|
+
itemprop="contentUrl">
|
15
|
+
</a>
|
16
|
+
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<figcaption class="o-flag__body c-author__bio"
|
20
|
+
itemprop="description">{{ site.author.bio }}</figcaption>
|
21
|
+
|
22
|
+
</figure><!-- /c-author -->
|
@@ -0,0 +1,45 @@
|
|
1
|
+
<article class="o-flag c-book-details"
|
2
|
+
itemscope
|
3
|
+
itemtype="http://schema.org/Book">
|
4
|
+
|
5
|
+
<div class="o-flag__img c-book-details__cover">
|
6
|
+
<img src="/assets/img/books/{{ page.slug }}.jpg"
|
7
|
+
alt="{{ include.details.title }}"
|
8
|
+
itemprop="image">
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<div class="o-flag__body">
|
12
|
+
|
13
|
+
{% include rating.html rating=include.details.rating %}
|
14
|
+
|
15
|
+
<h5 class="c-book-details__title"
|
16
|
+
itemprop="name">{{ include.details.title }}</h5>
|
17
|
+
|
18
|
+
<div class="c-book-details__details">
|
19
|
+
|
20
|
+
<div itemprop="author"
|
21
|
+
itemscope
|
22
|
+
itemtype="http://schema.org/Person">
|
23
|
+
Por <span itemprop="name">{{ include.details.author }}</span>
|
24
|
+
</div>
|
25
|
+
|
26
|
+
<div class="u-margin-top-tiny u-margin-bottom-tiny">
|
27
|
+
<span itemprop="bookFormatType">{{ include.details.format-type }}</span>,
|
28
|
+
<span itemprop="numberOfPages">{{ include.details.pages }}</span>
|
29
|
+
<div>{{ include.details.publication-date }}</div>
|
30
|
+
</div>
|
31
|
+
|
32
|
+
<dl class="c-book-details__descriptions">
|
33
|
+
<dt>Título original</dt>
|
34
|
+
<dd>{{ include.details.original-title }}</dd>
|
35
|
+
<dt>ISBN</dt>
|
36
|
+
<dd itemprop="isbn">{{ include.details.ISBN }}</dd>
|
37
|
+
<dt>Edición</dt>
|
38
|
+
<dd itemprop="inLanguage">{{ include.details.edition-language }}</dd>
|
39
|
+
</dl>
|
40
|
+
|
41
|
+
</div>
|
42
|
+
|
43
|
+
</div>
|
44
|
+
|
45
|
+
</article><!-- /c-book-details -->
|
data/_includes/book.html
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
<article class="o-block c-book"
|
2
|
+
itemprop="item"
|
3
|
+
itemscope
|
4
|
+
itemType="http://schema.org/BlogPosting">
|
5
|
+
|
6
|
+
<a class="c-book__link"
|
7
|
+
href="{{ include.book.url }}">
|
8
|
+
|
9
|
+
<div class="o-block__img c-book__cover">
|
10
|
+
<img src="/assets/img/books/{{ include.book.slug }}.jpg"
|
11
|
+
itemprop="thumbnail"/>
|
12
|
+
</div>
|
13
|
+
|
14
|
+
<div class="o-block__body">
|
15
|
+
|
16
|
+
{% include rating.html rating=include.book.details.rating %}
|
17
|
+
|
18
|
+
<h4 class="c-book__headline"
|
19
|
+
itemprop="name headline">{{ include.book.title }}</h4>
|
20
|
+
|
21
|
+
<p class="c-book__excerpt"
|
22
|
+
itemprop="description">{{ include.book.excerpt }}</p>
|
23
|
+
|
24
|
+
</div>
|
25
|
+
|
26
|
+
</a>
|
27
|
+
|
28
|
+
<link href="{{ include.book.url }}"
|
29
|
+
itemprop="url" />
|
30
|
+
|
31
|
+
</article><!-- /c-book -->
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<section class="c-bookcase"
|
2
|
+
itemscope
|
3
|
+
itemtype="http://schema.org/ItemList">
|
4
|
+
|
5
|
+
{% if include.headline %}
|
6
|
+
<h1 class="c-bookcase__headline"
|
7
|
+
itemprop="name">{{ include.headline }}</h1>
|
8
|
+
{% endif %}
|
9
|
+
|
10
|
+
<ul class="o-layout c-bookcase__list">
|
11
|
+
{% for book in site.books limit:include.limit %}<!--
|
12
|
+
--><li class="o-layout__item c-bookcase__item u-1/3"
|
13
|
+
itemprop="itemListElement"
|
14
|
+
itemscope
|
15
|
+
itemtype="http://schema.org/ListItem">
|
16
|
+
{% include book.html book=book %}
|
17
|
+
</li><!--
|
18
|
+
-->{% endfor %}
|
19
|
+
</ul>
|
20
|
+
|
21
|
+
{% if include.limit %}
|
22
|
+
{% include see-more.html label=include.see-more permalink=include.permalink %}
|
23
|
+
{% endif %}
|
24
|
+
|
25
|
+
</section><!-- /c-bookcase -->
|
data/_includes/date.html
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
{% assign m = include.date | date: "%-m" %}
|
2
|
+
|
3
|
+
<time datetime="{{ include.date | date_to_xmlschema }}"
|
4
|
+
class="c-date"
|
5
|
+
itemprop="datePublished">
|
6
|
+
{% case m %}
|
7
|
+
{% when '1' %}Enero
|
8
|
+
{% when '2' %}Febrero
|
9
|
+
{% when '3' %}Marzo
|
10
|
+
{% when '4' %}Abril
|
11
|
+
{% when '5' %}Mayo
|
12
|
+
{% when '6' %}Junio
|
13
|
+
{% when '7' %}Julio
|
14
|
+
{% when '8' %}Agosto
|
15
|
+
{% when '9' %}Septiembre
|
16
|
+
{% when '10' %}Octubre
|
17
|
+
{% when '11' %}Noviembre
|
18
|
+
{% when '12' %}Diciembre
|
19
|
+
{% endcase %}
|
20
|
+
{{ include.date | date: "%-d, " }}
|
21
|
+
{{ include.date | date: "%Y" }}
|
22
|
+
</time>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
{% if page.comments != false and jekyll.environment == "production" %}
|
2
|
+
<div id="disqus_thread"></div>
|
3
|
+
<script>
|
4
|
+
var disqus_config = function () {
|
5
|
+
this.page.url = '{{ page.url | absolute_url }}';
|
6
|
+
this.page.identifier = '{{ page.url | absolute_url }}';
|
7
|
+
};
|
8
|
+
(function() {
|
9
|
+
var d = document, s = d.createElement('script');
|
10
|
+
s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
|
11
|
+
s.setAttribute('data-timestamp', + new Date());
|
12
|
+
(d.head || d.body).appendChild(s);
|
13
|
+
})();
|
14
|
+
</script>
|
15
|
+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments
|
16
|
+
powered by Disqus.</a></noscript>
|
17
|
+
{% endif %}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<script>
|
2
|
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
3
|
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
4
|
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
5
|
+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
6
|
+
ga('create', '{{ site.google_analytics }}', 'auto');
|
7
|
+
ga('send', 'pageview');
|
8
|
+
</script>
|
data/_includes/head.html
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
<head>
|
2
|
+
<meta charset="utf-8">
|
3
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
4
|
+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
5
|
+
|
6
|
+
{% if page.title %}
|
7
|
+
{{ assign title = page.title | join: " — " | join: site.title }}
|
8
|
+
{% else %}
|
9
|
+
{{ assign title = site.title | join: " — " | join: site.subtitle }}
|
10
|
+
{% endif %}
|
11
|
+
<title>{{ title | escape }}</title>
|
12
|
+
|
13
|
+
<!-- Prefetch DNS for external assets (Twitter widgets etc). -->
|
14
|
+
<link rel="dns-prefetch" href="//fonts.googleapis.com">
|
15
|
+
<link rel="dns-prefetch" href="//www.google-analytics.com">
|
16
|
+
<link rel="dns-prefetch" href="//chart.apis.google.com">
|
17
|
+
|
18
|
+
<!-- Who did this page -->
|
19
|
+
<link type="text/plain" rel="author" href="{{ '/humans.txt' | relative_url }}">
|
20
|
+
<meta name="author" content="{{ site.author.name }}">
|
21
|
+
|
22
|
+
<!-- Stylesheet -->
|
23
|
+
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600|Ubuntu:400" rel="stylesheet">
|
24
|
+
<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
|
25
|
+
|
26
|
+
<!-- Meta-Tagging -->
|
27
|
+
{% assign description = page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape %}
|
28
|
+
<meta name="description" content="{{ description | escape }}">
|
29
|
+
<meta name="robots" content="index, follow">
|
30
|
+
|
31
|
+
<link rel="shortcut icon" href="{{ '/favicon.ico' | relative_url }}">
|
32
|
+
<link rel="apple-touch-icon" href="{{ '/apple-touch-icon.jpg' | relative_url }}">
|
33
|
+
<meta name="apple-mobile-web-app-title" content="{{ site.title }}">
|
34
|
+
<meta name="application-name" content="{{ site.title }}">
|
35
|
+
|
36
|
+
<meta name="twitter:card" content="summary">
|
37
|
+
<meta name="twitter:site" content="@{{ site.twitter_username }}">
|
38
|
+
<meta name="twitter:domain" content="{{ '/' | absolute_url }}">
|
39
|
+
<meta name="twitter:creator" content="@{{ site.twitter_username }}">
|
40
|
+
<meta name="twitter:title" content="{{ title | escape }}">
|
41
|
+
|
42
|
+
{% assign image = page.image | default: '/apple-touch-icon.jpg' | absolute_url %}
|
43
|
+
<meta name="twitter:image" content="{{ image }}">
|
44
|
+
<meta name="twitter:description" content="{{ description | escape }}">
|
45
|
+
|
46
|
+
{% if page.url == "/404.html" %}
|
47
|
+
<meta http-equiv="refresh" content="5; url=/">
|
48
|
+
{% endif %}
|
49
|
+
|
50
|
+
<link rel="image_src" href="{{ image }}">
|
51
|
+
<link rel="canonical" href="{{ page.url | replace: 'index.html', '' | absolute_url }}">
|
52
|
+
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ '/feed.xml' | relative_url }}">
|
53
|
+
<link rel="index" title="{{ title | escape }}" href="{{ '/' | relative_url }}">
|
54
|
+
|
55
|
+
</head>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<section class="c-notebook"
|
2
|
+
itemscope
|
3
|
+
itemtype="http://schema.org/ItemList">
|
4
|
+
|
5
|
+
{% if include.headline %}
|
6
|
+
<h1 class="c-notebook__headline"
|
7
|
+
itemprop="name">{{ include.headline }}</h1>
|
8
|
+
{% endif %}
|
9
|
+
|
10
|
+
<ul class="o-list-bare c-notebook__list">
|
11
|
+
{% for post in site.posts limit:include.limit %}
|
12
|
+
<li class="c-notebook__item"
|
13
|
+
itemprop="itemListElement"
|
14
|
+
itemscope
|
15
|
+
itemtype="http://schema.org/ListItem">
|
16
|
+
|
17
|
+
<article itemprop="item"
|
18
|
+
itemscope
|
19
|
+
itemType="http://schema.org/BlogPosting">
|
20
|
+
{% include post-head.html date=post.date title=post.title url=post.url %}
|
21
|
+
</article>
|
22
|
+
|
23
|
+
</li>
|
24
|
+
{% endfor %}
|
25
|
+
</ul>
|
26
|
+
|
27
|
+
{% if include.limit %}
|
28
|
+
{% include see-more.html label=include.see-more permalink=include.permalink %}
|
29
|
+
{% endif %}
|
30
|
+
|
31
|
+
</section><!-- /c-notebook -->
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<footer class="c-page-foot"
|
2
|
+
role="contentinfo"
|
3
|
+
itemscope
|
4
|
+
itemtype="http://schema.org/WPFooter">
|
5
|
+
|
6
|
+
<div class="o-wrapper">
|
7
|
+
|
8
|
+
<ul class="o-list-inline c-page-foot__list"
|
9
|
+
role="navigation"
|
10
|
+
itemscope
|
11
|
+
itemtype="http://schema.org/SiteNavigationElement">
|
12
|
+
{% for item in site.social_media %}
|
13
|
+
<li class="o-list-inline__item c-page-foot__item">
|
14
|
+
{% include social-media.html name=item.name link=item.link %}
|
15
|
+
</li>
|
16
|
+
{% endfor %}
|
17
|
+
</ul>
|
18
|
+
|
19
|
+
<p class="c-page-foot__about"
|
20
|
+
itemprop="about">{{ site.about }}</p>
|
21
|
+
|
22
|
+
<p class="c-page-foot__copyright"
|
23
|
+
itemprop="copyrightHolder">{{ site.copyright }}</p>
|
24
|
+
|
25
|
+
</div>
|
26
|
+
|
27
|
+
</footer><!-- /c-page-foot -->
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<section class="c-portfolio"
|
2
|
+
itemscope
|
3
|
+
itemtype="http://schema.org/ItemList">
|
4
|
+
|
5
|
+
{% if include.headline %}
|
6
|
+
<h1 class="c-portfolio__headline"
|
7
|
+
itemprop="name">{{ include.headline }}</h1>
|
8
|
+
{% endif %}
|
9
|
+
|
10
|
+
<ul class="o-list-bare c-portfolio__list">
|
11
|
+
{% for project in site.data.portfolio %}
|
12
|
+
<li class="c-portfolio__item"
|
13
|
+
itemprop="itemListElement"
|
14
|
+
itemscope
|
15
|
+
itemtype="http://schema.org/ListItem">
|
16
|
+
|
17
|
+
{% include project.html project=project %}
|
18
|
+
|
19
|
+
</li>
|
20
|
+
{% endfor %}
|
21
|
+
</ul>
|
22
|
+
|
23
|
+
</section><!-- /c-portfolio -->
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<header class="c-post-head">
|
2
|
+
|
3
|
+
{% include date.html date=include.date %}
|
4
|
+
|
5
|
+
{% if page.layout == "post" %}
|
6
|
+
<h1 itemprop="name headline">{{ include.title }}</h1>
|
7
|
+
{% else %}
|
8
|
+
<h3 itemprop="name headline">
|
9
|
+
<a href="{{ include.url }}">{{ include.title }}</a>
|
10
|
+
</h3>
|
11
|
+
|
12
|
+
<link href="{{ include.url }}"
|
13
|
+
itemprop="url" />
|
14
|
+
{% endif %}
|
15
|
+
|
16
|
+
</header><!-- /c-post-head -->
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<article class="o-block c-project"
|
2
|
+
itemprop="item">
|
3
|
+
|
4
|
+
<div class="o-block__img c-project__banner">
|
5
|
+
<img src="/assets/img/projects/{{ include.project.banner }}"/>
|
6
|
+
</div>
|
7
|
+
|
8
|
+
<div class="o-block__body c-project__description">
|
9
|
+
|
10
|
+
<h3 class="c-project__headline">{{ include.project.headline }}</h3>
|
11
|
+
|
12
|
+
{{ include.project.description }}
|
13
|
+
|
14
|
+
{% if include.project.url %}
|
15
|
+
<div class="c-project__btn">
|
16
|
+
<a href="{{ include.project.url }}"
|
17
|
+
class="c-btn c-btn--primary c-btn--large c-btn--ghost">
|
18
|
+
{{ include.project.call-to-action }}
|
19
|
+
</a>
|
20
|
+
</div>
|
21
|
+
{% endif %}
|
22
|
+
|
23
|
+
</div>
|
24
|
+
|
25
|
+
</article><!-- /c-project -->
|
@@ -0,0 +1,30 @@
|
|
1
|
+
{% case include.rating %}
|
2
|
+
{% when 1 %}
|
3
|
+
{% assign title = 'No me gustó' %}
|
4
|
+
{% when 2 %}
|
5
|
+
{% assign title = 'Estuvo bien' %}
|
6
|
+
{% when 3 %}
|
7
|
+
{% assign title = 'Me gustó' %}
|
8
|
+
{% when 4 %}
|
9
|
+
{% assign title = 'Realmente me gustó' %}
|
10
|
+
{% when 5 %}
|
11
|
+
{% assign title = 'Fue increíble' %}
|
12
|
+
{% endcase %}
|
13
|
+
|
14
|
+
<div class="c-rating"
|
15
|
+
title="{{ title }}"
|
16
|
+
itemscope
|
17
|
+
itemtype="http://schema.org/AggregateRating">
|
18
|
+
|
19
|
+
{% for i in (1..5) %}
|
20
|
+
{% if i <= include.rating %}
|
21
|
+
<span class="c-icon c-icon--star-full"></span>
|
22
|
+
{% else %}
|
23
|
+
<span class="c-icon c-icon--star-empty"></span>
|
24
|
+
{% endif %}
|
25
|
+
{% endfor %}
|
26
|
+
|
27
|
+
<span class="u-hidden-visually"
|
28
|
+
itemprop="ratingValue">{{ include.rating }}</span>
|
29
|
+
|
30
|
+
</div><!-- /c-rating -->
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<nav class="c-site-nav"
|
2
|
+
role="navigation"
|
3
|
+
itemscope
|
4
|
+
itemtype="http://schema.org/SiteNavigationElement">
|
5
|
+
|
6
|
+
<div class="o-wrapper o-wrapper--large">
|
7
|
+
|
8
|
+
<ul class="o-pack c-site-nav__list">
|
9
|
+
{% for page in site.pages %}
|
10
|
+
{% if page.headline %}
|
11
|
+
<li class="o-pack__item c-site-nav__item">
|
12
|
+
<a class="c-site-nav__link"
|
13
|
+
href="{{ page.url | relative_url }}"
|
14
|
+
itemprop="name">{{ page.headline | escape }}</a>
|
15
|
+
</li>
|
16
|
+
{% endif %}
|
17
|
+
{% endfor %}
|
18
|
+
</ul>
|
19
|
+
|
20
|
+
</div>
|
21
|
+
|
22
|
+
</nav><!-- /c-site-nav -->
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: 'en' }}">
|
3
|
+
|
4
|
+
{% include head.html %}
|
5
|
+
|
6
|
+
<body itemscope
|
7
|
+
itemtype="http://schema.org/WebPage">
|
8
|
+
|
9
|
+
{% include page-head.html %}
|
10
|
+
|
11
|
+
{% include site-nav.html %}
|
12
|
+
|
13
|
+
<main class="o-wrapper o-wrapper--large"
|
14
|
+
role="main"
|
15
|
+
itemprop="mainContentOfPage"
|
16
|
+
itemscope
|
17
|
+
itemtype="http://schema.org/Blog">
|
18
|
+
{{ content }}
|
19
|
+
</main>
|
20
|
+
|
21
|
+
{% include page-foot.html %}
|
22
|
+
|
23
|
+
{% if jekyll.environment == 'production' and site.google_analytics %}
|
24
|
+
{% include google-analytics.html %}
|
25
|
+
{% endif %}
|
26
|
+
|
27
|
+
</body>
|
28
|
+
</html>
|
data/_layouts/page.html
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
{% unless page.custom-content %}
|
6
|
+
<article class="c-page-content">
|
7
|
+
|
8
|
+
<h1 class="c-page-content__headline"
|
9
|
+
itemprop="headline">{{ page.headline }}</h1>
|
10
|
+
|
11
|
+
{{ content }}
|
12
|
+
|
13
|
+
</article><!-- /c-page-content -->
|
14
|
+
{% else %}
|
15
|
+
{{ content }}
|
16
|
+
{% endunless %}
|
data/_layouts/post.html
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<article class="c-post"
|
6
|
+
temscope
|
7
|
+
itemtype="http://schema.org/BlogPosting">
|
8
|
+
|
9
|
+
{% if page.book-details %}
|
10
|
+
{% include book-details.html details=page.book-details %}
|
11
|
+
{% endif %}
|
12
|
+
|
13
|
+
{% include post-head.html date=page.date title=page.title %}
|
14
|
+
|
15
|
+
<div class="c-post__content"
|
16
|
+
itemprop="articleBody">
|
17
|
+
{{ content }}
|
18
|
+
</div>
|
19
|
+
|
20
|
+
{% include author.html padding-none=true %}
|
21
|
+
|
22
|
+
{% if site.disqus.shortname %}
|
23
|
+
{% include disqus-comments.html %}
|
24
|
+
{% endif %}
|
25
|
+
|
26
|
+
</article><!-- /c-post -->
|
@@ -0,0 +1,35 @@
|
|
1
|
+
/* ==========================================================================
|
2
|
+
#AUTHOR
|
3
|
+
========================================================================== */
|
4
|
+
|
5
|
+
.c-author {
|
6
|
+
margin-bottom: 0;
|
7
|
+
padding: 0 $unit;
|
8
|
+
|
9
|
+
@include mq($until: tablet) {
|
10
|
+
text-align: center;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
|
15
|
+
.c-author__photo {
|
16
|
+
@include mq($until: tablet) {
|
17
|
+
padding-right: 0;
|
18
|
+
}
|
19
|
+
|
20
|
+
img {
|
21
|
+
border-radius: 50%;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
|
26
|
+
.c-author__bio {
|
27
|
+
@include mq($until: tablet) {
|
28
|
+
display: none;
|
29
|
+
}
|
30
|
+
|
31
|
+
a {
|
32
|
+
color: currentColor;
|
33
|
+
border-bottom: 1px dotted currentColor;
|
34
|
+
}
|
35
|
+
}
|