minima-rock 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,20 +1,20 @@
1
- {%- assign social = site.data.social -%}
2
- {% if social %}
3
- <ul class="social-media-list">
4
- {%- if social.dribbble -%}<li><a href="https://dribbble.com/{{ social.dribbble | cgi_escape | escape }}" title="{{ social.dribbble | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#dribbble' | relative_url }}"></use></svg></a></li>{%- endif -%}
5
- {%- if social.facebook -%}<li><a href="https://www.facebook.com/{{ social.facebook | cgi_escape | escape }}" title="{{ social.facebook | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#facebook' | relative_url }}"></use></svg></a></li>{%- endif -%}
6
- {%- if social.flickr -%}<li><a href="https://www.flickr.com/photos/{{ social.flickr | cgi_escape | escape }}" title="{{ social.flickr | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#flickr' | relative_url }}"></use></svg></a></li>{%- endif -%}
7
- {%- if social.github -%}<li><a href="https://github.com/{{ social.github | cgi_escape | escape }}" title="{{ social.github | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#github' | relative_url }}"></use></svg></a></li>{%- endif -%}
8
- {%- if social.instagram -%}<li><a href="https://www.instagram.com/{{ social.instagram | cgi_escape | escape }}" title="{{ social.instagram | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#instagram' | relative_url }}"></use></svg></a></li>{%- endif -%}
9
- {%- if social.linkedin -%}<li><a href="https://www.linkedin.com/in/{{ social.linkedin | cgi_escape | escape }}" title="{{ social.linkedin | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#linkedin' | relative_url }}"></use></svg></a></li>{%- endif -%}
10
- {%- if social.pinterest -%}<li><a href="https://www.pinterest.com/{{ social.pinterest | cgi_escape | escape }}" title="{{ social.pinterest | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#pinterest' | relative_url }}"></use></svg></a></li>{%- endif -%}
11
- {%- for mst in social.mastodon -%}{%- if mst.username and mst.instance -%}<li><a rel="me" href="https://{{ mst.instance | cgi_escape | escape}}/@{{mst.username}}" title="{{ mst.username | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#mastodon' | relative_url }}"></use></svg></a></li>{%- endif -%}{%- endfor -%}
12
- {%- if social.twitter -%}<li><a href="https://twitter.com/{{ social.twitter | cgi_escape | escape }}" title="{{ social.twitter | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#twitter' | relative_url }}"></use></svg></a></li>{%- endif -%}
13
- {%- if social.youtube -%}<li><a href="https://www.youtube.com/{{ social.youtube | cgi_escape | escape }}" title="{{ social.youtube | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#youtube' | relative_url }}"></use></svg></a></li>{%- endif -%}
14
- {%- if social.youtube_channel -%}<li><a href="https://www.youtube.com/channel/{{ social.youtube_channel | cgi_escape | escape }}" title="{{ social.youtube_channel_name | escape | default: 'YouTube' }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#youtube' | relative_url }}"></use></svg></a></li>{%- endif -%}
15
- {%- if social.telegram -%}<li><a href="https://t.me/{{ social.telegram | cgi_escape | escape }}" title="{{ social.telegram | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#telegram' | relative_url }}"></use></svg></a></li>{%- endif -%}
16
- {%- if social.microdotblog -%}<li><a rel="me" href="https://micro.blog/{{ social.microdotblog | cgi_escape | escape }}" title="{{ social.microdotblog | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#microdotblog' | relative_url }}"></use></svg></a></li>{%- endif -%}
17
- {%- if social.googleplus -%}<li><a href="https://plus.google.com/{{ social.googleplus | escape }}" title="{{ social.googleplus | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#googleplus' | relative_url }}"></use></svg></a></li>{%- endif -%}
18
- {%- if social.rss -%}<li><a href="{{ 'feed.xml' | relative_url }}" title="{{ social.rss | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#rss' | relative_url }}"></use></svg></a></li>{%- endif -%}
19
- </ul>
20
- {% endif %}
1
+ {%- assign social = site.data.social -%}
2
+ {% if social %}
3
+ <ul class="social-media-list">
4
+ {%- if social.dribbble -%}<li><a href="https://dribbble.com/{{ social.dribbble | cgi_escape | escape }}" title="{{ social.dribbble | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#dribbble' | relative_url }}"></use></svg></a></li>{%- endif -%}
5
+ {%- if social.facebook -%}<li><a href="https://www.facebook.com/{{ social.facebook | cgi_escape | escape }}" title="{{ social.facebook | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#facebook' | relative_url }}"></use></svg></a></li>{%- endif -%}
6
+ {%- if social.flickr -%}<li><a href="https://www.flickr.com/photos/{{ social.flickr | cgi_escape | escape }}" title="{{ social.flickr | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#flickr' | relative_url }}"></use></svg></a></li>{%- endif -%}
7
+ {%- if social.github -%}<li><a href="https://github.com/{{ social.github | cgi_escape | escape }}" title="{{ social.github | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#github' | relative_url }}"></use></svg></a></li>{%- endif -%}
8
+ {%- if social.instagram -%}<li><a href="https://www.instagram.com/{{ social.instagram | cgi_escape | escape }}" title="{{ social.instagram | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#instagram' | relative_url }}"></use></svg></a></li>{%- endif -%}
9
+ {%- if social.linkedin -%}<li><a href="https://www.linkedin.com/in/{{ social.linkedin | cgi_escape | escape }}" title="{{ social.linkedin | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#linkedin' | relative_url }}"></use></svg></a></li>{%- endif -%}
10
+ {%- if social.pinterest -%}<li><a href="https://www.pinterest.com/{{ social.pinterest | cgi_escape | escape }}" title="{{ social.pinterest | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#pinterest' | relative_url }}"></use></svg></a></li>{%- endif -%}
11
+ {%- for mst in social.mastodon -%}{%- if mst.username and mst.instance -%}<li><a rel="me" href="https://{{ mst.instance | cgi_escape | escape}}/@{{mst.username}}" title="{{ mst.username | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#mastodon' | relative_url }}"></use></svg></a></li>{%- endif -%}{%- endfor -%}
12
+ {%- if social.twitter -%}<li><a href="https://twitter.com/{{ social.twitter | cgi_escape | escape }}" title="{{ social.twitter | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#twitter' | relative_url }}"></use></svg></a></li>{%- endif -%}
13
+ {%- if social.youtube -%}<li><a href="https://www.youtube.com/{{ social.youtube | cgi_escape | escape }}" title="{{ social.youtube | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#youtube' | relative_url }}"></use></svg></a></li>{%- endif -%}
14
+ {%- if social.youtube_channel -%}<li><a href="https://www.youtube.com/channel/{{ social.youtube_channel | cgi_escape | escape }}" title="{{ social.youtube_channel_name | escape | default: 'YouTube' }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#youtube' | relative_url }}"></use></svg></a></li>{%- endif -%}
15
+ {%- if social.telegram -%}<li><a href="https://t.me/{{ social.telegram | cgi_escape | escape }}" title="{{ social.telegram | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#telegram' | relative_url }}"></use></svg></a></li>{%- endif -%}
16
+ {%- if social.microdotblog -%}<li><a rel="me" href="https://micro.blog/{{ social.microdotblog | cgi_escape | escape }}" title="{{ social.microdotblog | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#microdotblog' | relative_url }}"></use></svg></a></li>{%- endif -%}
17
+ {%- if social.googleplus -%}<li><a href="https://plus.google.com/{{ social.googleplus | escape }}" title="{{ social.googleplus | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#googleplus' | relative_url }}"></use></svg></a></li>{%- endif -%}
18
+ {%- if social.rss -%}<li><a href="{{ 'feed.xml' | relative_url }}" title="{{ social.rss | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#rss' | relative_url }}"></use></svg></a></li>{%- endif -%}
19
+ </ul>
20
+ {% endif %}
@@ -1,15 +1,15 @@
1
- <ul>
2
- {% for tag in site.tags %}
3
- {% if tag[0] == page.tag %}
4
- {% assign post_list = tag[1] %}
5
- {%- for post in post_list -%}
6
- <li>
7
- <span>{{ post.date | date: "%Y-%m-%d" }}</span> &raquo;
8
- <a href="{{ post.url | relative_url }}">
9
- {{ post.title | escape }}
10
- </a>
11
- </li>
12
- {%- endfor -%}
13
- {%- endif -%}
14
- {% endfor %}
1
+ <ul>
2
+ {% for tag in site.tags %}
3
+ {% if tag[0] == page.tag %}
4
+ {% assign post_list = tag[1] %}
5
+ {%- for post in post_list -%}
6
+ <li>
7
+ <span>{{ post.date | date: "%Y-%m-%d" }}</span> &raquo;
8
+ <a href="{{ post.url | relative_url }}">
9
+ {{ post.title | escape }}
10
+ </a>
11
+ </li>
12
+ {%- endfor -%}
13
+ {%- endif -%}
14
+ {% endfor %}
15
15
  </ul>
@@ -1,11 +1,11 @@
1
- <div class="tags-bar">
2
- {% assign tags = page.tags | sort %}
3
- {% for tag in tags %}
4
- <span class="site-tag">
5
- <a class="site-tag-text" href="{{ site.baseurl }}/tags/{{ tag | slugify }}.html">{{ tag | replace:'-', ' ' }}</a>
6
- </span>
7
- {% endfor %}
8
- </div>
9
- <script type="text/javascript">
10
- setInvertedColor('site-tag-text');
1
+ <div class="tags-bar">
2
+ {% assign tags = page.tags | sort %}
3
+ {% for tag in tags %}
4
+ <span class="site-tag">
5
+ <a class="site-tag-text" href="{{ site.baseurl }}/tags/{{ tag | slugify }}.html">{{ tag | replace:'-', ' ' }}</a>
6
+ </span>
7
+ {% endfor %}
8
+ </div>
9
+ <script type="text/javascript">
10
+ setInvertedColor('site-tag-text');
11
11
  </script>
@@ -1,14 +1,14 @@
1
- <p class="tag-cloud">
2
- {% assign tags = site.tags | sort %}
3
- {% for tag in tags %}
4
- <span class="site-tag">
5
- <a class="site-tag-text" href="{{ site.baseurl }}/tags/{{ tag | first | slugify }}.html" style="font-size: {{ tag | last | size | times: 4 | plus: 80 }}%;">
6
- {{ tag[0] | replace:'-', ' ' }}
7
- </a>
8
- </span>
9
- {% endfor %}
10
- </p>
11
-
12
- <script type="text/javascript">
13
- setInvertedColor('site-tag-text');
1
+ <p class="tag-cloud">
2
+ {% assign tags = site.tags | sort %}
3
+ {% for tag in tags %}
4
+ <span class="site-tag">
5
+ <a class="site-tag-text" href="{{ site.baseurl }}/tags/{{ tag | first | slugify }}.html" style="font-size: {{ tag | last | size | times: 4 | plus: 80 }}%;">
6
+ {{ tag[0] | replace:'-', ' ' }}
7
+ </a>
8
+ </span>
9
+ {% endfor %}
10
+ </p>
11
+
12
+ <script type="text/javascript">
13
+ setInvertedColor('site-tag-text');
14
14
  </script>
data/_includes/toc.html CHANGED
@@ -1,5 +1,5 @@
1
- <nav>
2
- <h2>Table of Contents</h2>
3
- * this unordered seed list will be replaced by toc as unordered list
4
- {:toc}
1
+ <nav>
2
+ <h2>Table of Contents</h2>
3
+ * this unordered seed list will be replaced by toc as unordered list
4
+ {:toc}
5
5
  </nav>
@@ -1,32 +1,32 @@
1
- <!DOCTYPE html>
2
- <html lang="{{ page.lang | default: site.lang | default: "en" }}">
3
-
4
- {%- include head.html -%}
5
-
6
- <body>
7
-
8
- {%- include header.html -%}
9
-
10
- <main class="page-content" aria-label="Content">
11
- <div class="wrapper">
12
- {{ content }}
13
- </div>
14
- </main>
15
-
16
- {%- include footer.html -%}
17
-
18
- </body>
19
-
20
- {% if site.data.backgrounds %}
21
- <script>
22
- const imgs = [
23
- {%- for item in site.data.backgrounds -%}
24
- '{{ item.name }}',
25
- {%- endfor -%}
26
- ];
27
- const date = new Date();
28
- const index = date.getDay() % imgs.length;
29
- document.body.style.backgroundImage = `url('{{ site.baseurl }}${imgs[index]}')`;
30
- </script>
31
- {% endif %}
32
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="{{ page.lang | default: site.lang | default: "en" }}">
3
+
4
+ {%- include head.html -%}
5
+
6
+ <body>
7
+
8
+ {%- include header.html -%}
9
+
10
+ <main class="page-content" aria-label="Content">
11
+ <div class="wrapper">
12
+ {{ content }}
13
+ </div>
14
+ </main>
15
+
16
+ {%- include footer.html -%}
17
+
18
+ </body>
19
+
20
+ {% if site.data.backgrounds %}
21
+ <script>
22
+ const imgs = [
23
+ {%- for item in site.data.backgrounds -%}
24
+ '{{ item.name }}',
25
+ {%- endfor -%}
26
+ ];
27
+ const date = new Date();
28
+ const index = date.getDay() % imgs.length;
29
+ document.body.style.backgroundImage = `url('{{ site.baseurl }}${imgs[index]}')`;
30
+ </script>
31
+ {% endif %}
32
+ </html>
data/_layouts/home.html CHANGED
@@ -1,35 +1,39 @@
1
- ---
2
- layout: default
3
- ---
4
-
5
- <div class="home card">
6
- {%- if page.title -%}
7
- <h1 class="page-heading">{{ page.title }}</h1>
8
- {%- endif -%}
9
-
10
- {{ content }}
11
-
12
- {% assign recent_posts = site.recent_posts | default: 10 %}
13
- {%- if site.posts.size > 0 -%}
14
- <h2 class="post-list-heading">{{ page.list_title | default: "Recent Posts" }}</h2>
15
- <ul class="post-list">
16
- {%- for post in site.posts limit:recent_posts -%}
17
- <li>
18
- {%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
19
- <span class="post-meta">{{ post.date | date: date_format }}</span>
20
- <h3>
21
- <a class="post-link" href="{{ post.url | relative_url }}">
22
- {{ post.title | escape }}
23
- </a>
24
- </h3>
25
- {%- if site.show_excerpts -%}
26
- {{ post.excerpt }}
27
- {%- endif -%}
28
- </li>
29
- {%- endfor -%}
30
- </ul>
31
-
32
- <p class="feed-subscribe"><svg class="svg-icon orange"><use xlink:href="{{ '/assets/minima-social-icons.svg#rss' | relative_url }}"></use></svg><a href="{{ "/feed.xml" | relative_url }}">Subscribe</a></p>
33
- {%- endif -%}
34
-
35
- </div>
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="home card">
6
+ {%- if page.title -%}
7
+ <h1 class="page-heading">{{ page.title }}</h1>
8
+ {%- endif -%}
9
+
10
+ {{ content }}
11
+
12
+ {% assign recent_posts = site.recent_posts | default: 10 %}
13
+ {%- if site.posts.size > 0 -%}
14
+ <h2 class="post-list-heading">{{ page.list_title | default: "Recent Posts" }}</h2>
15
+ <ul class="post-list">
16
+ {%- for post in site.posts limit:recent_posts -%}
17
+ <li>
18
+ {%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
19
+ <span class="post-meta">{{ post.date | date: date_format }}</span>
20
+ <h3>
21
+ <a class="post-link" href="{{ post.url | relative_url }}">
22
+ {{ post.title | escape }}
23
+ </a>
24
+ </h3>
25
+ {%- if site.show_excerpts -%}
26
+ {{ post.excerpt }}
27
+ {%- endif -%}
28
+ </li>
29
+ {%- endfor -%}
30
+ </ul>
31
+
32
+ {%- if site.more_posts -%}
33
+ <p>&raquo; <a href="{{ site.baseurl }}{{ site.more_posts }}">More posts...</a></p>
34
+ {%- endif -%}
35
+
36
+ <p class="feed-subscribe"><svg class="svg-icon orange"><use xlink:href="{{ '/assets/minima-social-icons.svg#rss' | relative_url }}"></use></svg><a href="{{ "/feed.xml" | relative_url }}">Subscribe</a></p>
37
+ {%- endif -%}
38
+
39
+ </div>
data/_layouts/page.html CHANGED
@@ -1,14 +1,14 @@
1
- ---
2
- layout: default
3
- ---
4
- <article class="post card">
5
-
6
- <header class="post-header">
7
- <h1 class="post-title">{{ page.title | escape }}</h1>
8
- </header>
9
-
10
- <div class="post-content">
11
- {{ content }}
12
- </div>
13
-
14
- </article>
1
+ ---
2
+ layout: default
3
+ ---
4
+ <article class="post card">
5
+
6
+ <header class="post-header">
7
+ <h1 class="post-title">{{ page.title | escape }}</h1>
8
+ </header>
9
+
10
+ <div class="post-content">
11
+ {{ content }}
12
+ </div>
13
+
14
+ </article>
data/_layouts/post.html CHANGED
@@ -1,35 +1,35 @@
1
- ---
2
- layout: default
3
- ---
4
- <article class="post h-entry card" itemscope itemtype="http://schema.org/BlogPosting">
5
-
6
- <header class="post-header">
7
- <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
8
- <p class="post-meta">
9
- {%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
10
- <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
11
- {{ page.date | date: date_format }}
12
- </time>
13
- {%- if page.modified_date -%}
14
- / Last modified at:
15
- <time class="dt-published" datetime="{{ page.modified_date | date_to_xmlschema }}" itemprop="dateModified">
16
- {{ page.modified_date | date: date_format }}
17
- </time>
18
- {%- endif -%}
19
- {%- if page.author -%}
20
- • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="p-author h-card" itemprop="name">{{ page.author | escape }}</span></span>
21
- {%- endif -%}
22
- {% include tags_bar.html %}
23
- </p>
24
- </header>
25
-
26
- <div class="post-content e-content" itemprop="articleBody">
27
- {{ content }}
28
- </div>
29
-
30
- {%- include share_bar.html -%}
31
-
32
- {%- include disqus_comments.html -%}
33
-
34
- <a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
35
- </article>
1
+ ---
2
+ layout: default
3
+ ---
4
+ <article class="post h-entry card" itemscope itemtype="http://schema.org/BlogPosting">
5
+
6
+ <header class="post-header">
7
+ <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
8
+ <p class="post-meta">
9
+ {%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
10
+ <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
11
+ {{ page.date | date: date_format }}
12
+ </time>
13
+ {%- if page.modified_date -%}
14
+ / Last modified at:
15
+ <time class="dt-published" datetime="{{ page.modified_date | date_to_xmlschema }}" itemprop="dateModified">
16
+ {{ page.modified_date | date: date_format }}
17
+ </time>
18
+ {%- endif -%}
19
+ {%- if page.author -%}
20
+ • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="p-author h-card" itemprop="name">{{ page.author | escape }}</span></span>
21
+ {%- endif -%}
22
+ {% include tags_bar.html %}
23
+ </p>
24
+ </header>
25
+
26
+ <div class="post-content e-content" itemprop="articleBody">
27
+ {{ content }}
28
+ </div>
29
+
30
+ {%- include share_bar.html -%}
31
+
32
+ {%- include disqus_comments.html -%}
33
+
34
+ <a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
35
+ </article>