jekyll-theme-centos 0.2.4 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/download/body-doc.html +3 -3
  3. data/_includes/download/body-eol.html +2 -2
  4. data/_includes/download/body.html +4 -4
  5. data/_includes/download/cards.html +3 -3
  6. data/_includes/download/linux.html +3 -3
  7. data/_includes/download/linux/7-doc.html +1 -1
  8. data/_includes/download/linux/7-eol.html +1 -1
  9. data/_includes/download/linux/7.html +1 -1
  10. data/_includes/download/linux/8-doc.html +1 -1
  11. data/_includes/download/linux/8-eol.html +1 -1
  12. data/_includes/download/linux/8.html +1 -1
  13. data/_includes/download/stream.html +2 -2
  14. data/_includes/download/stream/8-doc.html +1 -1
  15. data/_includes/download/stream/8-eol.html +1 -1
  16. data/_includes/download/stream/8.html +1 -1
  17. data/_includes/footer.html +5 -5
  18. data/_includes/header/home.html +0 -10
  19. data/_includes/home/distributions.html +12 -0
  20. data/_includes/home/news-and-events.html +13 -0
  21. data/_includes/home/{around.html → planet.html} +1 -1
  22. data/_includes/home/sponsors.html +2 -2
  23. data/_includes/navbar.html +7 -7
  24. data/_includes/post-nav-explorer.html +23 -0
  25. data/_includes/post-nav.html +3 -0
  26. data/_includes/search.html +2 -60
  27. data/_includes/top.html +1 -1
  28. data/_layouts/aside.html +16 -1
  29. data/_layouts/blog.html +14 -31
  30. data/_layouts/download-mirror.html +5 -2
  31. data/_layouts/home.html +16 -2
  32. data/_layouts/page.html +9 -5
  33. data/_layouts/post.html +16 -29
  34. data/_layouts/search.html +29 -10
  35. data/_layouts/sponsors.html +5 -2
  36. data/_sass/centos/_footer.scss +2 -4
  37. data/_sass/centos/_header.scss +14 -25
  38. data/_sass/centos/_main.scss +64 -83
  39. data/_sass/centos/_mixins.scss +3 -0
  40. data/_sass/centos/_nav.scss +3 -0
  41. data/_sass/centos/_toc.scss +2 -1
  42. data/_sass/centos/_variables.scss +27 -21
  43. data/_sass/centos/mixins/_aside-nav.scss +24 -13
  44. data/_sass/centos/mixins/_content-nav.scss +11 -0
  45. data/_sass/centos/mixins/_content.scss +16 -26
  46. data/_sass/centos/mixins/_link-list.scss +1 -1
  47. data/_sass/centos/mixins/_post-nav-explorer.scss +21 -0
  48. data/assets/img/motif.png +0 -0
  49. data/assets/js/instantsearch.min.js +27 -0
  50. metadata +11 -6
  51. data/_includes/home/news-and-sponsors.html +0 -8
  52. data/_includes/home/news.html +0 -13
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4160b1283d1b00240f5f40145a1fd0e73b026315fb3dba915722a8862955767f
4
- data.tar.gz: cec0da81559a160bb9cc4087fa214ee0b3d4de607d358bc363e7fbff4a8408cd
3
+ metadata.gz: ac6382a16afee05d836e1c99591f9fe053419617858e4088686a1327a8a13fd9
4
+ data.tar.gz: ae1c7d028817b9e1839ef0829bc497fba9671433dc54af7e5526dd2bec547bca
5
5
  SHA512:
6
- metadata.gz: bf749b86e7e86120ed154ca648fbc010345b73d84926394e1f5970f83a84abee7874f2074150c7ef70e4f40aa28e35ce0343862adb6f657b9e3f7c02beede7f8
7
- data.tar.gz: a1d02ae47e4ae2ca31bc2a31799dada1ebb562a76c6aa800ad6eb2a800e1397f4bddd50e4b153aab543082763b6be4e37de7f4bd416527c385a7b8f13ea4ba04
6
+ metadata.gz: e8d0f04e9a23150d1028335da7687875a50bda6d2adc6172f5c851c33f76fdea3a31b83c785226d0818223623e3a7fcb7418be7bb5f2833cb3194dc15ca35541
7
+ data.tar.gz: 836197ccafc2609d678f06ee6ddbb2a2f5f4e126070179899ecb922151d4b1f8ddd3c50d8845e481ad8d778d224aee18aff3f5b2fe5f248fa1ed9a6933cc1a76
@@ -1,6 +1,6 @@
1
1
  <tr>
2
- <td>{% if row["release_notes"] != "-" %}<a href="{{ row['release_notes'] }}">Release Notes</a>{% else %}Release Notes{% endif %}
3
- | {% if row["release_email"] != "-" %}<a href="{{ row['release_email'] }}">Release Email</a>{% else %}Release Email{% endif %}
4
- | {% if row["documentation"] != "-" %}<a href="{{ row['documentation'] }}">Documentation</a>{% else %}Documentation{% endif %}</td>
2
+ <td>{% if row["release_notes"] != "" %}<a href="{{ row['release_notes'] }}">Release Notes</a>{% else %}Release Notes{% endif %}
3
+ | {% if row["release_email"] != "" %}<a href="{{ row['release_email'] }}">Release Email</a>{% else %}Release Email{% endif %}
4
+ | {% if row["documentation"] != "" %}<a href="{{ row['documentation'] }}">Documentation</a>{% else %}Documentation{% endif %}</td>
5
5
  </tr>
6
6
 
@@ -1,4 +1,4 @@
1
1
  <tr>
2
- <td>{% if row["date"] != "-" %}{{ row['date'] }}{% endif %}
3
- {% if row["url"] != "-" %}<a href="{{ row['url'] }}"><i class="fas fa-exclamation-circle"></i></a>{% endif %}</td>
2
+ <td>{% if row["date"] != "" %}{{ row['date'] }}{% endif %}
3
+ {% if row["url"] != "" %}<a href="{{ row['url'] }}"><i class="fas fa-exclamation-circle"></i></a>{% endif %}</td>
4
4
  </tr>
@@ -1,7 +1,7 @@
1
1
  <tr>
2
2
  <td><a href="{{ row['iso'] }}"> {{ row['arch'] }}</a></td>
3
- <td>{% if row["rpm"] != "-" %}<a href="{{ row['rpm'] }}"> RPMs</a>{% else %}RPMs{% endif %}</td>
4
- <td>{% if row["cloud"] != "-" %}<a href="{{ row['cloud'] }}">Cloud</a>{% else %}Cloud{% endif %}
5
- | {% if row["containers"] != "-" %}<a href="{{ row['containers'] }}">Containers</a>{% else %}Containers{% endif %}
6
- | {% if row["vagrant"] != "-" %}<a href="{{ row['vagrant'] }}">Vagrant</a>{% else %}Vagrant{% endif %}</td>
3
+ <td>{% if row["rpm"] != "" %}<a href="{{ row['rpm'] }}"> RPMs</a>{% else %}RPMs{% endif %}</td>
4
+ <td>{% if row["cloud"] != "" %}<a href="{{ row['cloud'] }}">Cloud</a>{% else %}Cloud{% endif %}
5
+ | {% if row["containers"] != "" %}<a href="{{ row['containers'] }}">Containers</a>{% else %}Containers{% endif %}
6
+ | {% if row["vagrant"] != "" %}<a href="{{ row['vagrant'] }}">Vagrant</a>{% else %}Vagrant{% endif %}</td>
7
7
  </tr>
@@ -1,8 +1,8 @@
1
1
  <div class="download__content__card">
2
2
  <div class="download__content__card__header">
3
- <ul class="nav nav-pills card-header-pills">
4
- <li class="nav-item"><a class="nav-link active" role="tab" data-toggle="tab" href="#tab-stream">CentOS Stream</a></li>
5
- <li class="nav-item"><a class="nav-link" role="tab" data-toggle="tab" href="#tab-linux">CentOS Linux</a></li>
3
+ <ul class="nav nav-pills card-header-pills flex-column flex-sm-row">
4
+ <li class="nav-item flex-sm-fill text-sm-center"><a class="nav-link active" role="tab" data-toggle="tab" href="#tab-stream">CentOS Stream</a></li>
5
+ <li class="nav-item flex-sm-fill text-sm-center"><a class="nav-link" role="tab" data-toggle="tab" href="#tab-linux">CentOS Linux</a></li>
6
6
  </ul>
7
7
  </div>
8
8
  <div class="download__content__card__body tab-content">
@@ -1,8 +1,8 @@
1
1
  <div class="download__content__card">
2
2
  <div class="download__content__card__header">
3
- <ul class="nav nav-pills card-header-pills">
4
- <li class="nav-item"><a class="nav-link active" role="tab" data-toggle="tab" href="#tab-linux-8">8</a></li>
5
- <li class="nav-item"><a class="nav-link" role="tab" data-toggle="tab" href="#tab-linux-7">7</a></li>
3
+ <ul class="nav nav-pills card-header-pills flex-column flex-sm-row">
4
+ <li class="nav-item flex-sm-fill text-sm-center"><a class="nav-link active" role="tab" data-toggle="tab" href="#tab-linux-8">8</a></li>
5
+ <li class="nav-item flex-sm-fill text-sm-center"><a class="nav-link" role="tab" data-toggle="tab" href="#tab-linux-7">7</a></li>
6
6
  </ul>
7
7
  </div>
8
8
 
@@ -1,5 +1,5 @@
1
1
  {% include download/header-doc.html %}
2
- {% for row in site.data.centos-linux-7-doc %}
2
+ {% for row in site.data.centos.linux-7-doc %}
3
3
  {% include download/body-doc.html %}
4
4
  {% endfor %}
5
5
  {% include download/footer.html %}
@@ -1,5 +1,5 @@
1
1
  {% include download/header-eol.html %}
2
- {% for row in site.data.centos-linux-7-eol %}
2
+ {% for row in site.data.centos.linux-7-eol %}
3
3
  {% include download/body-eol.html %}
4
4
  {% endfor %}
5
5
  {% include download/footer.html %}
@@ -1,5 +1,5 @@
1
1
  {% include download/header.html %}
2
- {% for row in site.data.centos-linux-7 %}
2
+ {% for row in site.data.centos.linux-7 %}
3
3
  {% include download/body.html %}
4
4
  {% endfor %}
5
5
  {% include download/footer.html %}
@@ -1,5 +1,5 @@
1
1
  {% include download/header-doc.html %}
2
- {% for row in site.data.centos-linux-8-doc %}
2
+ {% for row in site.data.centos.linux-8-doc %}
3
3
  {% include download/body-doc.html %}
4
4
  {% endfor %}
5
5
  {% include download/footer.html %}
@@ -1,5 +1,5 @@
1
1
  {% include download/header-eol.html %}
2
- {% for row in site.data.centos-linux-8-eol %}
2
+ {% for row in site.data.centos.linux-8-eol %}
3
3
  {% include download/body-eol.html %}
4
4
  {% endfor %}
5
5
  {% include download/footer.html %}
@@ -1,5 +1,5 @@
1
1
  {% include download/header.html %}
2
- {% for row in site.data.centos-linux-8 %}
2
+ {% for row in site.data.centos.linux-8 %}
3
3
  {% include download/body.html %}
4
4
  {% endfor %}
5
5
  {% include download/footer.html %}
@@ -1,8 +1,8 @@
1
1
  <div class="download__content__card">
2
2
 
3
3
  <div class="download__content__card__header">
4
- <ul class="nav nav-pills card-header-pills">
5
- <li class="nav-item"><a class="nav-link active" role="tab" data-toggle="tab" href="#tab-stream-8">8</a></li>
4
+ <ul class="nav nav-pills card-header-pills flex-column flex-sm-row">
5
+ <li class="nav-item flex-sm-fill text-sm-center"><a class="nav-link active" role="tab" data-toggle="tab" href="#tab-stream-8">8</a></li>
6
6
  </ul>
7
7
  </div>
8
8
 
@@ -1,5 +1,5 @@
1
1
  {% include download/header-doc.html %}
2
- {% for row in site.data.centos-stream-8-doc %}
2
+ {% for row in site.data.centos.stream-8-doc %}
3
3
  {% include download/body-doc.html %}
4
4
  {% endfor %}
5
5
  {% include download/footer.html %}
@@ -1,5 +1,5 @@
1
1
  {% include download/header-eol.html %}
2
- {% for row in site.data.centos-stream-8-eol %}
2
+ {% for row in site.data.centos.stream-8-eol %}
3
3
  {% include download/body-eol.html %}
4
4
  {% endfor %}
5
5
  {% include download/footer.html %}
@@ -1,5 +1,5 @@
1
1
  {% include download/header.html %}
2
- {% for row in site.data.centos-stream-8 %}
2
+ {% for row in site.data.centos.stream-8 %}
3
3
  {% include download/body.html %}
4
4
  {% endfor %}
5
5
  {% include download/footer.html %}
@@ -2,9 +2,9 @@
2
2
  <div class="container">
3
3
  <div class="row">
4
4
 
5
- {% if site.footer.columns %}
6
- {% for column in site.footer.columns %}
7
- {% assign links = site.navbar | where: "name", column %}
5
+ {% if site.data.centos.footer.columns %}
6
+ {% for column in site.data.centos.footer.columns %}
7
+ {% assign links = site.data.centos.navbar | where: "name", column %}
8
8
  {% for section in links %}
9
9
  <section class="links">
10
10
  <h6><i class="{{ section.icon }}"></i> {{ section.name }}</h6>
@@ -22,7 +22,7 @@
22
22
  <h4>{{ site.title }}</h4>
23
23
  <p class="lead">{{ site.description }}</p>
24
24
  <div class="lead social">
25
- {% for item in site.footer.social %}
25
+ {% for item in site.data.centos.footer.social %}
26
26
  <a href="{{ item.link }}"><i class="{{ item.icon }}"></i></a>
27
27
  {% endfor %}
28
28
  </div>
@@ -32,7 +32,7 @@
32
32
 
33
33
  <div class="row">
34
34
  <section class="copyright">
35
- <p>Copyright &copy; {{ site.time | date: "%Y" }} {{ site.footer.copyright.author }} {% for item in site.footer.copyright.legals %} | <a href="{{ item.link }}">{{ item.text }}</a>{% endfor %}</p>
35
+ <p>Copyright &copy; {{ site.time | date: "%Y" }} {{ site.data.centos.footer.copyright.author }} {% for item in site.data.centos.footer.copyright.legals %} | <a href="{{ item.link }}">{{ item.text }}</a>{% endfor %}</p>
36
36
  </section>
37
37
  </div>
38
38
 
@@ -1,14 +1,4 @@
1
1
  <header class="header header__home">
2
2
  <h1 class="header__home__title">{{ site.title }}</h1>
3
3
  <p class="header__home__description">{{ site.description }}</p>
4
- {% if site.header.preamble %}
5
- <p class="header__home__preamble">{{ site.header.preamble }}</p>
6
- {% endif %}
7
- {% if site.header.worklines %}
8
- <div class="header__home__worklines">
9
- {% for item in site.header.worklines %}
10
- <a class="btn btn-light btn-lg" role="button" href="{{ item.link }}"><strong>{{ item.name }}</strong></a>
11
- {% endfor %}
12
- </div>
13
- {% endif %}
14
4
  </header>
@@ -0,0 +1,12 @@
1
+ <section class="home__content__distributions">
2
+ <h2>Distributions</h2>
3
+ <p class="home__content__distributions_preamble">{{ site.data.centos.distributions.preamble }}</p>
4
+
5
+ {% if site.data.centos.distributions.buttons %}
6
+ <div class="home__content__distributions__buttons">
7
+ {% for item in site.data.centos.distributions.buttons %}
8
+ <a class="btn" role="button" href="{{ item.link }}">{{ item.name }}</a>
9
+ {% endfor %}
10
+ </div>
11
+ {% endif %}
12
+ </section>
@@ -0,0 +1,13 @@
1
+ <section class="home__content__news-and-events">
2
+
3
+ <h2>News and events</h2>
4
+
5
+ <ul>
6
+ {% assign blog_posts = site.posts | where: "category", "news-and-events" %}
7
+ {% for i in blog_posts limit:4 %}
8
+ {%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
9
+ <li><a href="{{ i.url }}">{{ i.title }}</a> &mdash; <small>{{ i.date | date: date_format }}</small> {{ i.excerpt }}</li>
10
+ {% endfor %}
11
+ </ul>
12
+
13
+ </section>
@@ -1,4 +1,4 @@
1
- <section class="home__around">
1
+ <section class="home__content__planet">
2
2
  <h2>Around CentOS</h2>
3
3
  <div id="rss-feeds"></div>
4
4
  </section>
@@ -1,6 +1,6 @@
1
- <section class="home__sponsorship">
1
+ <section class="home__content__sponsors">
2
2
 
3
- <h2>Sponsorship</h2>
3
+ <h2>Sponsors</h2>
4
4
 
5
5
  <div class="carousel">
6
6
  <p>CentOS would not be possible without the support of our sponsors. We would like to thank the following product/service for being a CentOS sponsor:</p>
@@ -1,22 +1,22 @@
1
- <nav class="navbar fixed-top navbar-expand-lg navbar-dark bg-dark">
1
+ <nav class="navbar fixed-top navbar-expand-lg navbar-dark">
2
2
  <div class="container">
3
- <a class="navbar-brand" href="{{ site.identity.logo.link }}"><img src="{{ site.identity.logo.image }}" height="32" alt="{{ site.title }}"></a>
3
+ <a class="navbar-brand" href="{{ site.data.centos.identity.logo.link }}"><img src="{{ site.data.centos.identity.logo.image }}" height="32" alt="{{ site.title }}"></a>
4
4
  <button data-toggle="collapse" class="navbar-toggler" data-target="#navcol-1"><span class="sr-only">Toggle navigation</span><span class="navbar-toggler-icon"></span></button>
5
5
  <div class="collapse navbar-collapse" id="navcol-1">
6
6
  <ul class="nav navbar-nav ml-auto">
7
- {% for nav-item in site.navbar %}
7
+ {%- for nav-item in site.data.centos.navbar -%}
8
8
  {% if nav-item.menu.size == 0 %}
9
9
  <li class="nav-item" role="presentation"><a class="nav-link" href="{{ nav-item.link }}"><i class="{{ nav-item.icon }}"></i> {{ nav-item.name }}</a></li>
10
- {% else %}
10
+ {% else -%}
11
11
  <li class="nav-item dropdown"><a class="dropdown-toggle nav-link" data-toggle="dropdown" aria-expanded="false" href="#"><i class="{{ nav-item.icon }}"></i> {{ nav-item.name }}</a>
12
12
  <div class="dropdown-menu" role="menu">
13
- {% for dropdown-item in nav-item.menu %}
13
+ {%- for dropdown-item in nav-item.menu -%}
14
14
  <a class="dropdown-item" role="presentation" href="{{ dropdown-item.link }}">{{ dropdown-item.name }}</a>
15
- {% endfor %}
15
+ {% endfor -%}
16
16
  </div>
17
17
  </li>
18
18
  {% endif %}
19
- {% endfor %}
19
+ {%- endfor -%}
20
20
  </ul>
21
21
  </div>
22
22
  </div>
@@ -0,0 +1,23 @@
1
+ <nav class="post__nav__explorer">
2
+ {% if page.previous.url %}
3
+ <div class="post__nav__explorer__newer">
4
+ {% else %}
5
+ <div class="post__nav__explorer__newer--disabled">
6
+ {% endif %}
7
+ <a href="{{ page.previous.url }}"><button type="button" class="btn btn-light" data-toggle="tooltip" data-placement="top" title="Previous Post - {{ page.previous.title }}"><i class="fas fa-arrow-left"></i></button></a>
8
+ </div>
9
+ {% include top.html %}
10
+ <div class="post__nav_explorer__feeds">
11
+ <a href="{{ "/feed.xml" | relative_url }}"><button type="button" class="btn btn-light" data-toggle="tooltip" data-placement="top" title="RSS"><i class="fas fa-rss"></i></button></a>
12
+ </div>
13
+ <div class="post__nav__explorer__index">
14
+ <a href="/{{ site.pagination.indexpage }}/"><button type="button" class="btn btn-light" data-toggle="tooltip" data-placement="top" title="Blog posts"><i class="fas fa-th"></i></button></a>
15
+ </div>
16
+ {% if page.next.url %}
17
+ <div class="post__nav__explorer__older">
18
+ {% else %}
19
+ <div class="post__nav__explorer__older--disabled">
20
+ {% endif %}
21
+ <a href="{{ page.next.url }}"><button type="button" class="btn btn-light" data-toggle="tooltip" data-placement="top" title="Next Post - {{ page.next.title }}"><i class="fas fa-arrow-right"></i></button></a>
22
+ </div>
23
+ </nav>
@@ -0,0 +1,3 @@
1
+ {% include breadcrumbs.html %}
2
+ {% include toc.html html=content %}
3
+ {% include post-nav-explorer.html %}
@@ -1,62 +1,4 @@
1
- <script src="/assets/js/lunr.min.js"></script>
1
+ <div id="search-searchbar"></div>
2
2
 
3
- <script>
4
- {% assign counter = 0 %}
5
- var documents = [{% for page in site.pages %}{% if page.url contains '.xml' or page.url contains 'assets' %}{% else %}{
6
- "id": {{ counter }},
7
- "url": "{{ site.url }}{{ page.url }}",
8
- "title": "{{ page.title }}",
9
- "body": "{{ page.content | markdownify | replace: '.', '. ' | replace: '</h2>', ': ' | replace: '</h3>', ': ' | replace: '</h4>', ': ' | replace: '</p>', ' ' | strip_html | strip_newlines | replace: ' ', ' ' | replace: '"', ' ' }}"{% assign counter = counter | plus: 1 %}
10
- }, {% endif %}{% endfor %}{% for page in site.without-plugin %}{
11
- "id": {{ counter }},
12
- "url": "{{ site.url }}{{ page.url }}",
13
- "title": "{{ page.title }}",
14
- "body": "{{ page.content | markdownify | replace: '.', '. ' | replace: '</h2>', ': ' | replace: '</h3>', ': ' | replace: '</h4>', ': ' | replace: '</p>', ' ' | strip_html | strip_newlines | replace: ' ', ' ' | replace: '"', ' ' }}"{% assign counter = counter | plus: 1 %}
15
- }, {% endfor %}{% for page in site.posts %}{
16
- "id": {{ counter }},
17
- "url": "{{ site.url }}{{ page.url }}",
18
- "title": "{{ page.title }}",
19
- "body": "{{ page.date | date: "%Y/%m/%d" }} - {{ page.content | markdownify | replace: '.', '. ' | replace: '</h2>', ': ' | replace: '</h3>', ': ' | replace: '</h4>', ': ' | replace: '</p>', ' ' | strip_html | strip_newlines | replace: ' ', ' ' | replace: '"', ' ' }}"{% assign counter = counter | plus: 1 %}
20
- }{% if forloop.last %}{% else %}, {% endif %}{% endfor %}];
3
+ <div id="search-hits"></div>
21
4
 
22
- var idx = lunr(function () {
23
- this.ref('id')
24
- this.field('title')
25
- this.field('body')
26
-
27
- documents.forEach(function (doc) {
28
- this.add(doc)
29
- }, this)
30
- });
31
- function lunr_search(term) {
32
- document.getElementById('lunrsearchresults').innerHTML = '<ul></ul>';
33
- if(term) {
34
- document.getElementById('lunrsearchresults').innerHTML = "<h2>Search results for '" + term + "'</h2>" + document.getElementById('lunrsearchresults').innerHTML;
35
- //put results on the screen.
36
- var results = idx.search(term);
37
- if(results.length>0){
38
- //console.log(idx.search(term));
39
- //if results
40
- for (var i = 0; i < results.length; i++) {
41
- // more statements
42
- var ref = results[i]['ref'];
43
- var url = documents[ref]['url'];
44
- var title = documents[ref]['title'];
45
- var body = documents[ref]['body'].substring(0,160)+'...';
46
- document.querySelectorAll('#lunrsearchresults ul')[0].innerHTML = document.querySelectorAll('#lunrsearchresults ul')[0].innerHTML + "<li class='lunrsearchresult'><a href='" + url + "'><span class='title'>" + title + "</span></a><br/><span class='body'>"+ body +"</span><br/><span class='url'>"+ url +"</span></li>";
47
- }
48
- } else {
49
- document.querySelectorAll('#lunrsearchresults ul')[0].innerHTML = "<li class='lunrsearchresult'>No results found...</li>";
50
- }
51
- }
52
- return false;
53
- }
54
- </script>
55
-
56
- <form onSubmit="return lunr_search(document.getElementById('lunrsearch').value);">
57
- <p><input type="text" class="form-control" id="lunrsearch" name="q" maxlength="255" value="" placeholder="Search via Lunr.js" autofocus /></p>
58
- </form>
59
-
60
- <div id="lunrsearchresults">
61
- <ul></ul>
62
- </div>
data/_includes/top.html CHANGED
@@ -1,3 +1,3 @@
1
1
  <div class="top">
2
- <a href="#top"><button class="btn btn-light"><i class="fas fa-arrow-circle-up"></i></button></a>
2
+ <a href="#top"><button title="Page top" type="button" data-toggle="tooltip" class="btn btn-light"><i class="fas fa-arrow-circle-up"></i></button></a>
3
3
  </div>
data/_layouts/aside.html CHANGED
@@ -5,13 +5,28 @@ layout: default
5
5
  <main class="aside">
6
6
 
7
7
  <article class="aside__content">
8
+ <div class="aside__content__nav">
9
+ {% include breadcrumbs.html %}
10
+ {% include toc.html html=content %}
11
+ </div>
8
12
  {{ content }}
13
+
14
+ <div class="aside__content__nav">
15
+ <div class="aside__nav__explorer">
16
+ {% include top.html %}
17
+ </div>
18
+ </div>
19
+
9
20
  </article>
10
21
 
11
22
  <aside class="aside__nav">
12
23
  {% include breadcrumbs.html %}
13
24
  {% include toc.html html=content %}
14
- {% include top.html %}
25
+
26
+ <div class="aside__nav__explorer">
27
+ {% include top.html %}
28
+ </div>
29
+
15
30
  </aside>
16
31
 
17
32
  </main>
data/_layouts/blog.html CHANGED
@@ -4,24 +4,26 @@ layout: default
4
4
 
5
5
  <main class="blog">
6
6
 
7
- <ol class="blog__breadcrumb">
8
- <li class="blog__breadcrumb__item"><a href="/">Home</a></li>
9
- <li class="blog__breadcrumb__item abreadcrumb-item--active">{{ page.title | capitalize }}</li>
7
+ <div class="blog__content">
8
+
9
+ <ol class="blog__content__breadcrumb">
10
+ <li class="blog__content__breadcrumb__item"><a href="/">Home</a></li>
11
+ <li class="blog__content__breadcrumb__item--active">{{ page.title | capitalize }}</li>
10
12
  </ol>
11
13
 
12
- <section class="blog__entries">
14
+ <section class="blog__content__entries">
13
15
  {%- if site.posts.size > 0 -%}
14
- <div class="blog__entries__card">
16
+ <div class="blog__content__entries__card">
15
17
  {%- for post in paginator.posts -%}
16
- <div class="blog__entries__card__item">
18
+ <div class="blog__content__entries__card__item">
17
19
  {%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
18
20
  {%- if post.image -%}
19
- <a href="{{ post.url | relative_url }}"><img class="blog__entries__card__item__image" src="{{ post.image }}" alt="{{ post.title | escape }}"></a>
21
+ <a href="{{ post.url | relative_url }}"><img class="blog__content__entries__card__item__image" src="{{ post.image }}" alt="{{ post.title | escape }}"></a>
20
22
  {%- endif -%}
21
- <a href="{{ post.url | relative_url }}"><h4 class="blog__entries__card__item__title">{{ post.title | escape }}</h4></a>
22
- <p class="blog__entries__card__item__date">{{ post.date | date: date_format }}</p>
23
+ <a href="{{ post.url | relative_url }}"><h4 class="blog__content__entries__card__item__title">{{ post.title | escape }}</h4></a>
24
+ <p class="blog__content__entries__card__item__date">{{ post.date | date: date_format }}</p>
23
25
  {%- if site.show_excerpts -%}
24
- <p class="blog__entries__card__item__excerpt">{{ sponsor.excerpt }}</p>
26
+ <p class="blog__content__entries__card__item__excerpt">{{ sponsor.excerpt }}</p>
25
27
  {%- endif -%}
26
28
  </div>
27
29
  {% endfor %}
@@ -29,27 +31,8 @@ layout: default
29
31
  {%- endif -%}
30
32
  </section>
31
33
 
32
- {% if paginator.total_pages > 1 %}
33
- <nav class="blog__navbar">
34
- {% if paginator.previous_page %}
35
- <div class="blog__navbar__newer">
36
- {% else %}
37
- <div class="blog__navbar__newer--disabled">
38
- {% endif %}
39
- <a href="{{ paginator.previous_page_path }}"><button type="button" class="btn btn-light" data-toggle="tooltip" data-placement="top" title="Newer Posts"><i class="fas fa-arrow-left"></i></button></a>
40
- </div>
41
- <div class="blog__navbar__feeds">
42
- <a href="{{ "/feed.xml" | relative_url }}"><button type="button" class="btn btn-light" data-toggle="tooltip" data-placement="top" title="RSS"><i class="fas fa-rss"></i></button></a>
43
- </div>
44
- {% if paginator.next_page %}
45
- <div class="blog__navbar__older">
46
- {% else %}
47
- <div class="blog__navbar__older--disabled">
48
- {% endif %}
49
- <a href="{{ paginator.next_page_path }}"><button type="button" class="btn btn-light" data-toggle="tooltip" data-placement="top" title="Older Posts"><i class="fas fa-arrow-right"></i></button></a>
50
- </div>
34
+ {% include post-nav-explorer.html %}
35
+
51
36
  </div>
52
- {% endif %}
53
- </nav>
54
37
 
55
38
  </main>