jekyll-theme-fica 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- data/.github/workflows/ci.yaml +5 -2
- data/.github/workflows/ci.yaml.orig +34 -0
- data/404.html +12 -10
- data/License.md +2 -8
- data/README.md +53 -49
- data/_includes/Footer.html +88 -85
- data/_includes/Head.html +24 -12
- data/_includes/Header.html +21 -34
- data/_includes/assets/BTT.html +8 -0
- data/_includes/{Google-Analytics.html → assets/Google-Analytics.html} +12 -12
- data/_includes/assets/anchor-headings.html +164 -0
- data/_includes/assets/comments.html +16 -0
- data/_includes/assets/toc.html +174 -0
- data/_layouts/default.html +16 -14
- data/_layouts/home.html +25 -67
- data/_layouts/page.html +5 -3
- data/_layouts/post.html +48 -52
- data/_layouts/post_list.html +103 -0
- data/_posts/2022-03-31-To-Know-if-the-nav-works.md +9 -8
- data/_posts/{2022-04-1-Demo.md → 2022-04-1-Elements-of-Fica-Theme.md} +111 -113
- data/_posts/2022-04-5-Getting-Started.md +149 -149
- data/_posts/2022-04-6-Creating-a-new-post.md +144 -136
- data/_posts/2023-04-24-Fica-Customization.md +43 -0
- data/_sass/base.scss +437 -0
- data/_sass/{themes/dark theme/highlight.scss → colors/dark-theme/highlight.scss} +362 -362
- data/_sass/{themes/dark theme/theme-dark.scss → colors/dark-theme/theme-dark.scss} +132 -142
- data/_sass/{themes/light theme/highlight.scss → colors/light-theme/highlight.scss} +198 -198
- data/_sass/{themes/light theme/theme-light.scss → colors/light-theme/theme-light.scss} +126 -136
- data/_sass/jekyll-theme-fica.scss +1 -8
- data/_sass/layouts/Google-fonts.scss +103 -138
- data/_sass/layouts/component.scss +272 -0
- data/_sass/layouts/layout.scss +657 -718
- data/_sass/layouts/typography.scss +492 -0
- data/_sass/layouts/variable.scss +215 -0
- data/assets/css/Style.scss +4 -13
- data/assets/favicons/android-chrome-192x192.png +0 -0
- data/assets/favicons/android-chrome-512x512.png +0 -0
- data/assets/favicons/apple-touch-icon.png +0 -0
- data/assets/favicons/browserconfig.xml +9 -0
- data/assets/favicons/favicon-16x16.png +0 -0
- data/assets/favicons/favicon-32x32.png +0 -0
- data/assets/favicons/favicon.ico +0 -0
- data/assets/favicons/mstile-150x150.png +0 -0
- data/assets/favicons/safari-pinned-tab.svg +32 -0
- data/assets/favicons/site.webmanifest +19 -0
- data/assets/img/homepage-pic.png +0 -0
- data/bin/run +195 -150
- data/js/Main.js +74 -0
- data/js/back-to-top.js +39 -48
- data/logo.png +0 -0
- data/post/index.html +3 -3
- metadata +35 -32
- data/_includes/BTT.html +0 -7
- data/_layouts/post_home.html +0 -113
- data/_sass/custom/styles.scss +0 -1
- data/_sass/custom/variables.scss +0 -1
- data/_sass/layouts/base.scss +0 -579
- data/_sass/layouts/variables.scss +0 -230
- data/docs/contributing.md +0 -69
@@ -1,12 +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 -%}
|
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 -}}
|
data/_layouts/default.html
CHANGED
@@ -1,14 +1,16 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
{%- include Head.html -%}
|
4
|
+
<body>
|
5
|
+
{%- include Header.html -%}
|
6
|
+
|
7
|
+
<main class="content">
|
8
|
+
<div class="wrapper">
|
9
|
+
{% include assets/anchor-headings.html html=content anchorBody="#" %}
|
10
|
+
</div>
|
11
|
+
</main>
|
12
|
+
|
13
|
+
{%- include Footer.html -%}
|
14
|
+
{%- include assets/BTT.html -%}
|
15
|
+
</body>
|
16
|
+
</html>
|
data/_layouts/home.html
CHANGED
@@ -1,67 +1,25 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
{%- if site.header.external_link_1 -%}
|
27
|
-
<a class="btn-nav" href="{{site.header.header_link_1}}">{{site.header.header_name_1}}</a>
|
28
|
-
{%- else -%}
|
29
|
-
<a class="btn-nav" href="{{site.baseurl}}{{site.header.header_link_1}}">{{site.header.header_name_1}}</a>
|
30
|
-
{%- endif -%}
|
31
|
-
|
32
|
-
{%- if site.header.external_link_2 -%}
|
33
|
-
<a class="page-link" href="{{site.header.header_link_2}}">{{site.header.header_name_2}}</a>
|
34
|
-
{%- else -%}
|
35
|
-
<a class="page-link" href="{{site.baseurl}}{{site.header.header_link_2}}">{{site.header.header_name_2}}</a>
|
36
|
-
{%- endif -%}
|
37
|
-
|
38
|
-
{%- if site.header.external_link_3 -%}
|
39
|
-
<a class="page-link" href="{{site.header.header_link_3}}">{{site.header.header_name_3}}</a>
|
40
|
-
{%- else -%}
|
41
|
-
<a class="page-link" href="{{site.baseurl}}{{site.header.header_link_3}}">{{site.header.header_name_3}}</a>
|
42
|
-
{%- endif -%}
|
43
|
-
</div>
|
44
|
-
</nav>
|
45
|
-
</div>
|
46
|
-
</nav>
|
47
|
-
</header>
|
48
|
-
<header class="site-banner" role="banner">
|
49
|
-
<div class="banner-content">
|
50
|
-
<p class="page-header-title">{{site.title}}</p>
|
51
|
-
<p class="site-banner-description">{{site.description}}</p>
|
52
|
-
{%- if site.header.external_link_1 -%}
|
53
|
-
<a class="btn-nav" href="{{site.header.header_link_1}}">{{site.header.header_name_1}}</a>
|
54
|
-
{%- else -%}
|
55
|
-
<a class="btn-nav" href="{{site.baseurl}}{{site.header.header_link_1}}">{{site.header.header_name_1}}</a>
|
56
|
-
{%- endif -%}
|
57
|
-
</div>
|
58
|
-
<img src="{{site.baseurl}}/assets/img/homepage-pic.png">
|
59
|
-
</header>
|
60
|
-
|
61
|
-
<main class="page-content">
|
62
|
-
<div class="wrapper">{{ content }}</div>
|
63
|
-
</main>
|
64
|
-
{%- include BTT.html-%}
|
65
|
-
{%- include Footer.html-%}
|
66
|
-
</body>
|
67
|
-
</html>
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
{%- include Head.html-%}
|
4
|
+
|
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="site-banner-img-container">
|
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>
|
24
|
+
|
25
|
+
</html>
|
data/_layouts/page.html
CHANGED
data/_layouts/post.html
CHANGED
@@ -1,52 +1,48 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
</svg>
|
50
|
-
</a>
|
51
|
-
</div>
|
52
|
-
</article>
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
{%- include Head.html-%}
|
4
|
+
|
5
|
+
<body>
|
6
|
+
{%- include Header.html-%}
|
7
|
+
<main class="post-content">
|
8
|
+
<article class="post">
|
9
|
+
<header class="post-header">
|
10
|
+
<h1 class="post-title">{{ page.title | escape }}</h1>
|
11
|
+
<div class="post-meta text-muted">
|
12
|
+
{% if site.socials.name %} {% assign author = site.socials.name %} {% endif %} {% if
|
13
|
+
page.author %} {% assign author = page.author %} {% endif %} By
|
14
|
+
<span class="text-unmuted" itemprop="name">{{ author }}</span>
|
15
|
+
</div>
|
16
|
+
<span class="post-meta text-muted">
|
17
|
+
Posted {%- assign date_format = site.fica.date_format | default: "%b %-d, %Y" -%}
|
18
|
+
<time class="text-unmuted" datetime="{{ page.date | date_to_xmlschema }}">
|
19
|
+
{{ page.date | date: date_format }}
|
20
|
+
</time>
|
21
|
+
</span>
|
22
|
+
<span class="post-meta text-muted">
|
23
|
+
{%- if page.modified_date -%} • Modified {%- assign mdate = page.modified_date |
|
24
|
+
date_to_xmlschema -%}
|
25
|
+
<time class="text-unmuted" datetime="{{ mdate }}">
|
26
|
+
{{ mdate | date: date_format }}
|
27
|
+
</time>
|
28
|
+
{%- endif -%}
|
29
|
+
</span>
|
30
|
+
</header>
|
31
|
+
{% include assets/anchor-headings.html html=content anchorBody="#" %}
|
32
|
+
<div class="post-footer">
|
33
|
+
<a href="{{ site.Header.header_link_2 | relative_url }}" class="material-icons-round post-nav-svg"> arrow_back_ios </a>
|
34
|
+
</div>
|
35
|
+
{%- if site.show_comments -%}
|
36
|
+
{%- include assets/comments.html -%}
|
37
|
+
{%- endif -%}
|
38
|
+
</article>
|
39
|
+
{%- unless page.post_toc == false -%}
|
40
|
+
<div class="post-toc" id="toc">
|
41
|
+
<h2>Contents</h2>
|
42
|
+
{% include assets/toc.html html=content h_min=1 h_max=3 %}
|
43
|
+
</div>
|
44
|
+
{%- endunless -%}
|
45
|
+
</main>
|
46
|
+
{%- include assets/BTT.html-%} {%- include Footer.html-%}
|
47
|
+
</body>
|
48
|
+
</html>
|