jekyll-theme-fica 0.1.8 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
  3. data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  4. data/.github/workflows/.ci_BASE_2002.yaml.swp +0 -0
  5. data/.github/workflows/.ci_LOCAL_2002.yaml.swp +0 -0
  6. data/.github/workflows/.ci_REMOTE_2002.yaml.swp +0 -0
  7. data/.github/workflows/ci.yaml +20 -13
  8. data/.github/workflows/ci.yaml.orig +34 -0
  9. data/.github/workflows/ci_BACKUP_2002.yaml +34 -0
  10. data/.github/workflows/ci_BASE_2002.yaml +27 -0
  11. data/.github/workflows/ci_LOCAL_2002.yaml +27 -0
  12. data/.github/workflows/ci_REMOTE_2002.yaml +27 -0
  13. data/404.html +5 -3
  14. data/README.md +59 -89
  15. data/_includes/Footer.html +76 -36
  16. data/_includes/Head.html +11 -11
  17. data/_includes/Header.html +17 -23
  18. data/_includes/assets/BTT.html +8 -0
  19. data/_includes/assets/Google-Analytics.html +12 -0
  20. data/_includes/assets/anchor-headings.html +164 -0
  21. data/_includes/assets/comments.html +16 -0
  22. data/_includes/assets/toc.html +174 -0
  23. data/_layouts/default.html +12 -10
  24. data/_layouts/home.html +20 -46
  25. data/_layouts/page.html +5 -14
  26. data/_layouts/post.html +49 -50
  27. data/_layouts/post_home.html +102 -70
  28. data/_posts/2022-03-31-To-Know-if-the-nav-works.md +8 -8
  29. data/_posts/2022-04-1-Demo.md +113 -113
  30. data/_posts/2022-04-5-Getting-Started.md +74 -27
  31. data/_posts/2022-04-6-Creating-a-new-post.md +136 -124
  32. data/_sass/base.scss +472 -0
  33. data/_sass/{themes/dark theme → colors/dark-theme}/highlight.scss +0 -0
  34. data/_sass/{themes/dark theme/theme-dark.scss → colors/dark-theme/theme-dark.scss} +24 -27
  35. data/_sass/{themes/light theme → colors/light-theme}/highlight.scss +0 -0
  36. data/_sass/{themes/light theme/theme-light.scss → colors/light-theme/theme-light.scss} +18 -24
  37. data/_sass/jekyll-theme-fica.scss +1 -7
  38. data/_sass/layouts/Google-fonts.scss +139 -0
  39. data/_sass/layouts/component.scss +253 -0
  40. data/_sass/layouts/layout.scss +508 -572
  41. data/_sass/layouts/variable.scss +201 -0
  42. data/assets/css/Style.scss +7 -37
  43. data/assets/fica-icons.svg +64 -64
  44. data/assets/img/{fica_ad.png → homepage-pic.png} +0 -0
  45. data/bin/run +195 -0
  46. data/js/Main.js +21 -0
  47. data/js/back-to-top.js +16 -25
  48. data/post/index.html +3 -3
  49. metadata +36 -21
  50. data/_includes/BTT.html +0 -9
  51. data/_includes/Custom-Head.html +0 -9
  52. data/_includes/Google-Analytics.html +0 -11
  53. data/_sass/custom/styles.scss +0 -1
  54. data/_sass/custom/variables.scss +0 -1
  55. data/_sass/layouts/base.scss +0 -573
  56. data/_sass/layouts/variables.scss +0 -89
  57. data/assets/css/fica-icons.svg +0 -68
  58. data/bin/build +0 -7
  59. data/bin/server +0 -7
  60. data/docs/contributing.md +0 -69
data/_includes/Head.html CHANGED
@@ -1,12 +1,12 @@
1
1
  <head>
2
- <meta charset="utf-8">
3
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
- <meta name="viewport" content="width=device-width, initial-scale=1">
5
- <link rel="stylesheet" href="{{ "/assets/css/Style.css" | relative_url }}">
6
- {%- if page.home-%}
7
- <title>{{site.title}} | {{site.description}}</title>
8
- {%- else -%}
9
- <title>{{page.site-title}} | {{site.title}}</title>
10
- {%- endif -%}
11
- {%- include Custom-Head.html-%}
12
- </head>
2
+ <link rel="stylesheet" href="{{ "/assets/css/Style.css" | relative_url }}">
3
+ <meta charset="UTF-8" />
4
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ {%- include assets/Google-Analytics.html -%}
7
+ {%- if page.home-%}
8
+ <title>{{site.title}} | {{site.description}}</title>
9
+ {%- else -%}
10
+ <title>{{page.site-title}} | {{site.title}}</title>
11
+ {%- endif -%}
12
+ </head>
@@ -1,23 +1,17 @@
1
- <header class="site-header">
2
- <data class="u-url" href="{{ " {{site.baseurl}}/" | relative_url }}"></data>
3
- {%- assign default_paths = site.pages | map: "path" -%}
4
- <div class="wrapper_header"><a class="site-title" rel="author" href="{{site.baseurl}}/">{{site.title}}</a>
5
- <nav class="site-nav">
6
- <input type="checkbox" id="nav-trigger" class="nav-trigger" />
7
- <label for="nav-trigger">
8
- <span class="menu-icon">
9
- <svg viewBox="0 0 18 15" width="18px" height="15px">
10
- <path
11
- d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z" />
12
- </svg>
13
- </span>
14
- </label>
15
- <div class="trigger">
16
- <a class="page-link" href="{{site.header.header_link_1}}">{{site.header.header_name_1}}</a>
17
- <a class="page-link" href="{{site.baseurl}}{{site.header.header_link_2}}">{{site.header.header_name_2}}</a>
18
- <a class="page-link" href="{{site.baseurl}}{{site.header.header_link_3}}">{{site.header.header_name_3}}</a>
19
- </div>
20
- </nav>
21
- </div>
22
- </nav>
23
- </header>
1
+
2
+ {%- unless page.layout == "home" -%}
3
+ <nav class="site-nav" id="nav">
4
+ {%- else -%}
5
+ <nav class="header-home-mod site-nav" id="nav">
6
+ {%- endunless -%}
7
+ <input type="checkbox" id="check" />
8
+ <label for="check">
9
+ <span class="material-icons checkbtn"> menu </span>
10
+ </label>
11
+ <a class="logo" href="{{ site.baseurl }}/">{{ site.title }}</a>
12
+ <div class="nav-links">
13
+ <a href="{{ site.header.header_link_1 | relative_url }}">{{site.header.header_name_1}}</a>
14
+ <a href="{{ site.header.header_link_2 | relative_url }}">{{site.header.header_name_2}}</a>
15
+ <a href="{{ site.header.header_link_3 | relative_url }}">{{site.header.header_name_3}}</a>
16
+ </div>
17
+ </nav>
@@ -0,0 +1,8 @@
1
+ <!-- BTT = Back To Top -->
2
+
3
+ <buttton id="back-to-top">
4
+ <i class="material-icons" style="font-family: 'Material Icons Round' ;">keyboard_arrow_up</i>
5
+ </buttton>
6
+
7
+ <script src="{{site.baseurl}}/js/back-to-top.js"></script>
8
+ <script src="{{site.baseurl}}/js/Main.js"></script>
@@ -0,0 +1,12 @@
1
+ {%- if site.google_analytics.enabled -%}
2
+ <script defer src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics.id }}"></script>
3
+ <script>
4
+ document.addEventListener("DOMContentLoaded", function(event) {
5
+ window.dataLayer = window.dataLayer || [];
6
+ function gtag(){dataLayer.push(arguments);}
7
+
8
+ gtag('js', new Date());
9
+ gtag('config', '{{ site.google_analytics.id }}');
10
+ });
11
+ </script>
12
+ {%- endif -%}
@@ -0,0 +1,164 @@
1
+ {% capture headingsWorkspace %}
2
+ {% comment %}
3
+ Copyright (c) 2018 Vladimir "allejo" Jimenez
4
+ Permission is hereby granted, free of charge, to any person
5
+ obtaining a copy of this software and associated documentation
6
+ files (the "Software"), to deal in the Software without
7
+ restriction, including without limitation the rights to use,
8
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the
10
+ Software is furnished to do so, subject to the following
11
+ conditions:
12
+ The above copyright notice and this permission notice shall be
13
+ included in all copies or substantial portions of the Software.
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
16
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
18
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
19
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
21
+ OTHER DEALINGS IN THE SOFTWARE.
22
+ {% endcomment %}
23
+ {% comment %}
24
+ Version 1.0.11
25
+ https://github.com/allejo/jekyll-anchor-headings
26
+ "Be the pull request you wish to see in the world." ~Ben Balter
27
+ Usage:
28
+ {% include anchor_headings.html html=content anchorBody="#" %}
29
+ Parameters:
30
+ * html (string) - the HTML of compiled markdown generated by kramdown in Jekyll
31
+ Optional Parameters:
32
+ * beforeHeading (bool) : false - Set to true if the anchor should be placed _before_ the heading's content
33
+ * headerAttrs (string) : '' - Any custom HTML attributes that will be added to the heading tag; you may NOT use `id`;
34
+ the `%heading%` and `%html_id%` placeholders are available
35
+ * anchorAttrs (string) : '' - Any custom HTML attributes that will be added to the `<a>` tag; you may NOT use `href`, `class` or `title`;
36
+ the `%heading%` and `%html_id%` placeholders are available
37
+ * anchorBody (string) : '' - The content that will be placed inside the anchor; the `%heading%` placeholder is available
38
+ * anchorClass (string) : '' - The class(es) that will be used for each anchor. Separate multiple classes with a space
39
+ * anchorTitle (string) : '' - The `title` attribute that will be used for anchors
40
+ * h_min (int) : 1 - The minimum header level to build an anchor for; any header lower than this value will be ignored
41
+ * h_max (int) : 6 - The maximum header level to build an anchor for; any header greater than this value will be ignored
42
+ * bodyPrefix (string) : '' - Anything that should be inserted inside of the heading tag _before_ its anchor and content
43
+ * bodySuffix (string) : '' - Anything that should be inserted inside of the heading tag _after_ its anchor and content
44
+ * generateId (true) : false - Set to true if a header without id should generate an id to use.
45
+ Output:
46
+ The original HTML with the addition of anchors inside of all of the h1-h6 headings.
47
+ {% endcomment %}
48
+
49
+ {% assign minHeader = include.h_min | default: 1 %}
50
+ {% assign maxHeader = include.h_max | default: 6 %}
51
+ {% assign beforeHeading = include.beforeHeading %}
52
+ {% assign headerAttrs = include.headerAttrs %}
53
+ {% assign nodes = include.html | split: '<h' %}
54
+
55
+ {% capture edited_headings %}{% endcapture %}
56
+
57
+ {% for _node in nodes %}
58
+ {% capture node %}{{ _node | strip }}{% endcapture %}
59
+
60
+ {% if node == "" %}
61
+ {% continue %}
62
+ {% endif %}
63
+
64
+ {% assign nextChar = node | replace: '"', '' | strip | slice: 0, 1 %}
65
+ {% assign headerLevel = nextChar | times: 1 %}
66
+
67
+ <!-- If the level is cast to 0, it means it's not a h1-h6 tag, so let's see if we need to fix it -->
68
+ {% if headerLevel == 0 %}
69
+ <!-- Split up the node based on closing angle brackets and get the first one. -->
70
+ {% assign firstChunk = node | split: '>' | first %}
71
+
72
+ <!-- If the first chunk does NOT contain a '<', that means we've broken another HTML tag that starts with 'h' -->
73
+ {% unless firstChunk contains '<' %}
74
+ {% capture node %}<h{{ node }}{% endcapture %}
75
+ {% endunless %}
76
+
77
+ {% capture edited_headings %}{{ edited_headings }}{{ node }}{% endcapture %}
78
+ {% continue %}
79
+ {% endif %}
80
+
81
+ {% capture _closingTag %}</h{{ headerLevel }}>{% endcapture %}
82
+ {% assign _workspace = node | split: _closingTag %}
83
+ {% capture _hAttrToStrip %}{{ _workspace[0] | split: '>' | first }}>{% endcapture %}
84
+ {% assign header = _workspace[0] | replace: _hAttrToStrip, '' %}
85
+ {% assign escaped_header = header | strip_html | strip %}
86
+
87
+ {% assign _classWorkspace = _workspace[0] | split: 'class="' %}
88
+ {% assign _classWorkspace = _classWorkspace[1] | split: '"' %}
89
+ {% assign _html_class = _classWorkspace[0] %}
90
+
91
+ {% if _html_class contains "no_anchor" %}
92
+ {% assign skip_anchor = true %}
93
+ {% else %}
94
+ {% assign skip_anchor = false %}
95
+ {% endif %}
96
+
97
+ {% assign _idWorkspace = _workspace[0] | split: 'id="' %}
98
+ {% if _idWorkspace[1] %}
99
+ {% assign _idWorkspace = _idWorkspace[1] | split: '"' %}
100
+ {% assign html_id = _idWorkspace[0] %}
101
+ {% elsif include.generateId %}
102
+ <!-- If the header did not have an id we create one. -->
103
+ {% assign html_id = escaped_header | slugify %}
104
+ {% if html_id == "" %}
105
+ {% assign html_id = false %}
106
+ {% endif %}
107
+ {% capture headerAttrs %}{{ headerAttrs }} id="%html_id%"{% endcapture %}
108
+ {% endif %}
109
+
110
+ <!-- Build the anchor to inject for our heading -->
111
+ {% capture anchor %}{% endcapture %}
112
+
113
+ {% if skip_anchor == false and html_id and headerLevel >= minHeader and headerLevel <= maxHeader %}
114
+ {% if headerAttrs %}
115
+ {% capture _hAttrToStrip %}{{ _hAttrToStrip | split: '>' | first }} {{ headerAttrs | replace: '%heading%', escaped_header | replace: '%html_id%', html_id }}>{% endcapture %}
116
+ {% endif %}
117
+
118
+ {% capture anchor %}href="#{{ html_id }}"{% endcapture %}
119
+
120
+ {% if include.anchorClass %}
121
+ {% capture anchor %}{{ anchor }} class="{{ include.anchorClass }}"{% endcapture %}
122
+ {% endif %}
123
+
124
+ {% if include.anchorTitle %}
125
+ {% capture anchor %}{{ anchor }} title="{{ include.anchorTitle | replace: '%heading%', escaped_header }}"{% endcapture %}
126
+ {% endif %}
127
+
128
+ {% if include.anchorAttrs %}
129
+ {% capture anchor %}{{ anchor }} {{ include.anchorAttrs | replace: '%heading%', escaped_header | replace: '%html_id%', html_id }}{% endcapture %}
130
+ {% endif %}
131
+
132
+ {% capture anchor %}<a {{ anchor }}>{{ include.anchorBody | replace: '%heading%', escaped_header | default: '' }}</a>{% endcapture %}
133
+
134
+ <!-- In order to prevent adding extra space after a heading, we'll let the 'anchor' value contain it -->
135
+ {% if beforeHeading %}
136
+ {% capture anchor %}{{ anchor }} {% endcapture %}
137
+ {% else %}
138
+ {% capture anchor %} {{ anchor }}{% endcapture %}
139
+ {% endif %}
140
+ {% endif %}
141
+
142
+ {% capture new_heading %}
143
+ <h{{ _hAttrToStrip }}
144
+ {{ include.bodyPrefix }}
145
+ {% if beforeHeading %}
146
+ {{ anchor }}{{ header }}
147
+ {% else %}
148
+ {{ header }}{{ anchor }}
149
+ {% endif %}
150
+ {{ include.bodySuffix }}
151
+ </h{{ headerLevel }}>
152
+ {% endcapture %}
153
+
154
+ <!--
155
+ If we have content after the `</hX>` tag, then we'll want to append that here so we don't lost any content.
156
+ -->
157
+ {% assign chunkCount = _workspace | size %}
158
+ {% if chunkCount > 1 %}
159
+ {% capture new_heading %}{{ new_heading }}{{ _workspace | last }}{% endcapture %}
160
+ {% endif %}
161
+
162
+ {% capture edited_headings %}{{ edited_headings }}{{ new_heading }}{% endcapture %}
163
+ {% endfor %}
164
+ {% endcapture %}{% assign headingsWorkspace = '' %}{{ edited_headings | strip }}
@@ -0,0 +1,16 @@
1
+ <script
2
+ src="https://giscus.app/client.js"
3
+ data-repo="Involts/jekyll-theme-fica"
4
+ data-repo-id="R_kgDOHBBewA"
5
+ data-category="General"
6
+ data-category-id="DIC_kwDOHBBewM4COJVV"
7
+ data-mapping="title"
8
+ data-reactions-enabled="1"
9
+ data-emit-metadata="0"
10
+ data-input-position="bottom"
11
+ data-theme="dark"
12
+ data-lang="en"
13
+ data-loading="lazy"
14
+ crossorigin="anonymous"
15
+ async
16
+ ></script>
@@ -0,0 +1,174 @@
1
+ {% capture tocWorkspace %}
2
+ {% comment %}
3
+ Copyright (c) 2017 Vladimir "allejo" Jimenez
4
+ Permission is hereby granted, free of charge, to any person
5
+ obtaining a copy of this software and associated documentation
6
+ files (the "Software"), to deal in the Software without
7
+ restriction, including without limitation the rights to use,
8
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the
10
+ Software is furnished to do so, subject to the following
11
+ conditions:
12
+ The above copyright notice and this permission notice shall be
13
+ included in all copies or substantial portions of the Software.
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
16
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
18
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
19
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
21
+ OTHER DEALINGS IN THE SOFTWARE.
22
+ {% endcomment %}
23
+ {% comment %}
24
+ Version 1.2.0
25
+ https://github.com/allejo/jekyll-toc
26
+ "...like all things liquid - where there's a will, and ~36 hours to spare, there's usually a/some way" ~jaybe
27
+ Usage:
28
+ {% include toc.html html=content sanitize=true class="inline_toc" id="my_toc" h_min=2 h_max=3 %}
29
+ Parameters:
30
+ * html (string) - the HTML of compiled markdown generated by kramdown in Jekyll
31
+ Optional Parameters:
32
+ * sanitize (bool) : false - when set to true, the headers will be stripped of any HTML in the TOC
33
+ * class (string) : '' - a CSS class assigned to the TOC
34
+ * id (string) : '' - an ID to assigned to the TOC
35
+ * h_min (int) : 1 - the minimum TOC header level to use; any header lower than this value will be ignored
36
+ * h_max (int) : 6 - the maximum TOC header level to use; any header greater than this value will be ignored
37
+ * ordered (bool) : false - when set to true, an ordered list will be outputted instead of an unordered list
38
+ * item_class (string) : '' - add custom class(es) for each list item; has support for '%level%' placeholder, which is the current heading level
39
+ * submenu_class (string) : '' - add custom class(es) for each child group of headings; has support for '%level%' placeholder which is the current "submenu" heading level
40
+ * base_url (string) : '' - add a base url to the TOC links for when your TOC is on another page than the actual content
41
+ * anchor_class (string) : '' - add custom class(es) for each anchor element
42
+ * skip_no_ids (bool) : false - skip headers that do not have an `id` attribute
43
+ Output:
44
+ An ordered or unordered list representing the table of contents of a markdown block. This snippet will only
45
+ generate the table of contents and will NOT output the markdown given to it
46
+ {% endcomment %}
47
+
48
+ {% capture newline %}
49
+ {% endcapture %}
50
+ {% assign newline = newline | rstrip %} <!-- Remove the extra spacing but preserve the newline -->
51
+
52
+ {% capture deprecation_warnings %}{% endcapture %}
53
+
54
+ {% if include.baseurl %}
55
+ {% capture deprecation_warnings %}{{ deprecation_warnings }}<!-- jekyll-toc :: "baseurl" has been deprecated, use "base_url" instead -->{{ newline }}{% endcapture %}
56
+ {% endif %}
57
+
58
+ {% if include.skipNoIDs %}
59
+ {% capture deprecation_warnings %}{{ deprecation_warnings }}<!-- jekyll-toc :: "skipNoIDs" has been deprecated, use "skip_no_ids" instead -->{{ newline }}{% endcapture %}
60
+ {% endif %}
61
+
62
+ {% capture jekyll_toc %}{% endcapture %}
63
+ {% assign orderedList = include.ordered | default: false %}
64
+ {% assign baseURL = include.base_url | default: include.baseurl | default: '' %}
65
+ {% assign skipNoIDs = include.skip_no_ids | default: include.skipNoIDs | default: false %}
66
+ {% assign minHeader = include.h_min | default: 1 %}
67
+ {% assign maxHeader = include.h_max | default: 6 %}
68
+ {% assign nodes = include.html | strip | split: '<h' %}
69
+
70
+ {% assign firstHeader = true %}
71
+ {% assign currLevel = 0 %}
72
+ {% assign lastLevel = 0 %}
73
+
74
+ {% capture listModifier %}{% if orderedList %}ol{% else %}ul{% endif %}{% endcapture %}
75
+
76
+ {% for node in nodes %}
77
+ {% if node == "" %}
78
+ {% continue %}
79
+ {% endif %}
80
+
81
+ {% assign currLevel = node | replace: '"', '' | slice: 0, 1 | times: 1 %}
82
+
83
+ {% if currLevel < minHeader or currLevel > maxHeader %}
84
+ {% continue %}
85
+ {% endif %}
86
+
87
+ {% assign _workspace = node | split: '</h' %}
88
+
89
+ {% assign _idWorkspace = _workspace[0] | split: 'id="' %}
90
+ {% assign _idWorkspace = _idWorkspace[1] | split: '"' %}
91
+ {% assign htmlID = _idWorkspace[0] %}
92
+
93
+ {% assign _classWorkspace = _workspace[0] | split: 'class="' %}
94
+ {% assign _classWorkspace = _classWorkspace[1] | split: '"' %}
95
+ {% assign htmlClass = _classWorkspace[0] %}
96
+
97
+ {% if htmlClass contains "no_toc" %}
98
+ {% continue %}
99
+ {% endif %}
100
+
101
+ {% if firstHeader %}
102
+ {% assign minHeader = currLevel %}
103
+ {% endif %}
104
+
105
+ {% capture _hAttrToStrip %}{{ _workspace[0] | split: '>' | first }}>{% endcapture %}
106
+ {% assign header = _workspace[0] | replace: _hAttrToStrip, '' %}
107
+
108
+ {% if include.item_class and include.item_class != blank %}
109
+ {% capture listItemClass %} class="{{ include.item_class | replace: '%level%', currLevel | split: '.' | join: ' ' }}"{% endcapture %}
110
+ {% endif %}
111
+
112
+ {% if include.submenu_class and include.submenu_class != blank %}
113
+ {% assign subMenuLevel = currLevel | minus: 1 %}
114
+ {% capture subMenuClass %} class="{{ include.submenu_class | replace: '%level%', subMenuLevel | split: '.' | join: ' ' }}"{% endcapture %}
115
+ {% endif %}
116
+
117
+ {% capture anchorBody %}{% if include.sanitize %}{{ header | strip_html }}{% else %}{{ header }}{% endif %}{% endcapture %}
118
+
119
+ {% if htmlID %}
120
+ {% capture anchorAttributes %} href="{% if baseURL %}{{ baseURL }}{% endif %}#{{ htmlID }}"{% endcapture %}
121
+
122
+ {% if include.anchor_class %}
123
+ {% capture anchorAttributes %}{{ anchorAttributes }} class="{{ include.anchor_class | split: '.' | join: ' ' }}"{% endcapture %}
124
+ {% endif %}
125
+
126
+ {% capture listItem %}<a{{ anchorAttributes }}>{{ anchorBody }}</a>{% endcapture %}
127
+ {% elsif skipNoIDs == true %}
128
+ {% continue %}
129
+ {% else %}
130
+ {% capture listItem %}{{ anchorBody }}{% endcapture %}
131
+ {% endif %}
132
+
133
+ {% if currLevel > lastLevel %}
134
+ {% capture jekyll_toc %}{{ jekyll_toc }}<{{ listModifier }}{{ subMenuClass }}>{% endcapture %}
135
+ {% elsif currLevel < lastLevel %}
136
+ {% assign repeatCount = lastLevel | minus: currLevel %}
137
+
138
+ {% for i in (1..repeatCount) %}
139
+ {% capture jekyll_toc %}{{ jekyll_toc }}</li></{{ listModifier }}>{% endcapture %}
140
+ {% endfor %}
141
+
142
+ {% capture jekyll_toc %}{{ jekyll_toc }}</li>{% endcapture %}
143
+ {% else %}
144
+ {% capture jekyll_toc %}{{ jekyll_toc }}</li>{% endcapture %}
145
+ {% endif %}
146
+
147
+ {% capture jekyll_toc %}{{ jekyll_toc }}<li{{ listItemClass }}>{{ listItem }}{% endcapture %}
148
+
149
+ {% assign lastLevel = currLevel %}
150
+ {% assign firstHeader = false %}
151
+ {% endfor %}
152
+
153
+ {% assign repeatCount = minHeader | minus: 1 %}
154
+ {% assign repeatCount = lastLevel | minus: repeatCount %}
155
+ {% for i in (1..repeatCount) %}
156
+ {% capture jekyll_toc %}{{ jekyll_toc }}</li></{{ listModifier }}>{% endcapture %}
157
+ {% endfor %}
158
+
159
+ {% if jekyll_toc != '' %}
160
+ {% assign rootAttributes = '' %}
161
+ {% if include.class and include.class != blank %}
162
+ {% capture rootAttributes %} class="{{ include.class | split: '.' | join: ' ' }}"{% endcapture %}
163
+ {% endif %}
164
+
165
+ {% if include.id and include.id != blank %}
166
+ {% capture rootAttributes %}{{ rootAttributes }} id="{{ include.id }}"{% endcapture %}
167
+ {% endif %}
168
+
169
+ {% if rootAttributes %}
170
+ {% assign nodes = jekyll_toc | split: '>' %}
171
+ {% capture jekyll_toc %}<{{ listModifier }}{{ rootAttributes }}>{{ nodes | shift | join: '>' }}>{% endcapture %}
172
+ {% endif %}
173
+ {% endif %}
174
+ {% endcapture %}{% assign tocWorkspace = '' %}{{ deprecation_warnings }}{{ jekyll_toc -}}
@@ -1,14 +1,16 @@
1
1
  <!DOCTYPE html>
2
- <html>
3
- {%- include Head.html-%}
2
+ <html lang="en">
3
+ {%- include Head.html -%}
4
+ <body>
5
+ {%- include Header.html -%}
4
6
 
5
- <body>
6
- {%- include Header.html-%}
7
-
8
- <main class="page-content">
9
- <div class="wrapper">{{ content }}</div>
7
+ <main class="content">
8
+ <div class="wrapper">
9
+ {% include assets/anchor-headings.html html=content anchorBody="#" %}
10
+ </div>
10
11
  </main>
11
- {%- include BTT.html-%}
12
- {%- include Footer.html-%}
13
- </body>
12
+
13
+ {%- include Footer.html -%}
14
+ {%- include assets/BTT.html -%}
15
+ </body>
14
16
  </html>
data/_layouts/home.html CHANGED
@@ -1,51 +1,25 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
- {%- include Head.html -%}
3
+ {%- include Head.html-%}
4
4
 
5
- <body>
6
- <header class="site-header-home">
7
- {%- assign default_paths = site.pages | map: "path" -%}
8
- <div class="wrapper_header"><a class="site-title" rel="author"
9
- href="{{site.baseurl}}/">{{site.title}}</a><nav class="site-nav">
10
- <input type="checkbox" id="nav-trigger" class="nav-trigger" />
11
- <label for="nav-trigger">
12
- <span class="menu-icon">
13
- <svg viewBox="0 0 18 15" width="18px" height="15px">
14
- <path
15
- d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0
16
- h15.032C17.335,0,18,0.665,18,1.484L18,1.484z
17
- M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0
18
- c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z
19
- M18,13.516C18,14.335,17.335,15,16.516,15H1.484
20
- C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"
21
- />
22
- </svg>
23
- </span>
24
- </label>
25
- <div class="trigger">
26
- <a class="page-link" href="{{site.header.header_link_1}}">{{site.header.header_name_1}}</a>
27
- <a class="page-link"
28
- href="{{site.baseurl}}{{site.header.header_link_2}}">{{site.header.header_name_2}}</a>
29
- <a class="page-link"
30
- href="{{site.baseurl}}{{site.header.header_link_3}}">{{site.header.header_name_3}}</a>
31
- </div>
32
- </nav></div>
33
- </nav>
34
- </header>
35
- <header class="page-header" role="banner">
36
- <div class="wrapper">
37
- <p class="page-header-title">{{site.title}}</p>
38
- <p class="page-header-description">{{site.description}}</p>
39
- <img src="{{site.baseurl}}/assets/img/fica_ad.png" class="header-pic">
40
- </div>
41
- </header>
42
- <main class="page-content" aria-label="Content">
43
- <div class="wrapper">
44
- {{ content }}
45
- </div>
46
- {%- include BTT.html-%}
47
- </main>
48
- {%- include Footer.html -%}
49
- </body>
5
+ <body>
6
+ {%- include Header.html -%}
7
+ <header class="site-banner" role="banner">
8
+ <div class="banner-content" id="banner-content">
9
+ <p class="page-header-title">{{site.title}}</p>
10
+ <p class="site-banner-description">{{site.description}}</p>
11
+ <a href="{{ site.header.header_link_1 | relative_url }}">{{site.header.header_name_1}}</a>
12
+ </div>
13
+ <div class="img">
14
+ <img src="{{site.baseurl}}/assets/img/homepage-pic.png">
15
+ </div>
16
+ </header>
17
+
18
+ <main class="content">
19
+ <div class="wrapper">{% include assets/anchor-headings.html html=content anchorBody="#" %}</div>
20
+ </main>
21
+ {%- include assets/BTT.html-%}
22
+ {%- include Footer.html-%}
23
+ </body>
50
24
 
51
25
  </html>
data/_layouts/page.html CHANGED
@@ -1,14 +1,5 @@
1
- <!DOCTYPE html>
2
- <html lang="{{ page.lang | default: site.lang | default: "en" }}">
3
- {% include Head.html %}
4
- <body>
5
- {% include Header.html %}
6
- <main class="page-content" aria-label="Content">
7
- <div class="wrapper">
8
- {{ content }}
9
- </div>
10
- </main>
11
- {%- include BTT.html-%}
12
- {% include Footer.html %}
13
- </body>
14
- </html>
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {% include assets/anchor-headings.html html=content anchorBody="#" %}