minima-rock 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
- <script type="text/x-mathjax-config">
2
- MathJax.Hub.Config({
3
- tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}
4
- });
5
- </script>
6
- <script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML' async></script>
1
+ <script type="text/x-mathjax-config">
2
+ MathJax.Hub.Config({
3
+ tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}
4
+ });
5
+ </script>
6
+ <script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML' async></script>
@@ -1,17 +1,17 @@
1
- <!-- Html Elements for Search -->
2
- <div id="search-container">
3
- <input type="text" id="search-input" placeholder="search...">
4
- <ul id="results-container"></ul>
5
- </div>
6
-
7
- <!-- Script pointing to search-script.js -->
8
- <script src="assets/js/simple-jekyll-search.min.js" type="text/javascript"></script>
9
-
10
- <!-- Configuration -->
11
- <script>
12
- SimpleJekyllSearch({
13
- searchInput: document.getElementById('search-input'),
14
- resultsContainer: document.getElementById('results-container'),
15
- json: 'assets/json/search.json'
16
- })
1
+ <!-- Html Elements for Search -->
2
+ <div id="search-container">
3
+ <input type="text" id="search-input" placeholder="search...">
4
+ <ul id="results-container"></ul>
5
+ </div>
6
+
7
+ <!-- Script pointing to search-script.js -->
8
+ <script src="{{ '/assets/js/simple-jekyll-search.min.js' | absolute_url }}" type="text/javascript"></script>
9
+
10
+ <!-- Configuration -->
11
+ <script>
12
+ SimpleJekyllSearch({
13
+ searchInput: document.getElementById('search-input'),
14
+ resultsContainer: document.getElementById('results-container'),
15
+ json: 'assets/json/search.json'
16
+ })
17
17
  </script>
@@ -1,69 +1,69 @@
1
- {%- if page.share != false and jekyll.environment == "production" and site.data.share -%}
2
- <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
3
- <div id="share-bar">
4
- <div class="share-buttons">
5
- {% if site.data.share.facebook %}
6
- <a href="https://www.facebook.com/sharer/sharer.php?u={{ site.url }}{{ site.baseurl }}{{ page.url }}"
7
- onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"
8
- title="Share on Facebook" >
9
- <i class="fa fa-facebook-official share-button"></i>
10
- </a>
11
- {% endif %}
12
-
13
- {% if site.data.share.twitter %}
14
- <a href="https://twitter.com/intent/tweet?text={{ page.title }}&url={{ site.url }}{{ site.baseurl }}{{ page.url }}"
15
- onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"
16
- title="Share on Twitter" >
17
- <i class="fa fa-twitter share-button"></i>
18
- </a>
19
- {% endif %}
20
-
21
- {% if site.data.share.google %}
22
- <a href="https://plus.google.com/share?url={{ site.url }}{{ site.baseurl }}{{ page.url }}"
23
- onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"
24
- title="Share on Google+" >
25
- <i class="fa fa-google-plus share-button"></i>
26
- </a>
27
- {% endif %}
28
-
29
- {% if site.data.share.pinterest %}
30
- <a href="https://www.pinterest.com/pin/create/button/?url={{ site.url }}{{ site.baseurl }}{{ page.url }}"
31
- onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=900,height=500,toolbar=1,resizable=0'); return false;"
32
- title="Share on Pinterest" >
33
- <i class="fa fa-pinterest-p share-button"></i>
34
- </a>
35
- {% endif %}
36
-
37
- {% if site.data.share.tumblr %}
38
- <a href="https://www.tumblr.com/share/link?url={{ site.url }}{{ site.baseurl }}{{ page.url }}"
39
- onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=900,height=500,toolbar=1,resizable=0'); return false;"
40
- title="Share on Tumblr" >
41
- <i class="fa fa-tumblr share-button"></i>
42
- </a>
43
- {% endif %}
44
-
45
- {% if site.data.share.reddit %}
46
- <a href="http://www.reddit.com/submit?url={{ site.url }}{{ site.baseurl }}{{ page.url }}"
47
- onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=900,height=500,toolbar=1,resizable=0'); return false;"
48
- title="Share on Reddit" >
49
- <i class="fa fa-reddit-alien share-button"></i>
50
- </a>
51
- {% endif %}
52
-
53
- {% if site.data.share.linkedin %}
54
- <a href="https://www.linkedin.com/shareArticle?mini=true&url={{ site.url }}{{ site.baseurl }}{{ page.url }}&title={{ page.title }}&summary={{ page.description }}&source={{ site.title }}"
55
- onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"
56
- title="Share on LinkedIn" >
57
- <i class="fa fa-linkedin share-button"></i>
58
- </a>
59
- {% endif %}
60
-
61
- {% if site.data.share.mail %}
62
- <a href="mailto:?subject={{ page.title }}&amp;body=Check out this site {{ site.url }}{{ site.baseurl }}{{ page.url }}"
63
- title="Share via Email" >
64
- <i class="fa fa-envelope share-button"></i>
65
- </a>
66
- {% endif %}
67
- </div>
68
- </div>
1
+ {%- if page.share != false and jekyll.environment == "production" and site.data.share -%}
2
+ <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
3
+ <div id="share-bar">
4
+ <div class="share-buttons">
5
+ {% if site.data.share.facebook %}
6
+ <a href="https://www.facebook.com/sharer/sharer.php?u={{ site.url }}{{ site.baseurl }}{{ page.url }}"
7
+ onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"
8
+ title="Share on Facebook" >
9
+ <i class="fa fa-facebook-official share-button"></i>
10
+ </a>
11
+ {% endif %}
12
+
13
+ {% if site.data.share.twitter %}
14
+ <a href="https://twitter.com/intent/tweet?text={{ page.title }}&url={{ site.url }}{{ site.baseurl }}{{ page.url }}"
15
+ onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"
16
+ title="Share on Twitter" >
17
+ <i class="fa fa-twitter share-button"></i>
18
+ </a>
19
+ {% endif %}
20
+
21
+ {% if site.data.share.google %}
22
+ <a href="https://plus.google.com/share?url={{ site.url }}{{ site.baseurl }}{{ page.url }}"
23
+ onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"
24
+ title="Share on Google+" >
25
+ <i class="fa fa-google-plus share-button"></i>
26
+ </a>
27
+ {% endif %}
28
+
29
+ {% if site.data.share.pinterest %}
30
+ <a href="https://www.pinterest.com/pin/create/button/?url={{ site.url }}{{ site.baseurl }}{{ page.url }}"
31
+ onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=900,height=500,toolbar=1,resizable=0'); return false;"
32
+ title="Share on Pinterest" >
33
+ <i class="fa fa-pinterest-p share-button"></i>
34
+ </a>
35
+ {% endif %}
36
+
37
+ {% if site.data.share.tumblr %}
38
+ <a href="https://www.tumblr.com/share/link?url={{ site.url }}{{ site.baseurl }}{{ page.url }}"
39
+ onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=900,height=500,toolbar=1,resizable=0'); return false;"
40
+ title="Share on Tumblr" >
41
+ <i class="fa fa-tumblr share-button"></i>
42
+ </a>
43
+ {% endif %}
44
+
45
+ {% if site.data.share.reddit %}
46
+ <a href="http://www.reddit.com/submit?url={{ site.url }}{{ site.baseurl }}{{ page.url }}"
47
+ onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=900,height=500,toolbar=1,resizable=0'); return false;"
48
+ title="Share on Reddit" >
49
+ <i class="fa fa-reddit-alien share-button"></i>
50
+ </a>
51
+ {% endif %}
52
+
53
+ {% if site.data.share.linkedin %}
54
+ <a href="https://www.linkedin.com/shareArticle?mini=true&url={{ site.url }}{{ site.baseurl }}{{ page.url }}&title={{ page.title }}&summary={{ page.description }}&source={{ site.title }}"
55
+ onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"
56
+ title="Share on LinkedIn" >
57
+ <i class="fa fa-linkedin share-button"></i>
58
+ </a>
59
+ {% endif %}
60
+
61
+ {% if site.data.share.mail %}
62
+ <a href="mailto:?subject={{ page.title }}&amp;body=Check out this site {{ site.url }}{{ site.baseurl }}{{ page.url }}"
63
+ title="Share via Email" >
64
+ <i class="fa fa-envelope share-button"></i>
65
+ </a>
66
+ {% endif %}
67
+ </div>
68
+ </div>
69
69
  {%- endif -%}
@@ -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,39 +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
- {%- 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>
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>