jekyll-theme-centos 0.1.2 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/{centos-footer.html → footer.html} +5 -5
  3. data/_includes/{centos-head.html → head.html} +0 -0
  4. data/_includes/header.html +11 -0
  5. data/_includes/header/blog.html +23 -0
  6. data/_includes/header/home.html +13 -0
  7. data/_includes/header/page.html +10 -0
  8. data/_includes/header/post.html +22 -0
  9. data/_includes/{centos-content → home}/around.html +1 -1
  10. data/_includes/home/news.html +14 -0
  11. data/_includes/{centos-content → home}/sponsors.html +2 -2
  12. data/_includes/{centos-nav.html → nav.html} +2 -1
  13. data/_includes/page/alert-danger.html +4 -0
  14. data/_includes/page/alert-info.html +4 -0
  15. data/_includes/page/alert-success.html +4 -0
  16. data/_includes/page/alert-warning.html +4 -0
  17. data/_includes/page/breadcrumbs.html +11 -0
  18. data/_includes/{centos-content/download/table-body-doc.html → page/download-body-doc.html} +0 -0
  19. data/_includes/{centos-content/download/table-body-eol.html → page/download-body-eol.html} +0 -0
  20. data/_includes/{centos-content/download/table-body.html → page/download-body.html} +0 -0
  21. data/_includes/page/download-cards.html +13 -0
  22. data/_includes/{centos-content/download/table-footer.html → page/download-footer.html} +0 -0
  23. data/_includes/{centos-content/download/table-header-doc.html → page/download-header-doc.html} +0 -0
  24. data/_includes/{centos-content/download/table-header-eol.html → page/download-header-eol.html} +0 -0
  25. data/_includes/{centos-content/download/table-header.html → page/download-header.html} +0 -0
  26. data/_includes/page/download-linux.html +20 -0
  27. data/_includes/page/download-linux/7-doc.html +5 -0
  28. data/_includes/page/download-linux/7-eol.html +5 -0
  29. data/_includes/page/download-linux/7.html +5 -0
  30. data/_includes/page/download-linux/8-doc.html +5 -0
  31. data/_includes/page/download-linux/8-eol.html +5 -0
  32. data/_includes/page/download-linux/8.html +5 -0
  33. data/_includes/{centos-content/download/stream.html → page/download-stream.html} +4 -4
  34. data/_includes/page/download-stream/8-doc.html +5 -0
  35. data/_includes/page/download-stream/8-eol.html +5 -0
  36. data/_includes/page/download-stream/8.html +5 -0
  37. data/_includes/page/figure.html +3 -0
  38. data/_includes/page/search.html +62 -0
  39. data/_includes/{centos-content → page}/toc.html +4 -2
  40. data/_includes/{centos-content → page}/video.html +1 -1
  41. data/_layouts/aside.html +16 -0
  42. data/_layouts/blog.html +50 -0
  43. data/_layouts/default.html +4 -4
  44. data/_layouts/{centos-content/download-mirror.html → download-mirror.html} +10 -7
  45. data/_layouts/download.html +25 -0
  46. data/_layouts/{centos-home.html → home.html} +9 -8
  47. data/_layouts/page.html +9 -1
  48. data/_layouts/post.html +19 -1
  49. data/_layouts/search.html +12 -0
  50. data/_layouts/{centos-content/sponsors.html → sponsors.html} +2 -2
  51. data/_sass/centos/_footer.scss +6 -6
  52. data/_sass/centos/_header.scss +32 -7
  53. data/_sass/centos/_mixins.scss +5 -4
  54. data/_sass/centos/_page.scss +248 -0
  55. data/_sass/centos/_variables.scss +13 -12
  56. data/_sass/centos/centos.scss +2 -2
  57. data/_sass/centos/mixins/{_footer-link.scss → _link-dark.scss} +1 -1
  58. data/_sass/centos/mixins/_page-card.scss +14 -0
  59. data/_sass/centos/mixins/_page-heading.scss +28 -0
  60. data/_sass/centos/mixins/_page-lists.scss +15 -0
  61. data/_sass/centos/mixins/{_content-toc.scss → _page-toc.scss} +9 -4
  62. data/assets/img/{centos-logo-white.png → logo.png} +0 -0
  63. data/assets/img/{centos-motif.png → motif.png} +0 -0
  64. data/assets/js/jquery.rss.js +1 -11
  65. data/assets/js/lunr.min.js +6 -0
  66. data/assets/js/moment.min.js +2 -7
  67. metadata +57 -52
  68. data/_includes/centos-content/1col.html +0 -11
  69. data/_includes/centos-content/2col.html +0 -15
  70. data/_includes/centos-content/admonition/caution.html +0 -4
  71. data/_includes/centos-content/admonition/idea.html +0 -4
  72. data/_includes/centos-content/admonition/note.html +0 -4
  73. data/_includes/centos-content/admonition/warning.html +0 -4
  74. data/_includes/centos-content/breadcrumbs.html +0 -11
  75. data/_includes/centos-content/download/stream-8-doc.html +0 -5
  76. data/_includes/centos-content/download/stream-8-eol.html +0 -5
  77. data/_includes/centos-content/download/stream-8.html +0 -5
  78. data/_includes/centos-content/figure.html +0 -4
  79. data/_includes/centos-content/news.html +0 -15
  80. data/_includes/centos-header.html +0 -7
  81. data/_includes/centos-header/home.html +0 -15
  82. data/_includes/centos-header/page.html +0 -12
  83. data/_includes/centos-styleguide.md +0 -243
  84. data/_layouts/centos-content/1col.html +0 -9
  85. data/_layouts/centos-content/2col.html +0 -9
  86. data/_layouts/centos-content/download.html +0 -18
  87. data/_sass/centos/_content.scss +0 -101
  88. data/_sass/centos/content/_1col.scss +0 -32
  89. data/_sass/centos/content/_2col.scss +0 -44
  90. data/_sass/centos/content/_download.scss +0 -17
  91. data/_sass/centos/content/_sponsors.scss +0 -9
  92. data/_sass/centos/header/_home.scss +0 -4
  93. data/_sass/centos/header/_page.scss +0 -4
  94. data/_sass/centos/mixins/_content-card.scss +0 -13
  95. data/_sass/centos/mixins/_content-heading.scss +0 -28
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e0e2234b8a705b993e685713a1eb5bb0a2b4cb4defd931fccff32eaf6ae7d62
4
- data.tar.gz: d937261a6bf1f979fd6d54b2ade14eae0de176f04e5e94b9d316a40c2760e15c
3
+ metadata.gz: d0de84ccabbd8fe50c89a35754f1cb449056ebb3c4a0425de5dfff0afed84b5f
4
+ data.tar.gz: a16a0939ee02d8edfd7e456257d2658d36267cf676f9f96bc342c9ef569c6b07
5
5
  SHA512:
6
- metadata.gz: 60048e1a418dd7068a4c43f8ceea2709442a5f6a399f6c4eaea399a0126ba9f8e3b653d9e87b6c12c1d1c6f9b38fb07542deb2c104a0fcb171151c8a07cb3d76
7
- data.tar.gz: 5ad6c7e926d11366ae1609088bf1cc3c28d6f5279d039a575902018c9c452a3716ed0d14a113d2a5fd908b3b6f97a140ef75993ef26105012521f877f4a936df
6
+ metadata.gz: 2abdb7b5ebfd548bcf03876f2979b4a85b5154d177f00e864a21733d13c177192d1a3b98eb477e7b4997e449ee6c26e97db7391bc136dd8cf09d1862fe82a520
7
+ data.tar.gz: 1ed8ecb27d50a2c788a00d5871df43df14b160f710df405f9d212548f6c3c9e7839fb459953c51b51aee936ead8f0c723ed806f0929902ecc13efc319e18eefe
@@ -1,7 +1,7 @@
1
- <footer class="centos-footer">
1
+ <footer class="footer">
2
2
  <div class="container">
3
3
  <div class="row justify-content-center">
4
- <section class="centos-footer-about">
4
+ <section class="about">
5
5
  <h4>About</h4>
6
6
  <ul>
7
7
  <li><a href="/about">About CentOS</a></li>
@@ -11,7 +11,7 @@
11
11
  <li><a href="/about/governance">Governance</a></li>
12
12
  </ul>
13
13
  </section>
14
- <section class="centos-footer-community">
14
+ <section class="community">
15
15
  <h4>Community</h4>
16
16
  <ul>
17
17
  <li><a href="https://wiki.centos.org/Contribute">Contribute</a></li>
@@ -23,7 +23,7 @@
23
23
  <li><a href="https://bugs.centos.org/">Submit Bug</a></li>
24
24
  </ul>
25
25
  </section>
26
- <section class="centos-footer-project">
26
+ <section class="project">
27
27
  <h4>The CentOS Project</h4>
28
28
  <p class="lead">Community-driven free software effort focused on delivering a robust open source ecosystem around a Linux platform.</p>
29
29
  <div class="lead social">
@@ -34,7 +34,7 @@
34
34
  <a href="https://www.reddit.com/r/CentOS/"><i class="fab fa-reddit"></i></a>
35
35
  </div>
36
36
  </section>
37
- <section class="centos-footer-copyright">
37
+ <section class="copyright">
38
38
  <p>Copyright &copy; 2020 The CentOS Project | <a href="/legal">Legal</a> | <a href="/legal/privacy">Privacy</a> | <a href="https://git.centos.org/centos/centos.org">Site Source</a></p>
39
39
  </section>
40
40
  </div>
@@ -0,0 +1,11 @@
1
+ <header class="header">
2
+ {% if page.layout == "home" %}
3
+ {% include header/home.html %}
4
+ {% elsif page.layout == "blog" %}
5
+ {% include header/blog.html %}
6
+ {% elsif page.layout == "blog-post" %}
7
+ {% include header/post.html %}
8
+ {% else %}
9
+ {% include header/page.html %}
10
+ {% endif %}
11
+ </header>
@@ -0,0 +1,23 @@
1
+ {% if paginator.previous_page_path %}
2
+ <a href="{{ paginator.previous_page_path }}"><span class="paginator"><i class="fas fa-arrow-left"></i></span></a>
3
+ {% else %}
4
+ <span class="paginator disabled"><i class="fas fa-arrow-left"></i></span>
5
+ {% endif %}
6
+
7
+ <section class="title">
8
+ <div class="row">
9
+ <div class="col">
10
+ <header>
11
+ <h1>{{ page.title }}</h1>
12
+ </header>
13
+ <p class="lead">{{ page.title_lead }}</p>
14
+ </div>
15
+ </div>
16
+ </section>
17
+
18
+ {% if paginator.next_page_path %}
19
+ <a href="{{ paginator.next_page_path }}"><span class="paginator"><i class="fas fa-arrow-right"></i></span></a>
20
+ {% else %}
21
+ <span class="paginator disabled"><i class="fas fa-arrow-right"></i></span>
22
+ {% endif %}
23
+
@@ -0,0 +1,13 @@
1
+ <div class="home">
2
+ <div class="row">
3
+ <div class="col-7">
4
+ <header>
5
+ <h1>{{ page.title }}</h1>
6
+ </header>
7
+ <p class="lead">{{ page.title_lead }}</p>
8
+ <p class="lead">We offer two Linux distros:</p>
9
+ <a class="btn btn-light btn-lg" role="button" href="/centos-linux"><i class="fas fa-download"></i> <strong>CentOS Linux</strong></a>
10
+ <a class="btn btn-light btn-lg" role="button" href="/centos-stream"><i class="fas fa-download"></i> <strong>CentOS Stream</strong></a>
11
+ </div>
12
+ </div>
13
+ </div>
@@ -0,0 +1,10 @@
1
+ <div class="title">
2
+ <div class="row">
3
+ <div class="col">
4
+ <header>
5
+ <h1>{{ page.title }}</h1>
6
+ </header>
7
+ <p class="lead">{{ page.title_lead }}</p>
8
+ </div>
9
+ </div>
10
+ </div>
@@ -0,0 +1,22 @@
1
+ {% if page.previous.url %}
2
+ <a href="{{ page.previous.url }}"><span class="paginator"><i class="fas fa-arrow-left"></i></span></a>
3
+ {% else %}
4
+ <span class="paginator disabled"><i class="fas fa-arrow-left"></i></span>
5
+ {% endif %}
6
+
7
+ <div class="title">
8
+ <div class="row">
9
+ <div class="col">
10
+ <header>
11
+ <h1>{{ page.title }}</h1>
12
+ </header>
13
+ <p class="lead">{{ page.title_lead }}</p>
14
+ </div>
15
+ </div>
16
+ </div>
17
+
18
+ {% if page.next.url %}
19
+ <a href="{{ page.next.url }}"><span class="paginator"><i class="fas fa-arrow-right"></i></span></a>
20
+ {% else %}
21
+ <span class="paginator disabled"><i class="fas fa-arrow-right"></i></span>
22
+ {% endif %}
@@ -1,4 +1,4 @@
1
- <section class="centos-content-around">
1
+ <section class="around">
2
2
  <header>
3
3
  <h2><i class="fas fa-globe-americas"></i> Around CentOS</h2>
4
4
  </header>
@@ -0,0 +1,14 @@
1
+ <section class="news">
2
+ <header>
3
+ <h2><i class="fas fa-calendar-alt"></i> News and events</h2>
4
+ </header>
5
+
6
+ <div class="card">
7
+ <ul class="card-body">
8
+ {% for i in site.posts limit:5 %}
9
+ <a href="{{ i.url }}"><li class="card-title">{{ i.title }}</li></a>
10
+ {% endfor %}
11
+ </ul>
12
+ </div>
13
+
14
+ </section>
@@ -1,11 +1,11 @@
1
- <section class="centos-content-sponsors">
1
+ <section class="sponsors carousel">
2
2
  <header>
3
3
  <h2><i class="fas fa-award"></i> Sponsorship</h2>
4
4
  </header>
5
5
 
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>
7
7
 
8
- <div class="centos-content-sponsors-cards">
8
+ <div class="card">
9
9
  <div class="carousel slide carousel-fade" data-ride="carousel" id="carousel-1">
10
10
  <div class="carousel-inner" role="listbox">
11
11
  {% for sponsor in site.sponsors %}
@@ -1,6 +1,6 @@
1
1
  <nav class="navbar fixed-top navbar-expand-lg navbar-dark bg-dark">
2
2
  <div class="container">
3
- <a href="/"><img src="/assets/img/centos-logo-white.png" height="32" alt="CentOS Project"></a>
3
+ <a class="navbar-brand" href="/"><img src="/assets/img/logo.png" 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">
@@ -22,6 +22,7 @@
22
22
  <li class="nav-item dropdown"><a class="dropdown-toggle nav-link" data-toggle="dropdown" aria-expanded="false" href="#"><i class="fas fa-book"></i> Documentation</a>
23
23
  <div class="dropdown-menu" role="menu"><a class="dropdown-item" role="presentation" href="https://wiki.centos.org/">Wiki</a><a class="dropdown-item" role="presentation" href="https://docs.centos.org/">Manuals</a><a class="dropdown-item" role="presentation" href="/keys">GPG Key Info</a></div>
24
24
  </li>
25
+ <li class="nav-item" role="presentation"><a class="nav-link" href="/search/"><i class="fas fa-search"></i> Search</a></li>
25
26
  <li class="nav-item" role="presentation"><a class="nav-link" href="http://wiki.centos.org/Documentation?action=show&amp;redirect=GettingHelp"><i class="fas fa-life-ring"></i> Help</a></li>
26
27
  </ul>
27
28
  </div>
@@ -0,0 +1,4 @@
1
+ <div class="alert alert-danger" role="alert">
2
+ <p class="title"><i class="fas fa-minus-circle"></i> Caution:</p>
3
+ <p>{{ include.content }}</p>
4
+ </div>
@@ -0,0 +1,4 @@
1
+ <div class="alert alert-info" role="alert">
2
+ <p class="title"><i class="fas fa-clipboard"></i> Note:</p>
3
+ <p>{{ include.content }}</p>
4
+ </div>
@@ -0,0 +1,4 @@
1
+ <div class="alert alert-success" role="alert">
2
+ <p class="title"><i class="fas fa-lightbulb"></i> Idea:</p>
3
+ <p>{{ include.content }}</p>
4
+ </div>
@@ -0,0 +1,4 @@
1
+ <div class="alert alert-warning" role="alert">
2
+ <p class="title"><i class="fas fa-exclamation-triangle"></i> Warning:</p>
3
+ <p>{{ include.content }}</p>
4
+ </div>
@@ -0,0 +1,11 @@
1
+ <ol class="breadcrumb">
2
+ {% assign crumbs = page.url | remove:'/index.html' | split: '/' %}
3
+ <li class="breadcrumb-item"><a href="/">Home</a></li>
4
+ {% for crumb in crumbs offset: 1 %}
5
+ {% if forloop.last %}
6
+ <li class="breadcrumb-item">{{ page.title }}</li>
7
+ {% else %}
8
+ <li class="breadcrumb-item"><a href="{% assign crumb_limit = forloop.index | plus: 1 %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: '/' | replace:'without-plugin/','without-plugins/' }}{% endfor %}">{{ crumb | replace:'-',' ' | remove:'.html' | capitalize }}</a></li>
9
+ {% endif %}
10
+ {% endfor %}
11
+ </ol>
@@ -0,0 +1,13 @@
1
+ <section class="card">
2
+ <header>
3
+ <h2>CentOS Linux</h2>
4
+ </header>
5
+ {% include page/download-linux.html %}
6
+ </section>
7
+
8
+ <section class="card">
9
+ <header>
10
+ <h2>CentOS Stream</h2>
11
+ </header>
12
+ {% include page/download-stream.html %}
13
+ </section>
@@ -0,0 +1,20 @@
1
+ <ul class="nav nav-tabs">
2
+ <li class="nav-item"><a class="nav-link active" role="tab" data-toggle="tab" href="#tab-linux-8">8</a></li>
3
+ <li class="nav-item"><a class="nav-link" role="tab" data-toggle="tab" href="#tab-linux-7">7</a></li>
4
+ </ul>
5
+
6
+ <div class="tab-content">
7
+
8
+ <div class="tab-pane active" role="tabpanel" id="tab-linux-8">
9
+ {% include page/download-linux/8.html %}
10
+ {% include page/download-linux/8-doc.html %}
11
+ {% include page/download-linux/8-eol.html %}
12
+ </div>
13
+
14
+ <div class="tab-pane" role="tabpanel" id="tab-linux-7">
15
+ {% include page/download-linux/7.html %}
16
+ {% include page/download-linux/7-doc.html %}
17
+ {% include page/download-linux/7-eol.html %}
18
+ </div>
19
+
20
+ </div>
@@ -0,0 +1,5 @@
1
+ {% include page/download-header-doc.html %}
2
+ {% for row in site.data.centos-linux-7-doc %}
3
+ {% include page/download-body-doc.html %}
4
+ {% endfor %}
5
+ {% include page/download-footer.html %}
@@ -0,0 +1,5 @@
1
+ {% include page/download-header-eol.html %}
2
+ {% for row in site.data.centos-linux-7-eol %}
3
+ {% include page/download-body-eol.html %}
4
+ {% endfor %}
5
+ {% include page/download-footer.html %}
@@ -0,0 +1,5 @@
1
+ {% include page/download-header.html %}
2
+ {% for row in site.data.centos-linux-7 %}
3
+ {% include page/download-body.html %}
4
+ {% endfor %}
5
+ {% include page/download-footer.html %}
@@ -0,0 +1,5 @@
1
+ {% include page/download-header-doc.html %}
2
+ {% for row in site.data.centos-linux-8-doc %}
3
+ {% include page/download-body-doc.html %}
4
+ {% endfor %}
5
+ {% include page/download-footer.html %}
@@ -0,0 +1,5 @@
1
+ {% include page/download-header-eol.html %}
2
+ {% for row in site.data.centos-linux-8-eol %}
3
+ {% include page/download-body-eol.html %}
4
+ {% endfor %}
5
+ {% include page/download-footer.html %}
@@ -0,0 +1,5 @@
1
+ {% include page/download-header.html %}
2
+ {% for row in site.data.centos-linux-8 %}
3
+ {% include page/download-body.html %}
4
+ {% endfor %}
5
+ {% include page/download-footer.html %}
@@ -1,4 +1,4 @@
1
- <section class="centos-content-download-stream">
1
+ <section class="content-download-stream">
2
2
  <ul class="nav nav-tabs">
3
3
  <li class="nav-item"><a class="nav-link active" role="tab" data-toggle="tab" href="#tab-stream-8">Latest</a></li>
4
4
  </ul>
@@ -6,9 +6,9 @@
6
6
  <div class="tab-content">
7
7
 
8
8
  <div class="tab-pane active" role="tabpanel" id="tab-stream-8">
9
- {% include centos-content/download/stream-8.html %}
10
- {% include centos-content/download/stream-8-doc.html %}
11
- {% include centos-content/download/stream-8-eol.html %}
9
+ {% include page/download-stream/8.html %}
10
+ {% include page/download-stream/8-doc.html %}
11
+ {% include page/download-stream/8-eol.html %}
12
12
  </div>
13
13
 
14
14
  </div>
@@ -0,0 +1,5 @@
1
+ {% include page/download-header-doc.html %}
2
+ {% for row in site.data.centos-stream-8-doc %}
3
+ {% include page/download-body-doc.html %}
4
+ {% endfor %}
5
+ {% include page/download-footer.html %}
@@ -0,0 +1,5 @@
1
+ {% include page/download-header-eol.html %}
2
+ {% for row in site.data.centos-stream-8-eol %}
3
+ {% include page/download-body-eol.html %}
4
+ {% endfor %}
5
+ {% include page/download-footer.html %}
@@ -0,0 +1,5 @@
1
+ {% include page/download-header.html %}
2
+ {% for row in site.data.centos-stream-8 %}
3
+ {% include page/download-body.html %}
4
+ {% endfor %}
5
+ {% include page/download-footer.html %}
@@ -0,0 +1,3 @@
1
+ <figure class="figure">
2
+ <img src="{{ include.src }}" alt="{{ include.alt | escape }}">
3
+ </figure>
@@ -0,0 +1,62 @@
1
+ <script src="/assets/js/lunr.min.js"></script>
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 %}];
21
+
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>
@@ -95,9 +95,11 @@
95
95
  {% endif %}{% endcapture %}
96
96
 
97
97
  {% if my_toc != "" %}
98
+ <section class="toc">
98
99
  <header>
99
100
  <h6>Contents:</h6>
100
101
  </header>
101
- {% endif %}
102
102
 
103
- {% assign tocWorkspace = '' %}{{ my_toc | markdownify | strip }}
103
+ {% assign tocWorkspace = '' %}{{ my_toc | markdownify | strip }}
104
+ </section>
105
+ {% endif %}
@@ -1,3 +1,3 @@
1
- <div class="centos-content-video">
1
+ <div class="video">
2
2
  <iframe class="embed-responsive-item" src="{{ include.src }}" allowfullscreen></iframe>
3
3
  </div>