jekyll-theme-fica 0.2.2 → 0.3.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 +4 -4
- data/.github/workflows/ci.yaml +5 -9
- data/404.html +12 -10
- data/LICENSE.txt +1 -1
- data/License.md +2 -8
- data/README.md +56 -53
- data/_includes/Footer.html +85 -109
- data/_includes/Head.html +15 -2
- data/_includes/Header.html +14 -10
- data/_includes/assets/BTT.html +1 -1
- data/_includes/assets/comments.html +1 -1
- data/_layouts/home.html +2 -2
- data/_layouts/post.html +5 -7
- 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 +8 -9
- 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 +79 -114
- data/_sass/jekyll-theme-fica.scss +1 -1
- data/_sass/layouts/Google-fonts.scss +103 -138
- data/_sass/layouts/component.scss +49 -30
- data/_sass/layouts/layout.scss +206 -161
- data/_sass/layouts/typography.scss +492 -0
- data/_sass/layouts/variable.scss +22 -8
- data/assets/css/Style.scss +1 -9
- 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/js/Main.js +55 -2
- data/logo.png +0 -0
- data/post/index.html +3 -3
- metadata +24 -33
- data/.github/workflows/.ci_BASE_2002.yaml.swp +0 -0
- data/.github/workflows/.ci_LOCAL_2002.yaml.swp +0 -0
- data/.github/workflows/.ci_REMOTE_2002.yaml.swp +0 -0
- data/.github/workflows/ci_BACKUP_2002.yaml +0 -34
- data/.github/workflows/ci_BASE_2002.yaml +0 -27
- data/.github/workflows/ci_LOCAL_2002.yaml +0 -27
- data/.github/workflows/ci_REMOTE_2002.yaml +0 -27
- data/_layouts/post_home.html +0 -113
data/js/Main.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
const nav = document.getElementById("nav")
|
2
|
-
const navcheck = document.getElementById("check")
|
1
|
+
const nav = document.getElementById("site-nav")
|
2
|
+
const navcheck = document.getElementById("site-nav-check")
|
3
3
|
const screenWidth = window.innerWidth;
|
4
|
+
const headers= document.getElementsByTagName('h1', "h2", "h3", "h4", "h5")
|
4
5
|
window.addEventListener("resize", function () {
|
5
6
|
if (window.innerWidth !== screenWidth) {
|
6
7
|
// Do something
|
@@ -18,4 +19,56 @@ navcheck.addEventListener('click', () => {
|
|
18
19
|
nav.style.position = "static";
|
19
20
|
document.documentElement.style.overflow = "auto";
|
20
21
|
}
|
22
|
+
});
|
23
|
+
// window.onscroll = function() {NavBar()};
|
24
|
+
|
25
|
+
// var navbar = document.getElementById("nav");
|
26
|
+
// var navbaroffset = navbar.offsetTop;
|
27
|
+
|
28
|
+
// function NavBar() {
|
29
|
+
// if (window.pageYOffset >= 30) {
|
30
|
+
// navbar.classList.add("sticky")
|
31
|
+
// } else {
|
32
|
+
// navbar.classList.remove("sticky");
|
33
|
+
// }
|
34
|
+
// }
|
35
|
+
|
36
|
+
// function scrollTo(element, to, duration) {
|
37
|
+
// if (duration <= 0) return;
|
38
|
+
// var difference = to - element.scrollTop;
|
39
|
+
// var perTick = difference / duration * 10;
|
40
|
+
|
41
|
+
// setTimeout(function() {
|
42
|
+
// element.scrollTop = element.scrollTop + perTick;
|
43
|
+
// if (element.scrollTop === to) return;
|
44
|
+
// scrollTo(element, to, duration - 10);
|
45
|
+
// }, 10);
|
46
|
+
// }
|
47
|
+
// scrollTo(document.body, headers.offsetTop, 600);
|
48
|
+
window.addEventListener("DOMContentLoaded", () => {
|
49
|
+
const observer = new IntersectionObserver((entries) => {
|
50
|
+
if (document.querySelector("#toc")) {
|
51
|
+
entries.forEach((entry) => {
|
52
|
+
const id = entry.target.getAttribute("id");
|
53
|
+
if (entry.isIntersecting === true) {
|
54
|
+
document.querySelector(`main li a[href="#${id}"]`).parentElement.classList.add("active");
|
55
|
+
document
|
56
|
+
.querySelector(`main li a[href="#${id}"]`)
|
57
|
+
.parentElement.classList.remove("decative");
|
58
|
+
} else {
|
59
|
+
document
|
60
|
+
.querySelector(`main li a[href="#${id}"]`)
|
61
|
+
.parentElement.classList.remove("active");
|
62
|
+
document
|
63
|
+
.querySelector(`main li a[href="#${id}"]`)
|
64
|
+
.parentElement.classList.add("decative");
|
65
|
+
}
|
66
|
+
});
|
67
|
+
}
|
68
|
+
});
|
69
|
+
|
70
|
+
// Track all sections that have an `id` applied
|
71
|
+
document.querySelectorAll("h1[id], h2[id], h3[id]").forEach((h1, h2, h3) => {
|
72
|
+
observer.observe(h1, h2, h3);
|
73
|
+
});
|
21
74
|
});
|
data/logo.png
CHANGED
Binary file
|
data/post/index.html
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
---
|
2
|
-
layout:
|
3
|
-
site-title: Posts
|
1
|
+
---
|
2
|
+
layout: post_list
|
3
|
+
site-title: Posts
|
4
4
|
---
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-fica
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Aziel Lance
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -72,20 +72,6 @@ dependencies:
|
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '2.8'
|
75
|
-
- !ruby/object:Gem::Dependency
|
76
|
-
name: bundler
|
77
|
-
requirement: !ruby/object:Gem::Requirement
|
78
|
-
requirements:
|
79
|
-
- - "~>"
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: 2.3.10
|
82
|
-
type: :development
|
83
|
-
prerelease: false
|
84
|
-
version_requirements: !ruby/object:Gem::Requirement
|
85
|
-
requirements:
|
86
|
-
- - "~>"
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: 2.3.10
|
89
75
|
description:
|
90
76
|
email:
|
91
77
|
- aziellan27@gmail.com
|
@@ -95,15 +81,8 @@ extra_rdoc_files: []
|
|
95
81
|
files:
|
96
82
|
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
97
83
|
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
98
|
-
- ".github/workflows/.ci_BASE_2002.yaml.swp"
|
99
|
-
- ".github/workflows/.ci_LOCAL_2002.yaml.swp"
|
100
|
-
- ".github/workflows/.ci_REMOTE_2002.yaml.swp"
|
101
84
|
- ".github/workflows/ci.yaml"
|
102
85
|
- ".github/workflows/ci.yaml.orig"
|
103
|
-
- ".github/workflows/ci_BACKUP_2002.yaml"
|
104
|
-
- ".github/workflows/ci_BASE_2002.yaml"
|
105
|
-
- ".github/workflows/ci_LOCAL_2002.yaml"
|
106
|
-
- ".github/workflows/ci_REMOTE_2002.yaml"
|
107
86
|
- 404.html
|
108
87
|
- LICENSE.txt
|
109
88
|
- License.md
|
@@ -120,11 +99,12 @@ files:
|
|
120
99
|
- _layouts/home.html
|
121
100
|
- _layouts/page.html
|
122
101
|
- _layouts/post.html
|
123
|
-
- _layouts/
|
102
|
+
- _layouts/post_list.html
|
124
103
|
- _posts/2022-03-31-To-Know-if-the-nav-works.md
|
125
|
-
- _posts/2022-04-1-
|
104
|
+
- _posts/2022-04-1-Elements-of-Fica-Theme.md
|
126
105
|
- _posts/2022-04-5-Getting-Started.md
|
127
106
|
- _posts/2022-04-6-Creating-a-new-post.md
|
107
|
+
- _posts/2023-04-24-Fica-Customization.md
|
128
108
|
- _sass/base.scss
|
129
109
|
- _sass/colors/dark-theme/highlight.scss
|
130
110
|
- _sass/colors/dark-theme/theme-dark.scss
|
@@ -134,9 +114,20 @@ files:
|
|
134
114
|
- _sass/layouts/Google-fonts.scss
|
135
115
|
- _sass/layouts/component.scss
|
136
116
|
- _sass/layouts/layout.scss
|
117
|
+
- _sass/layouts/typography.scss
|
137
118
|
- _sass/layouts/variable.scss
|
138
119
|
- assets/404.svg
|
139
120
|
- assets/css/Style.scss
|
121
|
+
- assets/favicons/android-chrome-192x192.png
|
122
|
+
- assets/favicons/android-chrome-512x512.png
|
123
|
+
- assets/favicons/apple-touch-icon.png
|
124
|
+
- assets/favicons/browserconfig.xml
|
125
|
+
- assets/favicons/favicon-16x16.png
|
126
|
+
- assets/favicons/favicon-32x32.png
|
127
|
+
- assets/favicons/favicon.ico
|
128
|
+
- assets/favicons/mstile-150x150.png
|
129
|
+
- assets/favicons/safari-pinned-tab.svg
|
130
|
+
- assets/favicons/site.webmanifest
|
140
131
|
- assets/fica-icons.svg
|
141
132
|
- assets/img/homepage-pic.png
|
142
133
|
- bin/run
|
@@ -144,15 +135,15 @@ files:
|
|
144
135
|
- js/back-to-top.js
|
145
136
|
- logo.png
|
146
137
|
- post/index.html
|
147
|
-
homepage: https://github.com/
|
138
|
+
homepage: https://github.com/aeziyehl/jekyll-theme-fica
|
148
139
|
licenses:
|
149
140
|
- MIT
|
150
141
|
metadata:
|
151
|
-
bug_tracker_uri: https://github.com/
|
152
|
-
documentation_uri: https://github.com/
|
153
|
-
homepage_uri: https://
|
154
|
-
source_code_uri: https://github.com/
|
155
|
-
wiki_uri: https://github.com/
|
142
|
+
bug_tracker_uri: https://github.com/aeziyehl/jekyll-theme-fica/issues
|
143
|
+
documentation_uri: https://github.com/aeziyehl/jekyll-theme-fica#readme
|
144
|
+
homepage_uri: https://aeziyehl.github.io/jekyll-theme-fica/
|
145
|
+
source_code_uri: https://github.com/aeziyehl/jekyll-theme-fica
|
146
|
+
wiki_uri: https://github.com/aeziyehl/jekyll-theme-fica/wiki
|
156
147
|
plugin_type: theme
|
157
148
|
post_install_message:
|
158
149
|
rdoc_options: []
|
@@ -169,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
160
|
- !ruby/object:Gem::Version
|
170
161
|
version: '0'
|
171
162
|
requirements: []
|
172
|
-
rubygems_version: 3.3
|
163
|
+
rubygems_version: 3.2.3
|
173
164
|
signing_key:
|
174
165
|
specification_version: 4
|
175
166
|
summary: A modern theme with minimal look
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,34 +0,0 @@
|
|
1
|
-
name: 'Fica testing tool'
|
2
|
-
on:
|
3
|
-
push:
|
4
|
-
branches:
|
5
|
-
<<<<<<< HEAD
|
6
|
-
- beta
|
7
|
-
pull_request:
|
8
|
-
branches:
|
9
|
-
- beta
|
10
|
-
=======
|
11
|
-
- main
|
12
|
-
pull_request:
|
13
|
-
branches:
|
14
|
-
- main
|
15
|
-
>>>>>>> 91d38cf37714a464d41160dd1513f5ba186f3bca
|
16
|
-
|
17
|
-
jobs:
|
18
|
-
build:
|
19
|
-
runs-on: ubuntu-latest
|
20
|
-
strategy:
|
21
|
-
matrix:
|
22
|
-
ruby: [2.7]
|
23
|
-
steps:
|
24
|
-
- name: Checkout
|
25
|
-
uses: actions/checkout@v2
|
26
|
-
with:
|
27
|
-
fetch-depth: 0 # for posts's lastmod
|
28
|
-
- name: Setup Ruby
|
29
|
-
uses: ruby/setup-ruby@v1
|
30
|
-
with:
|
31
|
-
ruby-version: ${{ matrix.ruby }}
|
32
|
-
bundler-cache: true
|
33
|
-
- name: Test Site
|
34
|
-
run: bash bin/run insdep
|
@@ -1,27 +0,0 @@
|
|
1
|
-
name: Working on it...
|
2
|
-
on:
|
3
|
-
push:
|
4
|
-
branches:
|
5
|
-
- master
|
6
|
-
pull_request:
|
7
|
-
branches:
|
8
|
-
- master
|
9
|
-
jobs:
|
10
|
-
build:
|
11
|
-
name: "Test with Jekyll ${{ matrix.jekyll }}"
|
12
|
-
runs-on: "ubuntu-latest"
|
13
|
-
strategy:
|
14
|
-
matrix:
|
15
|
-
jekyll: ["~> 3.9", "~> 4.2"]
|
16
|
-
env:
|
17
|
-
JEKYLL_VERSION: ${{ matrix.jekyll }}
|
18
|
-
steps:
|
19
|
-
- name: Checkout Repository
|
20
|
-
uses: actions/checkout@v2
|
21
|
-
- name: Set Up Ruby 2.7
|
22
|
-
uses: ruby/setup-ruby@v1
|
23
|
-
with:
|
24
|
-
ruby-version: 2.7
|
25
|
-
bundler-cache: true
|
26
|
-
- name: Run checks
|
27
|
-
run: bin/gp-load
|
@@ -1,27 +0,0 @@
|
|
1
|
-
name: 'Fica testing tool'
|
2
|
-
on:
|
3
|
-
push:
|
4
|
-
branches:
|
5
|
-
- beta
|
6
|
-
pull_request:
|
7
|
-
branches:
|
8
|
-
- beta
|
9
|
-
|
10
|
-
jobs:
|
11
|
-
build:
|
12
|
-
runs-on: ubuntu-latest
|
13
|
-
strategy:
|
14
|
-
matrix:
|
15
|
-
ruby: [2.7]
|
16
|
-
steps:
|
17
|
-
- name: Checkout
|
18
|
-
uses: actions/checkout@v2
|
19
|
-
with:
|
20
|
-
fetch-depth: 0 # for posts's lastmod
|
21
|
-
- name: Setup Ruby
|
22
|
-
uses: ruby/setup-ruby@v1
|
23
|
-
with:
|
24
|
-
ruby-version: ${{ matrix.ruby }}
|
25
|
-
bundler-cache: true
|
26
|
-
- name: Test Site
|
27
|
-
run: bash bin/run insdep
|
@@ -1,27 +0,0 @@
|
|
1
|
-
name: 'Fica testing tool'
|
2
|
-
on:
|
3
|
-
push:
|
4
|
-
branches:
|
5
|
-
- main
|
6
|
-
pull_request:
|
7
|
-
branches:
|
8
|
-
- main
|
9
|
-
|
10
|
-
jobs:
|
11
|
-
build:
|
12
|
-
runs-on: ubuntu-latest
|
13
|
-
strategy:
|
14
|
-
matrix:
|
15
|
-
ruby: [2.7]
|
16
|
-
steps:
|
17
|
-
- name: Checkout
|
18
|
-
uses: actions/checkout@v2
|
19
|
-
with:
|
20
|
-
fetch-depth: 0 # for posts's lastmod
|
21
|
-
- name: Setup Ruby
|
22
|
-
uses: ruby/setup-ruby@v1
|
23
|
-
with:
|
24
|
-
ruby-version: ${{ matrix.ruby }}
|
25
|
-
bundler-cache: true
|
26
|
-
- name: Test Site
|
27
|
-
run: bash bin/run insdep
|
data/_layouts/post_home.html
DELETED
@@ -1,113 +0,0 @@
|
|
1
|
-
---
|
2
|
-
layout: default
|
3
|
-
---
|
4
|
-
<div class="home">
|
5
|
-
<h1 class="post-title">{{ page.site-title }}</h1>
|
6
|
-
|
7
|
-
{%- if site.paginate -%}
|
8
|
-
{% assign pinned = site.posts | where: "pin", "true" %}
|
9
|
-
{% assign default = site.posts | where_exp: "item", "item.pin != true" %}
|
10
|
-
|
11
|
-
{% assign posts = "" | split: "" %}
|
12
|
-
|
13
|
-
<!-- Get pinned posts -->
|
14
|
-
|
15
|
-
{% assign offset = paginator.page | minus: 1 | times: paginator.per_page %}
|
16
|
-
{% assign pinned_num = pinned.size | minus: offset %}
|
17
|
-
|
18
|
-
{% if pinned_num > 0 %}
|
19
|
-
{% for i in (offset..pinned.size) limit: pinned_num %}
|
20
|
-
{% assign posts = posts | push: pinned[i] %}
|
21
|
-
{% endfor %}
|
22
|
-
{% else %}
|
23
|
-
{% assign pinned_num = 0 %}
|
24
|
-
{% endif %}
|
25
|
-
|
26
|
-
|
27
|
-
<!-- Get default posts -->
|
28
|
-
|
29
|
-
{% assign default_beg = offset | minus: pinned.size %}
|
30
|
-
|
31
|
-
{% if default_beg < 0 %}
|
32
|
-
{% assign default_beg = 0 %}
|
33
|
-
{% endif %}
|
34
|
-
|
35
|
-
{% assign default_num = paginator.posts | size | minus: pinned_num %}
|
36
|
-
{% assign default_end = default_beg | plus: default_num | minus: 1 %}
|
37
|
-
|
38
|
-
{% if default_num > 0 %}
|
39
|
-
{% for i in (default_beg..default_end) %}
|
40
|
-
{% assign posts = posts | push: default[i] %}
|
41
|
-
{% endfor %}
|
42
|
-
{% endif %}
|
43
|
-
{% else %}
|
44
|
-
{% assign posts = site.posts %}
|
45
|
-
{% endif %}
|
46
|
-
|
47
|
-
|
48
|
-
{%- if posts.size > 0 -%}
|
49
|
-
<div class="post-list">
|
50
|
-
{%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
|
51
|
-
{%- for post in posts -%}
|
52
|
-
<div class="post">
|
53
|
-
<a class="post-link" href="{{ post.url | relative_url }}">
|
54
|
-
{{ post.title | escape }}
|
55
|
-
</a>
|
56
|
-
<div class="post-info">
|
57
|
-
{%- assign date_format_tooltip = site.fica.date_format | default: "%b%-d, %Y" -%}
|
58
|
-
<span class="post-info-date">{{ post.date | date: date_format }}</span>
|
59
|
-
{% if post.pin %}
|
60
|
-
<span class="post-info-pin">
|
61
|
-
<span class="material-icons-round">
|
62
|
-
push_pin
|
63
|
-
</span>
|
64
|
-
<p>pinned</p>
|
65
|
-
</span>
|
66
|
-
{%- endif -%}
|
67
|
-
</div>
|
68
|
-
{%- if site.show_descriptions -%}
|
69
|
-
{{ post.excerpt }}
|
70
|
-
{%- endif -%}
|
71
|
-
</div>
|
72
|
-
{%- endfor -%}
|
73
|
-
</div>
|
74
|
-
|
75
|
-
{%- if site.paginate -%}
|
76
|
-
<ul class="post-nav">
|
77
|
-
<li>
|
78
|
-
{% if paginator.previous_page %}
|
79
|
-
<a href="{{ paginator.previous_page_path | relative_url }}">
|
80
|
-
<span class="material-icons-round post-nav-svg">
|
81
|
-
arrow_back_ios
|
82
|
-
</span>
|
83
|
-
</a>
|
84
|
-
{% else %}
|
85
|
-
<a>
|
86
|
-
<span class="material-icons-round post-nav-svg disable-svg">
|
87
|
-
chevron_left
|
88
|
-
</span>
|
89
|
-
</a>
|
90
|
-
{% endif %}
|
91
|
-
</li>
|
92
|
-
<li class="post-nav-num">{{ paginator.page }}
|
93
|
-
/
|
94
|
-
{{ paginator.total_pages }}</li>
|
95
|
-
<li>
|
96
|
-
{%- if paginator.next_page %}
|
97
|
-
<a href="{{ paginator.next_page_path | relative_url }}">
|
98
|
-
<span class="material-icons-round post-nav-svg">
|
99
|
-
arrow_forward_ios
|
100
|
-
</span>
|
101
|
-
</a>
|
102
|
-
{%- else %}
|
103
|
-
<a>
|
104
|
-
<span class="material-icons-round post-nav-svg disable-svg">
|
105
|
-
chevron_right
|
106
|
-
</span>
|
107
|
-
</a>
|
108
|
-
{%- endif %}
|
109
|
-
</li>
|
110
|
-
</ul>
|
111
|
-
{%- endif %}
|
112
|
-
{%- endif -%}
|
113
|
-
</div>
|