jekyll-theme-unity 0.1.1
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.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +56 -0
- data/_config.yml +135 -0
- data/_includes/assets/Google-Analytics.html +12 -0
- data/_includes/assets/anchor-headings.html +164 -0
- data/_includes/assets/btt.html +5 -0
- data/_includes/assets/code-header.html +6 -0
- data/_includes/assets/noscript.html +3 -0
- data/_includes/assets/site-banner.html +9 -0
- data/_includes/assets/site-top-bar.html +10 -0
- data/_includes/assets/toc.html +174 -0
- data/_includes/assets/youtube-embed.html +6 -0
- data/_includes/footer.html +39 -0
- data/_includes/head.html +21 -0
- data/_includes/header.html +49 -0
- data/_layouts/default.html +23 -0
- data/_layouts/page.html +5 -0
- data/_layouts/post.html +52 -0
- data/_layouts/post_home.html +105 -0
- data/_sass/Material/baseline.scss +18 -0
- data/_sass/Material/colors.scss +130 -0
- data/_sass/Material/elevation.scss +62 -0
- data/_sass/Material/motion.scss +180 -0
- data/_sass/Material/palette.scss +118 -0
- data/_sass/Material/shape.scss +109 -0
- data/_sass/Material/state.scss +35 -0
- data/_sass/Material/typography.scss +505 -0
- data/_sass/custom/layout.scss +1 -0
- data/_sass/custom/styles_variables.scss +70 -0
- data/_sass/custom/variables.scss +1 -0
- data/_sass/jekyll-theme-unity.scss +1 -0
- data/_sass/layout/base.scss +525 -0
- data/_sass/layout/highlight-dark.scss +357 -0
- data/_sass/layout/highlight-light.scss +202 -0
- data/_sass/layout/layout.scss +581 -0
- data/_sass/layout/styles_variables.scss +156 -0
- data/_sass/variables.scss +170 -0
- data/assets/css/style.scss +10 -0
- data/assets/image/404.svg +34 -0
- data/assets/image/Unity.png +0 -0
- data/assets/image/bg-banner.png +0 -0
- data/assets/image/favicons/android-chrome-192x192.png +0 -0
- data/assets/image/favicons/android-chrome-512x512.png +0 -0
- data/assets/image/favicons/apple-touch-icon-120x120.png +0 -0
- data/assets/image/favicons/apple-touch-icon-152x152.png +0 -0
- data/assets/image/favicons/apple-touch-icon-180x180.png +0 -0
- data/assets/image/favicons/apple-touch-icon-60x60.png +0 -0
- data/assets/image/favicons/apple-touch-icon-76x76.png +0 -0
- data/assets/image/favicons/apple-touch-icon.png +0 -0
- data/assets/image/favicons/browserconfig.xml +12 -0
- data/assets/image/favicons/favicon-16x16.png +0 -0
- data/assets/image/favicons/favicon-32x32.png +0 -0
- data/assets/image/favicons/favicon.ico +0 -0
- data/assets/image/favicons/mstile-150x150.png +0 -0
- data/assets/image/favicons/mstile-310x150.png +0 -0
- data/assets/image/favicons/mstile-310x310.png +0 -0
- data/assets/image/favicons/mstile-70x70.png +0 -0
- data/assets/image/favicons/safari-pinned-tab.svg +22 -0
- data/assets/image/favicons/site.webmanifest +17 -0
- data/assets/image/mobile.png +0 -0
- data/assets/js/main.js +228 -0
- data/bin/run +196 -0
- metadata +195 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2f792abf582a2d43fc7b881be79f9332aa43e529820a393ac3ec376d031a8f1e
|
4
|
+
data.tar.gz: cd93f045f11a87fdad665b7f938a9541810951c6e63fcf0cd9a72488b7403b59
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: fb5a4cb20ce8f277a805de54d9a090c7c80e09127d92181bb11176090152a2e4836d843309f37421f3d363e0667d7ff8241911037da650fbd7a6d1889d9da1f3
|
7
|
+
data.tar.gz: f68971943dd9df662863bf08b92407f5d64795c9f9e9326048556374192dc23dbe6b88f2e581fd8cbff02c65459be820869f2498c9823001bf320ec062496ff4
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2022 Involts
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+

|
2
|
+
|
3
|
+
<img src="https://user-images.githubusercontent.com/100028421/213870390-5343694a-a02b-47c3-bda8-28dadde4ce4c.png" alt="Unity" width="200" align="left"/>
|
4
|
+
|
5
|
+
# Unity Theme
|
6
|
+
See [Unity Theme](https://involts.github.io//jekyll-theme-unity/) in action or [download it today!](https://github.com/Involts/jekyll-theme-unity/zipball/master)
|
7
|
+
|
8
|
+
United design language, simple design and multipurpose theme
|
9
|
+
|
10
|
+
|
11
|
+
# Features
|
12
|
+
- Light/dark Theme toggle
|
13
|
+
- Flat UI
|
14
|
+
- Built-in Commands
|
15
|
+
- Google Analytics
|
16
|
+
- Anchor Headings
|
17
|
+
- Table of Contents
|
18
|
+
- Video embed support
|
19
|
+
- Syntax Highlighting
|
20
|
+
- Pinned Post
|
21
|
+
|
22
|
+
# Quick Start
|
23
|
+
## Prerequisites
|
24
|
+
|
25
|
+
Follow the instructions in [jekyll Docs](https://jekyllrb.com/docs/installation/) to install `Ruby`, `RubyGems`, and `Bundler`. You may also install [Git](https://git-scm.com/)
|
26
|
+
|
27
|
+
## Step 1: Creating a site
|
28
|
+
|
29
|
+
Create a new repository from the Unity Starter and name it <GH_USERNAME>.github.io, where GH_USERNAME represents your GitHub username.
|
30
|
+
|
31
|
+
## Step 2: Installing Dependencies
|
32
|
+
|
33
|
+
Before running for the first time, go to the root directory of your site, and install dependencies as follows:
|
34
|
+
|
35
|
+
```Console
|
36
|
+
$ bundle
|
37
|
+
```
|
38
|
+
|
39
|
+
## Step 3. Running Local Server
|
40
|
+
Run the following command in the root directory of the site:
|
41
|
+
|
42
|
+
```Console
|
43
|
+
$ bundle exec jekyll s
|
44
|
+
```
|
45
|
+
|
46
|
+
After a while, navigate to the site at http://localhost:4000.
|
47
|
+
|
48
|
+
## Documentation
|
49
|
+
For more details on usage, please refer to the tutorial on the demo [website](https://involts.github.io/jekyll-theme-unity/home) / [wiki](https://github.com/Involts/jekyll-theme-unity/wiki). Note that the tutorial is based on the latest release, and the features of the default branch are usually ahead of the documentation.
|
50
|
+
|
51
|
+
## Contributing
|
52
|
+
|
53
|
+
Interested in contributing to Unity Theme? We'd love your help. Unity Theme is an open source project, built one contribution at a time by users like you. See [the contributing file](.github/CONTRIBUTING.md) for instructions on how to contribute.
|
54
|
+
|
55
|
+
## Licence
|
56
|
+
This work is published under [MIT](https://github.com/Involts/jekyll-theme-unity/blob/master/LICENSE.txt) License.
|
data/_config.yml
ADDED
@@ -0,0 +1,135 @@
|
|
1
|
+
# jekyll-theme-unity Configuration
|
2
|
+
|
3
|
+
|
4
|
+
remote_theme: Involts/jekyll-theme-unity
|
5
|
+
|
6
|
+
title: Jekyll Theme Unity
|
7
|
+
description: Based on Material 3 design principles
|
8
|
+
|
9
|
+
# Change the following value to '/PROJECT_NAME' ONLY IF your site type is GitHub Pages Project sites
|
10
|
+
# and doesn't have a custom domain.
|
11
|
+
baseurl: '/jekyll-theme-unity'
|
12
|
+
# Change the value to 'https://GITHUB_USERNAME.github.io/'
|
13
|
+
url: 'https://involts.github.io/'
|
14
|
+
|
15
|
+
# The author of the post
|
16
|
+
post_author: Involts
|
17
|
+
|
18
|
+
show_post_descriptions: true # if false, it disables Post descriptions
|
19
|
+
|
20
|
+
google_analytics:
|
21
|
+
enabled: true # if false, it disables Google Analytics
|
22
|
+
id: # fill in your Google Analytics ID
|
23
|
+
|
24
|
+
# icons are from https://fonts.google.com/icons
|
25
|
+
header:
|
26
|
+
header_1_name: Download
|
27
|
+
header_1_icon: file_download
|
28
|
+
header_1_link: https://github.com/Involts/jekyll-theme-unity/archive/refs/heads/master.zip
|
29
|
+
|
30
|
+
header_2_name: Post
|
31
|
+
header_2_icon: format_list_bulleted
|
32
|
+
header_2_link: /Posts/
|
33
|
+
|
34
|
+
header_3_name: About
|
35
|
+
header_3_icon: info
|
36
|
+
header_3_link: /About
|
37
|
+
|
38
|
+
header_4_name: Question
|
39
|
+
header_4_icon: question_mark
|
40
|
+
header_4_link: /
|
41
|
+
|
42
|
+
header_home_link: /home
|
43
|
+
|
44
|
+
footer:
|
45
|
+
# Section 1
|
46
|
+
footer_section_1_title: jekyll-theme-unity
|
47
|
+
footer_section_1_links_1_name: Download
|
48
|
+
footer_section_1_links_1_link: /home
|
49
|
+
|
50
|
+
footer_section_1_links_2_name: Post
|
51
|
+
footer_section_1_links_2_link: /Posts/
|
52
|
+
|
53
|
+
footer_section_1_links_3_name: About
|
54
|
+
footer_section_1_links_3_link: /About
|
55
|
+
|
56
|
+
# Section 2
|
57
|
+
footer_section_2_title: You're Site
|
58
|
+
footer_section_2_links_1_name: Lorem
|
59
|
+
footer_section_2_links_1_link: /home
|
60
|
+
|
61
|
+
footer_section_2_links_2_name: ispum
|
62
|
+
footer_section_2_links_2_link: /home
|
63
|
+
|
64
|
+
footer_section_2_links_3_name: dolor
|
65
|
+
footer_section_2_links_3_link: /home
|
66
|
+
|
67
|
+
# Section 3
|
68
|
+
footer_section_3_title: Customize
|
69
|
+
footer_section_3_links_1_name: Lorem
|
70
|
+
footer_section_3_links_1_link: /home
|
71
|
+
|
72
|
+
footer_section_3_links_2_name: ispum
|
73
|
+
footer_section_3_links_2_link: /home
|
74
|
+
|
75
|
+
footer_section_3_links_3_name: dolor
|
76
|
+
footer_section_3_links_3_link: /home
|
77
|
+
|
78
|
+
footer_copyright:
|
79
|
+
show-footer-copyright: true # if false, it disables copyright in footer
|
80
|
+
show-theme-name: true # if false, it disables theme name
|
81
|
+
|
82
|
+
footer_copyright_1_name: Involts
|
83
|
+
footer_copyright_1_link: https://github.com/involts
|
84
|
+
|
85
|
+
footer_copyright_2_name: Repositories
|
86
|
+
footer_copyright_2_link: https://github.com/Involts?tab=repositories
|
87
|
+
|
88
|
+
footer_copyright_3_name: RubyGems
|
89
|
+
footer_copyright_3_link: https://rubygems.org/profiles/Involts
|
90
|
+
|
91
|
+
footer_copyright_4_name: Bugs
|
92
|
+
footer_copyright_4_link: https://github.com/Involts/jekyll-theme-unity/issues/new
|
93
|
+
|
94
|
+
permalink: /Post/:title/
|
95
|
+
|
96
|
+
# Paginate
|
97
|
+
paginate: true
|
98
|
+
paginate: 6
|
99
|
+
paginate_path: "/Posts/page:num/"
|
100
|
+
|
101
|
+
date_format: "%b %-d, %Y"
|
102
|
+
|
103
|
+
plugins:
|
104
|
+
- jekyll-feed
|
105
|
+
- jekyll-seo-tag
|
106
|
+
- jekyll-paginate
|
107
|
+
- jekyll-redirect-from
|
108
|
+
|
109
|
+
whitelist:
|
110
|
+
- jekyll-redirect-from
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
exclude:
|
115
|
+
- "*.gem"
|
116
|
+
- "*.gemspec"
|
117
|
+
- README.md
|
118
|
+
- LICENSE
|
119
|
+
- docs
|
120
|
+
- RubyGems
|
121
|
+
- gm_bld
|
122
|
+
- gitignore
|
123
|
+
|
124
|
+
#---------------The options BELLOW are not recommended to be modified------------------#
|
125
|
+
|
126
|
+
kramdown:
|
127
|
+
syntax_highlighter: rouge
|
128
|
+
syntax_highlighter_opts: # Rouge Options › https://github.com/jneen/rouge#full-options
|
129
|
+
css_class: highlight
|
130
|
+
# default_lang: console
|
131
|
+
span:
|
132
|
+
line_numbers: false
|
133
|
+
block:
|
134
|
+
line_numbers: true
|
135
|
+
start_line: 1
|
@@ -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,9 @@
|
|
1
|
+
<div class="site-banner">
|
2
|
+
<div class="banner-content">
|
3
|
+
<p class="banner-title">{{ page.banner_title }}</p>
|
4
|
+
<p class="banner-description">{{ page.banner_description }}</p>
|
5
|
+
{%- unless page.hide_banner_btn -%}
|
6
|
+
<a href="{{site.header.header_1_link | relative_url }}" class="btn">Download</a>
|
7
|
+
{%- endunless -%}
|
8
|
+
</div>
|
9
|
+
</div>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<section class="site-top-bar">
|
2
|
+
<input type="checkbox" id="top-bar-checkbtn" />
|
3
|
+
<label for="top-bar-checkbtn">
|
4
|
+
<span class="material-symbols-rounded"> menu </span>
|
5
|
+
</label>
|
6
|
+
<a href="{{ site.baseurl }}/">
|
7
|
+
<img src="{{ 'assets/image/Unity.png' | relative_url }}" alt="">
|
8
|
+
<p class="title">{{ site.title }}</p>
|
9
|
+
</a>
|
10
|
+
</section>
|
@@ -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 -}}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<div class="video-container">
|
2
|
+
<iframe class="embed-video youtube lazyload" src="https://www.youtube.com/embed/{{ include.id }}"
|
3
|
+
title="YouTube video player" frameborder="0"
|
4
|
+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
5
|
+
allowfullscreen></iframe>
|
6
|
+
</div>
|
@@ -0,0 +1,39 @@
|
|
1
|
+
<footer class="site-footer">
|
2
|
+
<svg _ngcontent-iov-c40="" aria-hidden="true" width="100%" height="8" fill="none" xmlns="http://www.w3.org/2000/svg"><pattern _ngcontent-iov-c40="" id="a" width="91" height="8" patternUnits="userSpaceOnUse"><g _ngcontent-iov-c40="" clip-path="url(#clip0_2426_11367)"><path _ngcontent-iov-c40="" d="M114 4c-5.067 4.667-10.133 4.667-15.2 0S88.667-.667 83.6 4 73.467 8.667 68.4 4 58.267-.667 53.2 4 43.067 8.667 38 4 27.867-.667 22.8 4 12.667 8.667 7.6 4-2.533-.667-7.6 4s-10.133 4.667-15.2 0S-32.933-.667-38 4s-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0" stroke="#E1E3E1" stroke-linecap="square"></path></g></pattern><rect _ngcontent-iov-c40="" width="100%" height="100%" fill="url(#a)"></rect></svg>
|
3
|
+
<div class="footer-wrapper">
|
4
|
+
<div class="footer-links-container">
|
5
|
+
<p>{{site.footer.footer_section_1_title}}</p>
|
6
|
+
<a href="{{site.footer.footer_section_1_links_1_link | relative_url }}">{{site.footer.footer_section_1_links_1_name}}</a>
|
7
|
+
<a href="{{site.footer.footer_section_1_links_2_link | relative_url }}">{{site.footer.footer_section_1_links_2_name}}</a>
|
8
|
+
<a href="{{site.footer.footer_section_1_links_3_link | relative_url }}">{{site.footer.footer_section_1_links_3_name}}</a>
|
9
|
+
</div>
|
10
|
+
<div class="footer-links-container">
|
11
|
+
<p>{{site.footer.footer_section_2_title}}</p>
|
12
|
+
<a href="{{site.footer.footer_section_2_links_1_link | relative_url }}">{{site.footer.footer_section_2_links_1_name}}</a>
|
13
|
+
<a href="{{site.footer.footer_section_2_links_2_link | relative_url }}">{{site.footer.footer_section_2_links_2_name}}</a>
|
14
|
+
<a href="{{site.footer.footer_section_2_links_3_link | relative_url }}">{{site.footer.footer_section_1_links_3_name}}</a>
|
15
|
+
</div>
|
16
|
+
<div class="footer-links-container">
|
17
|
+
<p>{{site.footer.footer_section_3_title}}</p>
|
18
|
+
<a href="{{site.footer.footer_section_3_links_1_link | relative_url }}">{{site.footer.footer_section_3_links_1_name}}</a>
|
19
|
+
<a href="{{site.footer.footer_section_3_links_2_link | relative_url }}">{{site.footer.footer_section_3_links_2_name}}</a>
|
20
|
+
<a href="{{site.footer.footer_section_3_links_3_link | relative_url }}">{{site.footer.footer_section_3_links_3_name}}</a>
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
{%- if site.footer_copyright.show-footer-copyright -%}
|
24
|
+
<section class="legal">
|
25
|
+
<a href="{{site.footer_copyright.footer_copyright_1_link | relative_url }}">{{site.footer_copyright.footer_copyright_1_name}}</a>
|
26
|
+
<a href="{{site.footer_copyright.footer_copyright_2_link | relative_url }}">{{site.footer_copyright.footer_copyright_2_name}}</a>
|
27
|
+
<a href="{{site.footer_copyright.footer_copyright_3_link | relative_url }}">{{site.footer_copyright.footer_copyright_3_name}}</a>
|
28
|
+
<a href="{{site.footer_copyright.footer_copyright_4_link | relative_url }}">{{site.footer_copyright.footer_copyright_4_name}}</a>
|
29
|
+
{%- if site.footer_copyright.show-footer-copyright -%}
|
30
|
+
<div class="theme-title">
|
31
|
+
<span class="material-symbols-rounded">
|
32
|
+
area_chart
|
33
|
+
</span>
|
34
|
+
<p>Jekyll Theme Unity</p>
|
35
|
+
</div>
|
36
|
+
{%- endif -%}
|
37
|
+
</section>
|
38
|
+
{%- endif -%}
|
39
|
+
</footer>
|