jekyll-theme-chirpy 3.0.2 → 3.2.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/404.html +5 -4
- data/README.md +50 -45
- data/_config.yml +24 -53
- data/_includes/disqus.html +1 -1
- data/_includes/post-nav.html +4 -2
- data/_includes/search-loader.html +21 -3
- data/_includes/search-results.html +1 -1
- data/_includes/topbar.html +30 -9
- data/_layouts/default.html +1 -1
- data/_layouts/post.html +2 -2
- data/_sass/addon/commons.scss +776 -753
- data/_sass/addon/module.scss +1 -5
- data/_sass/addon/syntax.scss +7 -5
- data/_sass/addon/variables.scss +0 -5
- data/_sass/jekyll-theme-chirpy.scss +15 -14
- data/_sass/layout/archives.scss +56 -50
- data/_sass/layout/categories.scss +9 -7
- data/_sass/layout/category-tag.scss +20 -14
- data/_sass/layout/home.scss +58 -54
- data/_sass/layout/post.scss +33 -32
- data/assets/img/favicons/browserconfig.xml +1 -5
- data/assets/img/favicons/manifest.json +0 -4
- data/assets/js/data/cache-list.js +0 -4
- data/assets/js/dist/categories.min.js +3 -3
- data/assets/js/dist/home.min.js +3 -3
- data/assets/js/dist/page.min.js +3 -3
- data/assets/js/dist/post.min.js +3 -3
- data/assets/js/dist/pvreport.min.js +2 -2
- metadata +10 -18
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0c088eaed236dee292fe5a05dc693b28f53fab6b93235ab51e31cd6e7c1f0841
|
|
4
|
+
data.tar.gz: 811d439fdeb1c2c63e1ac63e30cf764fa03348567901f51bcf19ee40f1644172
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 822318f05bf739c7967201d9fd28420e99392e494e5fca2476d772f79751402d196f0215cf4286e59156e5fff16eb33f7d7684da3d10700d1e502e8892e64967
|
|
7
|
+
data.tar.gz: 0b762a7ba7747d06eb47ef1e1f153f39f53d953ddbf8b3c6b2b1219e2ba3c25c68b1541f0268b167cc2524fc2f77b6c968fbd0bf9cefdd2ee5316ceaacc6350c
|
data/404.html
CHANGED
|
@@ -6,9 +6,6 @@ permalink: /404.html
|
|
|
6
6
|
redirect_from:
|
|
7
7
|
- /norobots/
|
|
8
8
|
- /assets/
|
|
9
|
-
- /tabs/
|
|
10
|
-
- /categories/
|
|
11
|
-
- /tags/
|
|
12
9
|
- /posts/
|
|
13
10
|
|
|
14
11
|
dynamic_title: true
|
|
@@ -16,5 +13,9 @@ dynamic_title: true
|
|
|
16
13
|
|
|
17
14
|
<div class="lead">
|
|
18
15
|
<p>Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. </p>
|
|
19
|
-
<p
|
|
16
|
+
<p>
|
|
17
|
+
<a href="{{ '/' | relative_url }}">Head back Home</a>
|
|
18
|
+
to try finding it again, or search for it on the
|
|
19
|
+
<a href="{{ 'archives' | relative_url }}">Archives page</a>.
|
|
20
|
+
</p>
|
|
20
21
|
</div>
|
data/README.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Language: English | [简体中文](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/docs/README.zh-CN.md)
|
|
4
4
|
|
|
5
|
+
[](https://rubygems.org/gems/jekyll-theme-chirpy)
|
|
5
6
|
[](https://github.com/cotes2020/jekyll-theme-chirpy/actions?query=branch%3Amaster+event%3Apush)
|
|
6
7
|
[](https://app.codacy.com/manual/cotes2020/jekyll-theme-chirpy?utm_source=github.com&utm_medium=referral&utm_content=cotes2020/jekyll-theme-chirpy&utm_campaign=Badge_Grade_Dashboard)
|
|
7
8
|
[](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/LICENSE)
|
|
@@ -14,12 +15,13 @@ A minimal, sidebar, responsive web design Jekyll theme that focuses on text pres
|
|
|
14
15
|
## Table of Contents
|
|
15
16
|
|
|
16
17
|
- [Features](#features)
|
|
17
|
-
- [Installation](#installation)
|
|
18
18
|
- [Prerequisites](#prerequisites)
|
|
19
|
+
- [Installation](#installation)
|
|
19
20
|
- [Usage](#usage)
|
|
21
|
+
- [Documentation](#documentation)
|
|
20
22
|
- [Contributing](#contributing)
|
|
21
23
|
- [Credits](#credits)
|
|
22
|
-
- [
|
|
24
|
+
- [Support](#support)
|
|
23
25
|
- [License](#license)
|
|
24
26
|
|
|
25
27
|
## Features
|
|
@@ -48,10 +50,10 @@ Follow the [Jekyll Docs](https://jekyllrb.com/docs/installation/) to complete th
|
|
|
48
50
|
|
|
49
51
|
There are two ways to get the theme:
|
|
50
52
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
+
- **Install from RubyGems** - Easy to update, isolate irrelevant project files so you can focus on writing.
|
|
54
|
+
- **Fork on GitHub** - Convenient for custom development, but difficult to update, only suitable for web developers.
|
|
53
55
|
|
|
54
|
-
###
|
|
56
|
+
### Installing the Theme Gem
|
|
55
57
|
|
|
56
58
|
Add this line to your Jekyll site's `Gemfile`:
|
|
57
59
|
|
|
@@ -71,22 +73,19 @@ And then execute:
|
|
|
71
73
|
$ bundle
|
|
72
74
|
```
|
|
73
75
|
|
|
74
|
-
Finally, copy the
|
|
76
|
+
Finally, copy the required files from the theme's gem (for detailed files, see [starter project][starter]) to your Jekyll site.
|
|
75
77
|
|
|
76
|
-
> **Hint**: To locate the theme’s gem, execute:
|
|
78
|
+
> **Hint**: To locate the installed theme’s gem, execute:
|
|
77
79
|
>
|
|
78
|
-
```console
|
|
79
|
-
$ bundle info --path jekyll-theme-chirpy
|
|
80
|
-
```
|
|
80
|
+
> ```console
|
|
81
|
+
> $ bundle info --path jekyll-theme-chirpy
|
|
82
|
+
> ```
|
|
81
83
|
|
|
82
|
-
Or you can [use the starter template][use-starter] to create a Jekyll site to save time copying
|
|
84
|
+
Or you can [**use the starter template**][use-starter] to create a Jekyll site to save time copying files from theme's gem. We have prepared everything for you there!
|
|
83
85
|
|
|
84
|
-
|
|
85
|
-
[use-starter]: https://github.com/cotes2020/chirpy-starter/generate
|
|
86
|
-
|
|
87
|
-
### Fork From GitHub
|
|
86
|
+
### Fork on GitHub
|
|
88
87
|
|
|
89
|
-
[Fork **Chirpy**](https://github.com/cotes2020/jekyll-theme-chirpy/fork)
|
|
88
|
+
[Fork **Chirpy**](https://github.com/cotes2020/jekyll-theme-chirpy/fork) on GitHub and then clone your fork to local. (Please note that the default branch code is in development. If you want the blog to be stable, please switch to the [latest tag](https://github.com/cotes2020/jekyll-theme-chirpy/tags) and start writing.)
|
|
90
89
|
|
|
91
90
|
Install gem dependencies by:
|
|
92
91
|
|
|
@@ -104,16 +103,14 @@ $ bash tools/init.sh
|
|
|
104
103
|
|
|
105
104
|
What it does is:
|
|
106
105
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
- folder `docs`
|
|
112
|
-
|
|
113
|
-
2. If you use the `--no-gh` option, the directory `.github` will be deleted. Otherwise, setup the GitHub Action workflow by removing extension `.hook` of `.github/workflows/pages-deploy.yml.hook`, and then remove the other files and directories in folder `.github`.
|
|
106
|
+
1. Remove some files or directories from your repository:
|
|
107
|
+
- `.travis.yml`
|
|
108
|
+
- files under `_posts`
|
|
109
|
+
- folder `docs`
|
|
114
110
|
|
|
115
|
-
|
|
111
|
+
2. If you use the `--no-gh` option, the directory `.github` will be deleted. Otherwise, setup the GitHub Action workflow by removing extension `.hook` of `.github/workflows/pages-deploy.yml.hook`, and then remove the other files and directories in folder `.github`.
|
|
116
112
|
|
|
113
|
+
3. Automatically create a commit to save the changes.
|
|
117
114
|
|
|
118
115
|
## Usage
|
|
119
116
|
|
|
@@ -121,10 +118,10 @@ What it does is:
|
|
|
121
118
|
|
|
122
119
|
Update the variables of `_config.yml` as needed. Some of them are typical options:
|
|
123
120
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
121
|
+
- `url`
|
|
122
|
+
- `avatar`
|
|
123
|
+
- `timezone`
|
|
124
|
+
- `lang`
|
|
128
125
|
|
|
129
126
|
### Running Local Server
|
|
130
127
|
|
|
@@ -157,23 +154,20 @@ For security reasons, GitHub Pages build runs on `safe` mode, which restricts us
|
|
|
157
154
|
|
|
158
155
|
Quickly check the files needed for GitHub Actions build:
|
|
159
156
|
|
|
160
|
-
|
|
157
|
+
- Ensure your Jekyll site has the file `.github/workflows/pages-deploy.yml`. Otherwise, create a new one and fill in the contents of the [workflow file][workflow], and the value of the `on.push.branches` should be the same as your repo's default branch name.
|
|
158
|
+
- Ensuer your Jekyll site has file `tools/test.sh` and `tools/deploy.sh`. Otherwise, copy them from this repo to your Jekyll site.
|
|
161
159
|
|
|
162
|
-
|
|
160
|
+
And then rename your repoistory to `<GH-USERNAME>.github.io` on GitHub.
|
|
163
161
|
|
|
164
|
-
|
|
162
|
+
Now publish your Jekyll site by:
|
|
165
163
|
|
|
166
|
-
|
|
164
|
+
1. Push any commit to remote to trigger the GitHub Actions workflow. Once the build is complete and successful, a new remote branch named `gh-pages` will appear to store the built site files.
|
|
167
165
|
|
|
168
|
-
|
|
166
|
+
2. Browse to your repo's landing page on GitHub and select the branch `gh-pages` as the [publishing source](https://docs.github.com/en/github/working-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site) throught _Settings_ → _Options_ → _GitHub Pages_:
|
|
169
167
|
|
|
170
|
-
|
|
168
|
+

|
|
171
169
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-

|
|
175
|
-
|
|
176
|
-
3. Visit your website at the address indicated by GitHub.
|
|
170
|
+
3. Visit your website at the address indicated by GitHub.
|
|
177
171
|
|
|
178
172
|
#### Deploy on Other Platforms
|
|
179
173
|
|
|
@@ -197,7 +191,6 @@ $ docker run -it --rm \
|
|
|
197
191
|
|
|
198
192
|
Unless you specified the output path, the generated site files will be placed in folder `_site` of the project's root directory. Now you should upload those files to your web server.
|
|
199
193
|
|
|
200
|
-
|
|
201
194
|
## Documentation
|
|
202
195
|
|
|
203
196
|
For more details and the better reading experience, please check out the [tutorials on demo site](https://chirpy.cotes.info/categories/tutorial/). In the meanwhile, a copy of the tutorial is also available on the [Wiki](https://github.com/cotes2020/jekyll-theme-chirpy/wiki).
|
|
@@ -212,16 +205,28 @@ This theme is mainly built with [Jekyll](https://jekyllrb.com/) ecosystem, [Boot
|
|
|
212
205
|
|
|
213
206
|
:tada: Thanks to all the volunteers who contributed to this project, their GitHub IDs are on [this list](https://github.com/cotes2020/jekyll-theme-chirpy/graphs/contributors). Also, I won't forget those guys who submitted the issues or unmerged PR because they reported bugs, shared ideas or inspired me to write more readable documentation.
|
|
214
207
|
|
|
215
|
-
Also, thank [JetBrains][
|
|
208
|
+
Also, thank [JetBrains][jb] for providing the open source license.
|
|
216
209
|
|
|
217
|
-
[][
|
|
210
|
+
[][jb]
|
|
218
211
|
|
|
219
|
-
|
|
212
|
+
## Support
|
|
220
213
|
|
|
221
|
-
|
|
214
|
+
If you like this theme or find it helpful, please consider sponsoring me, because it will encourage and help me better maintain the project, I will be very grateful!
|
|
222
215
|
|
|
223
|
-
|
|
216
|
+
[](https://www.buymeacoffee.com/coteschung)
|
|
217
|
+
[][cn-donation]
|
|
218
|
+
[][cn-donation]
|
|
224
219
|
|
|
225
220
|
## License
|
|
226
221
|
|
|
227
222
|
This work is published under [MIT](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/LICENSE) License.
|
|
223
|
+
|
|
224
|
+
[starter]: https://github.com/cotes2020/chirpy-starter
|
|
225
|
+
[use-starter]: https://github.com/cotes2020/chirpy-starter/generate
|
|
226
|
+
[workflow]: https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/.github/workflows/pages-deploy.yml.hook
|
|
227
|
+
|
|
228
|
+
<!-- ReadMe links -->
|
|
229
|
+
|
|
230
|
+
[jb]: https://www.jetbrains.com/?from=jekyll-theme-chirpy
|
|
231
|
+
[cn-donation]: https://cotes.gitee.io/alipay-wechat-donation/
|
|
232
|
+
|
data/_config.yml
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# The Site Configuration
|
|
2
2
|
|
|
3
|
+
# Import the theme
|
|
4
|
+
theme: jekyll-theme-chirpy
|
|
5
|
+
|
|
6
|
+
# Only if your site type is GitHub Project sites and doesn't have a custom domain,
|
|
7
|
+
# change below value to '/projectname'.
|
|
8
|
+
baseurl: ''
|
|
9
|
+
|
|
10
|
+
# the HTML language tag › https://www.w3.org/International/questions/qa-choosing-language-tags
|
|
11
|
+
lang: en-US
|
|
12
|
+
|
|
13
|
+
# Change to your timezone › http://www.timezoneconverter.com/cgi-bin/findzone/findzone
|
|
14
|
+
timezone: Asia/Shanghai
|
|
15
|
+
|
|
3
16
|
# jekyll-seo-tag settings › https://github.com/jekyll/jekyll-seo-tag/blob/master/docs/usage.md
|
|
4
17
|
# --------------------------
|
|
5
18
|
title: Chirpy # the main title
|
|
@@ -36,14 +49,6 @@ social:
|
|
|
36
49
|
google_site_verification: google_meta_tag_verification # change to your verification string
|
|
37
50
|
# --------------------------
|
|
38
51
|
|
|
39
|
-
|
|
40
|
-
# Only if your site type is GitHub Project sites and doesn't have a custom domain,
|
|
41
|
-
# change below value to '/projectname'.
|
|
42
|
-
baseurl: ''
|
|
43
|
-
|
|
44
|
-
# Change to your timezone › http://www.timezoneconverter.com/cgi-bin/findzone/findzone
|
|
45
|
-
timezone: Asia/Shanghai
|
|
46
|
-
|
|
47
52
|
google_analytics:
|
|
48
53
|
id: '' # Fill with your Google Analytics ID
|
|
49
54
|
pv:
|
|
@@ -55,11 +60,6 @@ google_analytics:
|
|
|
55
60
|
proxy_endpoint: ''
|
|
56
61
|
cache: false # pv data local cache, good for the users from GFW area.
|
|
57
62
|
|
|
58
|
-
disqus:
|
|
59
|
-
comments: false # boolean type, the global switch for posts comments.
|
|
60
|
-
shortname: '' # Fill with your Disqus shortname. › https://help.disqus.com/en/articles/1717111-what-s-a-shortname
|
|
61
|
-
|
|
62
|
-
|
|
63
63
|
# Prefer color scheme setting.
|
|
64
64
|
#
|
|
65
65
|
# Note: Keep empty will follow the system prefer color by default,
|
|
@@ -69,7 +69,6 @@ disqus:
|
|
|
69
69
|
# Available options:
|
|
70
70
|
#
|
|
71
71
|
# light - Use the light color scheme
|
|
72
|
-
#
|
|
73
72
|
# dark - Use the dark color scheme
|
|
74
73
|
#
|
|
75
74
|
theme_mode: # [light|dark]
|
|
@@ -87,8 +86,14 @@ avatar: https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images/commons/avatar.jpg
|
|
|
87
86
|
# boolean type, the global switch for ToC in posts.
|
|
88
87
|
toc: true
|
|
89
88
|
|
|
89
|
+
disqus:
|
|
90
|
+
comments: false # boolean type, the global switch for posts comments.
|
|
91
|
+
shortname: '' # Fill with your Disqus shortname. › https://help.disqus.com/en/articles/1717111-what-s-a-shortname
|
|
92
|
+
|
|
90
93
|
paginate: 10
|
|
91
94
|
|
|
95
|
+
# ------------ The following options are not recommended to be modified ------------------
|
|
96
|
+
|
|
92
97
|
kramdown:
|
|
93
98
|
syntax_highlighter: rouge
|
|
94
99
|
syntax_highlighter_opts: # Rouge Options › https://github.com/jneen/rouge#full-options
|
|
@@ -101,7 +106,7 @@ kramdown:
|
|
|
101
106
|
start_line: 1
|
|
102
107
|
|
|
103
108
|
# DO NOT change this unless you're a Pro user on Jekyll and Web development,
|
|
104
|
-
#
|
|
109
|
+
# Or you think you're smart enough to change other relevant URLs within this template.
|
|
105
110
|
permalink: /posts/:title/
|
|
106
111
|
|
|
107
112
|
collections:
|
|
@@ -119,55 +124,19 @@ defaults:
|
|
|
119
124
|
layout: post
|
|
120
125
|
comments: true # Enable comments in posts.
|
|
121
126
|
toc: true # Display TOC column in posts.
|
|
122
|
-
breadcrumb:
|
|
123
|
-
-
|
|
124
|
-
label: Posts
|
|
125
|
-
url: /
|
|
126
127
|
-
|
|
127
128
|
scope:
|
|
128
129
|
path: _drafts
|
|
129
130
|
values:
|
|
130
131
|
comments: false
|
|
131
|
-
-
|
|
132
|
-
scope:
|
|
133
|
-
path: index.html
|
|
134
|
-
values:
|
|
135
|
-
breadcrumb:
|
|
136
|
-
-
|
|
137
|
-
label: Posts
|
|
138
|
-
-
|
|
139
|
-
scope:
|
|
140
|
-
path: tags
|
|
141
|
-
values:
|
|
142
|
-
breadcrumb:
|
|
143
|
-
-
|
|
144
|
-
label: Home
|
|
145
|
-
url: /
|
|
146
|
-
-
|
|
147
|
-
label: Tags
|
|
148
|
-
url: /tabs/tags/
|
|
149
|
-
-
|
|
150
|
-
scope:
|
|
151
|
-
path: categories
|
|
152
|
-
values:
|
|
153
|
-
breadcrumb:
|
|
154
|
-
-
|
|
155
|
-
label: Home
|
|
156
|
-
url: /
|
|
157
|
-
-
|
|
158
|
-
label: Categories
|
|
159
|
-
url: /tabs/categories/
|
|
160
132
|
-
|
|
161
133
|
scope:
|
|
162
134
|
path: ''
|
|
163
135
|
type: tabs # see `site.collections`
|
|
164
136
|
values:
|
|
165
137
|
layout: page
|
|
138
|
+
permalink: /:title/
|
|
166
139
|
dynamic_title: true # Hide title in mobile screens.
|
|
167
|
-
breadcrumb:
|
|
168
|
-
-
|
|
169
|
-
label: Home
|
|
170
|
-
url: /
|
|
171
140
|
|
|
172
141
|
sass:
|
|
173
142
|
style: compressed
|
|
@@ -183,8 +152,10 @@ compress_html:
|
|
|
183
152
|
|
|
184
153
|
exclude:
|
|
185
154
|
- vendor
|
|
186
|
-
- Gemfile.lock
|
|
187
155
|
- Gemfile
|
|
156
|
+
- Gemfile.lock
|
|
157
|
+
- '*.gem'
|
|
158
|
+
- '*.gemspec'
|
|
188
159
|
- tools
|
|
189
160
|
- docs
|
|
190
161
|
- README.md
|
data/_includes/disqus.html
CHANGED
data/_includes/post-nav.html
CHANGED
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
<p>{{ page.previous.title }}</p>
|
|
10
10
|
</a>
|
|
11
11
|
{% else %}
|
|
12
|
-
<span class="btn btn-outline-primary disabled"
|
|
12
|
+
<span class="btn btn-outline-primary disabled"
|
|
13
|
+
prompt="{{ site.data.label.post.button.previous | default: 'previous' }}">
|
|
13
14
|
<p>-</p>
|
|
14
15
|
</span>
|
|
15
16
|
{% endif %}
|
|
@@ -20,7 +21,8 @@
|
|
|
20
21
|
<p>{{ page.next.title }}</p>
|
|
21
22
|
</a>
|
|
22
23
|
{% else %}
|
|
23
|
-
<span class="btn btn-outline-primary disabled"
|
|
24
|
+
<span class="btn btn-outline-primary disabled"
|
|
25
|
+
prompt="{{ site.data.label.post.button.next | default: 'next' }}">
|
|
24
26
|
<p>-</p>
|
|
25
27
|
</span>
|
|
26
28
|
{% endif %}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
Jekyll Simple Search loader
|
|
3
|
+
See: <https://github.com/christian-fei/Simple-Jekyll-Search>
|
|
3
4
|
-->
|
|
4
5
|
|
|
5
6
|
{% capture result_elem %}
|
|
6
7
|
<div class="pl-1 pr-1 pl-sm-2 pr-sm-2 pl-lg-4 pr-lg-4 pl-xl-0 pr-xl-0">
|
|
7
8
|
<a href="{{ site.url }}{url}">{title}</a>
|
|
8
9
|
<div class="post-meta d-flex flex-column flex-sm-row text-muted mt-1 mb-1">
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
{categories}
|
|
11
|
+
{tags}
|
|
11
12
|
</div>
|
|
12
13
|
<p>{snippet}</p>
|
|
13
14
|
</div>
|
|
@@ -23,6 +24,23 @@ SimpleJekyllSearch({
|
|
|
23
24
|
resultsContainer: document.getElementById('search-results'),
|
|
24
25
|
json: '{{ '/assets/js/data/search.json' | relative_url }}',
|
|
25
26
|
searchResultTemplate: '{{ result_elem | strip_newlines }}',
|
|
26
|
-
noResultsText: '{{ not_found }}'
|
|
27
|
+
noResultsText: '{{ not_found }}',
|
|
28
|
+
templateMiddleware: function(prop, value, template) {
|
|
29
|
+
if (prop === 'categories') {
|
|
30
|
+
if (value === '') {
|
|
31
|
+
return `${value}`;
|
|
32
|
+
} else {
|
|
33
|
+
return `<div class="mr-sm-4"><i class="far fa-folder fa-fw"></i>${value}</div>`;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
if (prop === 'tags') {
|
|
38
|
+
if (value === '') {
|
|
39
|
+
return `${value}`;
|
|
40
|
+
} else {
|
|
41
|
+
return `<div><i class="fa fa-tag fa-fw"></i>${value}</div>`;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
27
45
|
});
|
|
28
46
|
</script>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
The Search results
|
|
3
3
|
-->
|
|
4
4
|
<div id="search-result-wrapper" class="d-flex justify-content-center unloaded">
|
|
5
|
-
<div class="col-12 col-
|
|
5
|
+
<div class="col-12 col-sm-11 post-content">
|
|
6
6
|
<div id="search-hints">
|
|
7
7
|
<h4 class="text-muted mb-4">{{ site.data.label.panel.trending_tags | default: 'Trending Tags' }}</h4>
|
|
8
8
|
|
data/_includes/topbar.html
CHANGED
|
@@ -5,21 +5,42 @@
|
|
|
5
5
|
<div id="topbar-wrapper" class="row justify-content-center topbar-down">
|
|
6
6
|
<div id="topbar" class="col-11 d-flex h-100 align-items-center justify-content-between">
|
|
7
7
|
<span id="breadcrumb">
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
|
|
9
|
+
{% assign paths = page.url | split: '/' %}
|
|
10
|
+
|
|
11
|
+
{% if paths.size == 0 %}
|
|
12
|
+
<!-- index page -->
|
|
13
|
+
<span>{{ 'Posts' }}</span>
|
|
14
|
+
{% else %}
|
|
15
|
+
|
|
16
|
+
{% for item in paths %}
|
|
17
|
+
|
|
18
|
+
{% if forloop.first %}
|
|
19
|
+
{% unless page.layout == 'post' %}
|
|
20
|
+
<span>
|
|
21
|
+
<a href="{{ '/' | relative_url }}">{{ 'Home' }}</a>
|
|
22
|
+
</span>
|
|
23
|
+
{% endunless %}
|
|
24
|
+
|
|
25
|
+
{% elsif forloop.last %}
|
|
26
|
+
<span>{{ page.title }}</span>
|
|
27
|
+
|
|
28
|
+
{% else %}
|
|
10
29
|
<span>
|
|
11
|
-
|
|
12
|
-
|
|
30
|
+
{% assign url = item %}
|
|
31
|
+
{% if item == 'posts' and page.layout == 'post' %}
|
|
32
|
+
{% assign url = '/' %}
|
|
33
|
+
{% endif %}
|
|
34
|
+
<a href="{{ url | relative_url }}">
|
|
35
|
+
{{ item | capitalize }}
|
|
13
36
|
</a>
|
|
14
37
|
</span>
|
|
15
|
-
|
|
16
|
-
<span>{{ item.label }}</span>
|
|
38
|
+
|
|
17
39
|
{% endif %}
|
|
40
|
+
|
|
18
41
|
{% endfor %}
|
|
19
42
|
|
|
20
|
-
|
|
21
|
-
<span>{{ page.title }}</span>
|
|
22
|
-
{% endunless %}
|
|
43
|
+
{% endif %}
|
|
23
44
|
|
|
24
45
|
</span><!-- endof #breadcrumb -->
|
|
25
46
|
|