jekyll-theme-fica 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) 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 +7 -0
  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/README.md +4 -3
  14. data/_includes/Footer.html +112 -85
  15. data/_includes/Head.html +12 -13
  16. data/_includes/Header.html +17 -34
  17. data/_includes/{BTT.html → assets/BTT.html} +8 -7
  18. data/_includes/{Google-Analytics.html → assets/Google-Analytics.html} +12 -12
  19. data/_includes/assets/anchor-headings.html +164 -0
  20. data/_includes/assets/comments.html +16 -0
  21. data/_includes/assets/toc.html +174 -0
  22. data/_layouts/default.html +16 -14
  23. data/_layouts/home.html +25 -67
  24. data/_layouts/page.html +5 -3
  25. data/_layouts/post.html +50 -52
  26. data/_layouts/post_home.html +112 -112
  27. data/_posts/2022-04-5-Getting-Started.md +150 -149
  28. data/_sass/{layouts/base.scss → base.scss} +472 -579
  29. data/_sass/{themes/dark theme/highlight.scss → colors/dark-theme/highlight.scss} +362 -362
  30. data/_sass/{themes/dark theme/theme-dark.scss → colors/dark-theme/theme-dark.scss} +132 -142
  31. data/_sass/{themes/light theme/highlight.scss → colors/light-theme/highlight.scss} +198 -198
  32. data/_sass/{themes/light theme/theme-light.scss → colors/light-theme/theme-light.scss} +126 -136
  33. data/_sass/jekyll-theme-fica.scss +1 -8
  34. data/_sass/layouts/component.scss +253 -0
  35. data/_sass/layouts/layout.scss +612 -718
  36. data/_sass/layouts/variable.scss +201 -0
  37. data/assets/css/Style.scss +12 -13
  38. data/bin/run +195 -150
  39. data/js/Main.js +21 -0
  40. data/js/back-to-top.js +39 -48
  41. metadata +28 -16
  42. data/_sass/custom/styles.scss +0 -1
  43. data/_sass/custom/variables.scss +0 -1
  44. data/_sass/layouts/variables.scss +0 -230
  45. data/docs/contributing.md +0 -69
@@ -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
- <!DOCTYPE html>
2
- <html>
3
- {%- include Head.html-%}
4
-
5
- <body>
6
- {%- include Header.html-%}
7
-
8
- <main class="page-content">
9
- <div class="wrapper">{{ content }}</div>
10
- </main>
11
- {%- include BTT.html-%}
12
- {%- include Footer.html-%}
13
- </body>
14
- </html>
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
- {%- include Head.html-%}
4
-
5
- <body>
6
- <header class="site-header-home">
7
- <div class="wrapper_header">
8
- <a class="site-title" rel="author" href="{{site.baseurl}}/">{{site.title}}</a>
9
- <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
- {%- 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="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>
24
+
25
+ </html>
data/_layouts/page.html CHANGED
@@ -1,3 +1,5 @@
1
- ---
2
- layout: default
3
- ---
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {% include assets/anchor-headings.html html=content anchorBody="#" %}
data/_layouts/post.html CHANGED
@@ -1,52 +1,50 @@
1
- ---
2
- layout: default
3
- ---
4
- <article class="post h-entry" itemscope
5
- itemtype="http://schema.org/BlogPosting">
6
-
7
- <header class="post-header">
8
- <h1 class="post-title p-name" itemprop="name headline">{{ page.title |
9
- escape }}</h1>
10
- <div class="post-meta text-muted">
11
- {% if site.socials.name %}
12
- {% assign author = site.socials.name %}
13
- {% endif %}
14
- {% if page.author %}
15
- {% assign author = page.author %}
16
- {% endif %}
17
- By
18
- <span itemprop="author" itemscope itemtype="http://schema.org/Person">
19
- <span class="p-author h-card text-unmuted" itemprop="name">{{ author }}</span>
20
- </span>
21
- </div>
22
- <span class="post-meta text-muted">
23
- Posted
24
- {%- assign date_format = site.fica.date_format | default: "%b %-d, %Y" -%}
25
- <time class="dt-published text-unmuted" datetime="{{ page.date |
26
- date_to_xmlschema }}" itemprop="datePublished">
27
- {{ page.date | date: date_format }}
28
- </time>
29
- </span>
30
- <span class="post-meta text-muted">
31
- {%- if page.modified_date -%}
32
-
33
- Modified
34
- {%- assign mdate = page.modified_date | date_to_xmlschema -%}
35
- <time class="dt-modified text-unmuted" datetime="{{ mdate }}"
36
- itemprop="dateModified">
37
- {{ mdate | date: date_format }}
38
- </time>
39
- {%- endif -%}
40
- </span>
41
- </header>
42
- <div class="post-content e-content" itemprop="articleBody">
43
- {{ content }}
44
- <div class="post-footer">
45
- <a href="{{ site.baseurl }}{{ site.header.header_link_2 }}">
46
- <svg>
47
- <use xlink:href="{{ 'assets/fica-icons.svg#arw-back' | relative_url
48
- }}"></use>
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="content">
8
+ <div class="post-wrapper">
9
+ <article class="post">
10
+ <header class="post-header">
11
+ <h1 class="post-title">{{ page.title | escape }}</h1>
12
+ <div class="post-meta text-muted">
13
+ {% if site.socials.name %} {% assign author = site.socials.name %} {% endif %} {% if
14
+ page.author %} {% assign author = page.author %} {% endif %} By
15
+ <span class="text-unmuted" itemprop="name">{{ author }}</span>
16
+ </div>
17
+ <span class="post-meta text-muted">
18
+ Posted {%- assign date_format = site.fica.date_format | default: "%b %-d, %Y" -%}
19
+ <time class="text-unmuted" datetime="{{ page.date | date_to_xmlschema }}">
20
+ {{ page.date | date: date_format }}
21
+ </time>
22
+ </span>
23
+ <span class="post-meta text-muted">
24
+ {%- if page.modified_date -%} Modified {%- assign mdate = page.modified_date |
25
+ date_to_xmlschema -%}
26
+ <time class="text-unmuted" datetime="{{ mdate }}">
27
+ {{ mdate | date: date_format }}
28
+ </time>
29
+ {%- endif -%}
30
+ </span>
31
+ </header>
32
+ {% include assets/anchor-headings.html html=content anchorBody="#" %}
33
+ <div class="post-footer">
34
+ <a href="{{ site.baseurl }}{{ site.header.header_link_2 }}">
35
+ <span class="material-icons-round post-nav-svg"> arrow_back_ios </span>
36
+ </a>
37
+ </div>
38
+ {%- if site.show_comments -%}
39
+ {%- include assets/comments.html -%}
40
+ {%- endif -%}
41
+ </article>
42
+ <div class="post-toc">
43
+ <h2>Contents</h2>
44
+ {% include assets/toc.html html=content h_min=1 h_max=3 %}
45
+ </div>
46
+ </div>
47
+ </main>
48
+ {%- include assets/BTT.html-%} {%- include Footer.html-%}
49
+ </body>
50
+ </html>