jekyll-theme-fica 0.2.0 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -1,113 +1,113 @@
1
- ---
2
- layout: default
3
- ---
4
- <div class="home">
5
- <h1 class="page-heading">Posts</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
- <li>
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
- </li>
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 -%}
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
113
  </div>
@@ -1,149 +1,150 @@
1
- ---
2
- layout: post
3
- site-title: Getting Started
4
- author: Involts
5
- pin: true
6
- ---
7
-
8
- # Prerequisites
9
-
10
- 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/)
11
-
12
- # Installation
13
-
14
- ## Creating a new site
15
-
16
- 1. [Using RubyGems](https://rubygems.org/gems/jekyll-theme-fica) - Easy to upgrade, but it is not convenient with customizing the Theme.
17
-
18
- 1. [Forking using Github](https://github.com/Involts/jekyll-theme-fica/generate) - Not easy to upgrade, but you needs familiar with [Jekyll](https://jekyllrb.com), [Git](https://git-scm.com/) or [Github](https://github.com/).
19
-
20
- ## Option 1. Using RubyGems
21
-
22
- Copy the Gemfile `gem 'jekyll-theme-fica', '~> 0.2.0'`, paste it on the `Gemfile` file then run
23
-
24
- ```bash
25
- $ bin/run insdep
26
- ```
27
- {: .nolineno}
28
- or
29
- ```bash
30
- $ bundle install
31
- ```
32
- {: .nolineno}
33
-
34
- and run
35
-
36
- ```bash
37
- $ bin/run server
38
- ```
39
- {: .nolineno}
40
- or
41
- ```bash
42
- $ bundle exec jekyll serve
43
- ```
44
- {: .nolineno}
45
-
46
-
47
-
48
-
49
- ## Option 2. Forking Github
50
-
51
- name it `<GH_USERNAME>.github.io`, where `GH_USERNAME` represents your GitHub username.
52
-
53
- then run:
54
-
55
- ```bash
56
- $ bin/run insdep
57
- ```
58
- {: .nolineno}
59
-
60
- and run
61
-
62
- ```bash
63
- $ bin/run server
64
- ```
65
- {: .nolineno}
66
-
67
- # Usage
68
-
69
- ### Configuration
70
-
71
- > Before publishing the site to github-pages, replace the varable of baseurl. If you have brought a doman remove the varable in the `_config.yml` file
72
- `baseurl: /jekyll-fica-theme`
73
- {: .prompt-warning }
74
-
75
- Fica Theme will respect the following variables, in your `_config.yml` file:
76
-
77
- ```yml
78
- title: [The title of your site]
79
- description: [A short description of your site's purpose]
80
-
81
- socials:
82
- # Change Involts to your full name.
83
- name: [The auther of the site]
84
- # it also be the copyright owner's link
85
- auther-link: [Link of the auther]
86
- ```
87
-
88
- Change the links of your site header:
89
-
90
- ```yml
91
- header:
92
- external_link_1: true # if false, it adds the baseurl of the site
93
- header_name_1: Download
94
- header_link_1: https://github.com/Involts/jekyll-theme-fica/zipball/master
95
-
96
- external_link_2: false # if false, it adds the baseurl of the site
97
- header_name_2: Post
98
- header_link_2: /Post/
99
-
100
- external_link_3: false # if false, it adds the baseurl of the site
101
- header_name_3: About
102
- header_link_3: /About/
103
- ```
104
-
105
- Change the links of your site header:
106
-
107
- > If you want to create a external link in the headers Links remove `{{site.baseurl}}` on `_includes/Header/html` **BELLOW**
108
- {: .prompt-info }
109
-
110
-
111
- {% raw %}
112
- ```diff
113
- header:
114
- external_link_1: true # if false, it adds the baseurl of the site
115
- header_name_1: Download
116
- header_link_1: https://github.com/Involts/jekyll-theme-fica/zipball/master
117
- - external_link_2: false # if false, it adds the baseurl of the site
118
- + external_link_2: true # if false, it adds the baseurl of the site
119
- header_name_2: Post
120
- header_link_2: /Post/
121
-
122
- - external_link_3: false # if false, it adds the baseurl of the site
123
- + external_link_3: true # if false, it adds the baseurl of the site
124
- header_name_3: About
125
- header_link_3: /About/
126
- ```
127
- {% endraw %}
128
-
129
- # Upgrading
130
- Depending on how you use the theme:
131
-
132
- - if you are using the [theme gem](https://rubygems.org/gems/jekyll-theme-fica). Run:
133
-
134
- ```bash
135
- $ bin/run upgrade
136
- ```
137
- {: .nolineno}
138
-
139
- Please refer to the [Upgrade Guide](https://github.com/Involts/jekyll-theme-fica/wiki/Theme-Upgrade-Guide) to keep your repo’s files in sync with the latest version of the theme.
140
-
141
- - If you [forked](https://github.com/Involts/jekyll-theme-fica/fork) it on [GitHub](https://github.com/Involts/jekyll-theme-fica), then merge the [latest tags](https://github.com/Involts/jekyll-theme-fica/tags) into your Jekyll site to complete the upgrade. The merge is likely to conflict with your local modifications. Please be patient and careful to resolve these conflicts.
142
-
143
-
144
-
145
-
146
-
147
-
148
-
149
-
1
+ ---
2
+ layout: post
3
+ site-title: Getting Started
4
+ author: Involts
5
+ pin: true
6
+ post_toc: true
7
+ ---
8
+
9
+ # Prerequisites
10
+
11
+ 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/)
12
+
13
+ # Installation
14
+
15
+ ## Creating a new site
16
+
17
+ 1. [Using RubyGems](https://rubygems.org/gems/jekyll-theme-fica) - Easy to upgrade, but it is not convenient with customizing the Theme.
18
+
19
+ 1. [Forking using Github](https://github.com/Involts/jekyll-theme-fica/generate) - Not easy to upgrade, but you needs familiar with [Jekyll](https://jekyllrb.com), [Git](https://git-scm.com/) or [Github](https://github.com/).
20
+
21
+ ## Option 1. Using RubyGems
22
+
23
+ Copy the Gemfile `gem 'jekyll-theme-fica', '~> 0.2.0'`, paste it on the `Gemfile` file then run
24
+
25
+ ```bash
26
+ $ bin/run insdep
27
+ ```
28
+ {: .nolineno}
29
+ or
30
+ ```bash
31
+ $ bundle install
32
+ ```
33
+ {: .nolineno}
34
+
35
+ and run
36
+
37
+ ```bash
38
+ $ bin/run server
39
+ ```
40
+ {: .nolineno}
41
+ or
42
+ ```bash
43
+ $ bundle exec jekyll serve
44
+ ```
45
+ {: .nolineno}
46
+
47
+
48
+
49
+
50
+ ## Option 2. Forking Github
51
+
52
+ name it `<GH_USERNAME>.github.io`, where `GH_USERNAME` represents your GitHub username.
53
+
54
+ then run:
55
+
56
+ ```bash
57
+ $ bin/run insdep
58
+ ```
59
+ {: .nolineno}
60
+
61
+ and run
62
+
63
+ ```bash
64
+ $ bin/run server
65
+ ```
66
+ {: .nolineno}
67
+
68
+ # Usage
69
+
70
+ ### Configuration
71
+
72
+ > Before publishing the site to github-pages, replace the varable of baseurl. If you have brought a doman remove the varable in the `_config.yml` file
73
+ `baseurl: /jekyll-fica-theme`
74
+ {: .prompt-warning }
75
+
76
+ Fica Theme will respect the following variables, in your `_config.yml` file:
77
+
78
+ ```yml
79
+ title: [The title of your site]
80
+ description: [A short description of your site's purpose]
81
+
82
+ socials:
83
+ # Change Involts to your full name.
84
+ name: [The auther of the site]
85
+ # it also be the copyright owner's link
86
+ auther-link: [Link of the auther]
87
+ ```
88
+
89
+ Change the links of your site header:
90
+
91
+ ```yml
92
+ header:
93
+ external_link_1: true # if false, it adds the baseurl of the site
94
+ header_name_1: Download
95
+ header_link_1: https://github.com/Involts/jekyll-theme-fica/zipball/master
96
+
97
+ external_link_2: false # if false, it adds the baseurl of the site
98
+ header_name_2: Post
99
+ header_link_2: /Post/
100
+
101
+ external_link_3: false # if false, it adds the baseurl of the site
102
+ header_name_3: About
103
+ header_link_3: /About/
104
+ ```
105
+
106
+ Change the links of your site header:
107
+
108
+ > If you want to create a external link in the headers Links remove `{{site.baseurl}}` on `_includes/Header/html` **BELLOW**
109
+ {: .prompt-info }
110
+
111
+
112
+ {% raw %}
113
+ ```diff
114
+ header:
115
+ external_link_1: true # if false, it adds the baseurl of the site
116
+ header_name_1: Download
117
+ header_link_1: https://github.com/Involts/jekyll-theme-fica/zipball/master
118
+ - external_link_2: false # if false, it adds the baseurl of the site
119
+ + external_link_2: true # if false, it adds the baseurl of the site
120
+ header_name_2: Post
121
+ header_link_2: /Post/
122
+
123
+ - external_link_3: false # if false, it adds the baseurl of the site
124
+ + external_link_3: true # if false, it adds the baseurl of the site
125
+ header_name_3: About
126
+ header_link_3: /About/
127
+ ```
128
+ {% endraw %}
129
+
130
+ # Upgrading
131
+ Depending on how you use the theme:
132
+
133
+ - if you are using the [theme gem](https://rubygems.org/gems/jekyll-theme-fica). Run:
134
+
135
+ ```bash
136
+ $ bin/run upgrade
137
+ ```
138
+ {: .nolineno}
139
+
140
+ Please refer to the [Upgrade Guide](https://github.com/Involts/jekyll-theme-fica/wiki/Theme-Upgrade-Guide) to keep your repo’s files in sync with the latest version of the theme.
141
+
142
+ - If you [forked](https://github.com/Involts/jekyll-theme-fica/fork) it on [GitHub](https://github.com/Involts/jekyll-theme-fica), then merge the [latest tags](https://github.com/Involts/jekyll-theme-fica/tags) into your Jekyll site to complete the upgrade. The merge is likely to conflict with your local modifications. Please be patient and careful to resolve these conflicts.
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+