jekyll-theme-yat 1.8.0 → 1.9.0
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/README.md +24 -18
- data/_data/translate_langs.yml +1 -1
- data/_includes/custom-head.html +6 -0
- data/_includes/extensions/click-to-top.html +18 -0
- data/_includes/extensions/comments/utterances.html +51 -0
- data/_includes/extensions/google-analytics.html +1 -1
- data/_includes/extensions/google-translate.html +11 -1
- data/_includes/head.html +3 -2
- data/_includes/views/footer.html +10 -2
- data/_includes/views/header.html +6 -2
- data/_layouts/default.html +2 -0
- data/_layouts/post.html +4 -0
- data/_sass/misc/article-menu.scss +1 -1
- data/_sass/misc/click-to-top.scss +46 -0
- data/_sass/misc/google-translate.scss +1 -1
- data/_sass/yat/_base.scss +1 -0
- data/_sass/yat/_dark.scss +9 -3
- data/_sass/yat/_layout.scss +14 -2
- data/_sass/yat.scss +3 -2
- data/assets/css/main.scss +2 -0
- metadata +12 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ac1737e727da75e5ea98d69effa7a2a6cfb67983d629ad50d7c68d53ed8e8acf
|
|
4
|
+
data.tar.gz: a6a0d53cd3cd7f3f8ac132124212b13e11fbb9302601cfb741788294dadaac17
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d8c7650349f043503af65a144074e800dbb51b16973d23d56d432e3b777bd86919596f94cdd5e9c55de99f3de68edc302b729a860df322a21efc20fff4da9fb9
|
|
7
|
+
data.tar.gz: 065105e678deaf52fdef4b0f4dd89b878a84ff7e3b29ef6007d26099b5d00f079668e0fa30aaef0a2ce4258ec9823108123af80602c2b5e23088e047d52e3e0d
|
data/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<img alt="jekyll-theme-yat →~ jekyll" src="https://user-images.githubusercontent.com/9413601/106478481-346fdf00-64e4-11eb-9385-1ab5329c3234.png" width="600">
|
|
6
6
|
</a>
|
|
7
7
|
|
|
8
|
-
<h1
|
|
8
|
+
<h1>JEKYLL YAT THEME</h1>
|
|
9
9
|
|
|
10
10
|
</div>
|
|
11
11
|
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
alt="Github Pages" />
|
|
20
20
|
</a>
|
|
21
21
|
|
|
22
|
-
<a href="
|
|
22
|
+
<a href="https://badge.fury.io/rb/jekyll-theme-yat">
|
|
23
23
|
<img src="https://badge.fury.io/rb/jekyll-theme-yat.svg"
|
|
24
24
|
alt="Gem Version" />
|
|
25
25
|
</a>
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
</a>
|
|
31
31
|
|
|
32
32
|
<a href="https://liberapay.com/jeffreytse">
|
|
33
|
-
<img src="
|
|
33
|
+
<img src="https://img.shields.io/liberapay/goal/jeffreytse.svg?logo=liberapay"
|
|
34
34
|
alt="Donate (Liberapay)" />
|
|
35
35
|
</a>
|
|
36
36
|
|
|
@@ -49,36 +49,42 @@
|
|
|
49
49
|
<sub>Built with ❤︎ by
|
|
50
50
|
<a href="https://jeffreytse.net">jeffreytse</a> and
|
|
51
51
|
<a href="https://github.com/jeffreytse/jekyll-theme-yat/graphs/contributors">contributors </a>
|
|
52
|
+
</sub>
|
|
52
53
|
</div>
|
|
53
54
|
|
|
54
55
|
<br>
|
|
55
56
|
|
|
56
57
|
Hey, nice to meet you, you found this [Jekyll][jekyll] theme. Here the
|
|
57
|
-
|
|
58
|
-
clean and neat for writers and posts. **If you
|
|
59
|
-
|
|
58
|
+
_YAT (Yet Another Theme)_ is a modern responsive theme. It's quite
|
|
59
|
+
clear, clean and neat for writers and posts. **If you are an elegant
|
|
60
|
+
writer and focus on content, don't miss it.**
|
|
60
61
|
|
|
62
|
+
<p align="center">
|
|
63
|
+
Like this elegant theme? You can give it a star or sponsor me!<br>
|
|
64
|
+
I will respect your crucial support and say THANK YOU!
|
|
65
|
+
</p>
|
|
61
66
|
|
|
62
67
|
<p align="center">
|
|
63
68
|
|
|
64
|
-
<img src="https://user-images.githubusercontent.com/9413601/91842897-6a840b00-ec87-11ea-95ca-52abcc1ac063.png" alt="demo-screenshot" width="
|
|
69
|
+
<img src="https://user-images.githubusercontent.com/9413601/91842897-6a840b00-ec87-11ea-95ca-52abcc1ac063.png" alt="demo-screenshot" width="100%"/>
|
|
65
70
|
|
|
66
71
|
</p>
|
|
67
72
|
|
|
68
|
-
<
|
|
73
|
+
<h4 align="center">BANNER</h4>
|
|
69
74
|
|
|
70
75
|
<p align="center">
|
|
71
76
|
|
|
72
|
-
<img src="https://user-images.githubusercontent.com/9413601/
|
|
77
|
+
<img src="https://user-images.githubusercontent.com/9413601/123897812-ae729a00-d996-11eb-96b8-b76ba926f555.gif" alt="demo-screenshot" width="100%"/>
|
|
73
78
|
|
|
74
79
|
</p>
|
|
75
80
|
|
|
76
|
-
##
|
|
81
|
+
## Features
|
|
77
82
|
|
|
78
|
-
- Support beautiful
|
|
83
|
+
- Support beautiful **Night Mode**.
|
|
79
84
|
- Modern responsive web design.
|
|
80
85
|
- Full layouts `home`, `post`, `tags`, `archive` and `about`.
|
|
81
86
|
- Uses font awesome 5 for icons.
|
|
87
|
+
- Beautiful page banner with image and video.
|
|
82
88
|
- Beautiful Syntax Highlight using [highlight.js][highlight-js].
|
|
83
89
|
- RSS support using [Jekyll Feed][jekyll-feed] gem.
|
|
84
90
|
- Optimized for search engines using [Jekyll Seo Tag][jekyll-seo-tag] gem.
|
|
@@ -92,7 +98,7 @@ a star!**
|
|
|
92
98
|
|
|
93
99
|
Also, visit the [Live Demo][yat-live-demo] site for the theme.
|
|
94
100
|
|
|
95
|
-
##
|
|
101
|
+
## Installation
|
|
96
102
|
|
|
97
103
|
There are three ways to install:
|
|
98
104
|
|
|
@@ -153,18 +159,17 @@ $ bundle
|
|
|
153
159
|
|
|
154
160
|
### GitHub Pages without limitation
|
|
155
161
|
|
|
156
|
-
GitHub Pages runs in `safe` mode and only allows [a set of whitelisted plugins/themes](https://pages.github.com/versions/).
|
|
162
|
+
GitHub Pages runs in `safe` mode and only allows [a set of whitelisted plugins/themes](https://pages.github.com/versions/). **In other words, the third-party gems will not work normally**.
|
|
157
163
|
|
|
158
164
|
To use the third-party gem in GitHub Pages without limitation:
|
|
159
165
|
|
|
160
166
|
Here is a GitHub Action named [jekyll-deploy-action](https://github.com/jeffreytse/jekyll-deploy-action) for Jekyll site deployment conveniently. 👍
|
|
161
167
|
|
|
162
|
-
|
|
163
|
-
## 📚 Usage
|
|
168
|
+
## Usage
|
|
164
169
|
|
|
165
170
|
Add or update your available layouts, includes, sass and/or assets.
|
|
166
171
|
|
|
167
|
-
##
|
|
172
|
+
## Development
|
|
168
173
|
|
|
169
174
|
To set up your environment to develop this theme, run `bundle install`.
|
|
170
175
|
|
|
@@ -173,17 +178,18 @@ Your theme is setup just like a normal Jekyll site! To test your theme, run `bun
|
|
|
173
178
|
When your theme is released, only the files in `_data`, `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
|
174
179
|
To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-yat.gemspec` accordingly.
|
|
175
180
|
|
|
176
|
-
##
|
|
181
|
+
## Contributing
|
|
177
182
|
|
|
178
183
|
Issues and Pull Requests are greatly appreciated. If you've never contributed to an open source project before I'm more than happy to walk you through how to create a pull request.
|
|
179
184
|
|
|
180
185
|
You can start by [opening an issue](https://github.com/jeffreytse/jekyll-theme-yat/issues/new) describing the problem that you're looking to resolve and we'll go from there.
|
|
181
186
|
|
|
182
|
-
##
|
|
187
|
+
## License
|
|
183
188
|
|
|
184
189
|
This theme is licensed under the [MIT license](https://opensource.org/licenses/mit-license.php) © JeffreyTse.
|
|
185
190
|
|
|
186
191
|
<!-- External links -->
|
|
192
|
+
|
|
187
193
|
[jekyll]: https://jekyllrb.com/
|
|
188
194
|
[yat-git-repo]: https://github.com/jeffreytse/jekyll-theme-yat/
|
|
189
195
|
[yat-live-demo]: https://jeffreytse.github.io/jekyll-theme-yat/
|
data/_data/translate_langs.yml
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{% comment %}
|
|
2
|
+
Placeholder to allow defining custom head, in principle, you can add anything here, e.g. favicons:
|
|
3
|
+
|
|
4
|
+
1. Head over to https://realfavicongenerator.net/ to add your own favicons.
|
|
5
|
+
2. Customize default _includes/custom-head.html in your source directory and insert the given code snippet.
|
|
6
|
+
{% endcomment %}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<div id="click-to-top" class="click-to-top">
|
|
2
|
+
<i class="fa fa-arrow-up"></i>
|
|
3
|
+
</div>
|
|
4
|
+
<script>
|
|
5
|
+
(function () {
|
|
6
|
+
const clickToTop = document.getElementById('click-to-top');
|
|
7
|
+
window.addEventListener('scroll', () => {
|
|
8
|
+
if (window.scrollY > 100) {
|
|
9
|
+
clickToTop.classList.add('show')
|
|
10
|
+
}else {
|
|
11
|
+
clickToTop.classList.remove('show')
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
clickToTop.addEventListener('click', () => {
|
|
15
|
+
window.smoothScrollTo(0);
|
|
16
|
+
});
|
|
17
|
+
})();
|
|
18
|
+
</script>
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{%- if site.utterances.follow_site_theme -%}
|
|
2
|
+
<div id="utterances-placeholder"></div>
|
|
3
|
+
<script>
|
|
4
|
+
const utterancesThemeFromDataTheme = () => {
|
|
5
|
+
const dataTheme = document.documentElement.getAttribute('data-theme');
|
|
6
|
+
return `github-${dataTheme}`;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
const setUtterancesTheme = () => {
|
|
10
|
+
const iframe = document.querySelector('.utterances-frame');
|
|
11
|
+
if (iframe) {
|
|
12
|
+
const message = {
|
|
13
|
+
type: 'set-theme',
|
|
14
|
+
theme: utterancesThemeFromDataTheme()
|
|
15
|
+
};
|
|
16
|
+
iframe.contentWindow.postMessage(message, 'https://utteranc.es');
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// dynamic change
|
|
21
|
+
const observer = new MutationObserver((mutationsList, observer) => {
|
|
22
|
+
for (let mutation of mutationsList) {
|
|
23
|
+
if (mutation.type === 'attributes' && mutation.attributeName === 'data-theme') {
|
|
24
|
+
setUtterancesTheme();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
observer.observe(document.documentElement, { attributes: true, childList: false, subtree: false });
|
|
29
|
+
|
|
30
|
+
let utterancesScript = document.createElement('script');
|
|
31
|
+
utterancesScript.async = true;
|
|
32
|
+
utterancesScript.src = 'https://utteranc.es/client.js';
|
|
33
|
+
utterancesScript.crossOrigin = 'anonymous';
|
|
34
|
+
utterancesScript.setAttribute('issue-term', '{{ site.utterances.issue_term }}');
|
|
35
|
+
utterancesScript.setAttribute('label', '{{ site.utterances.label }}');
|
|
36
|
+
utterancesScript.setAttribute('repo', '{{ site.utterances.repo }}');
|
|
37
|
+
utterancesScript.setAttribute('theme', utterancesThemeFromDataTheme());
|
|
38
|
+
|
|
39
|
+
const placeholder = document.getElementById('utterances-placeholder');
|
|
40
|
+
placeholder.parentNode.replaceChild(utterancesScript, placeholder);
|
|
41
|
+
</script>
|
|
42
|
+
{%- else -%}
|
|
43
|
+
<script async
|
|
44
|
+
crossorigin="anonymous"
|
|
45
|
+
issue-term="{{ site.utterances.issue_term }}"
|
|
46
|
+
label="{{ site.utterances.label }}"
|
|
47
|
+
repo="{{ site.utterances.repo }}"
|
|
48
|
+
src="https://utteranc.es/client.js"
|
|
49
|
+
theme="{{ site.utterances.theme }}">
|
|
50
|
+
</script>
|
|
51
|
+
{%- endif -%}
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
{% assign translate_langs = include.translate_langs %}
|
|
3
3
|
{% endif %}
|
|
4
4
|
|
|
5
|
+
{% if include.lang %}
|
|
6
|
+
{% assign lang = include.lang %}
|
|
7
|
+
{% endif %}
|
|
8
|
+
|
|
5
9
|
<div id="google_translate_element" style="display: none;">
|
|
6
10
|
</div>
|
|
7
11
|
|
|
@@ -24,11 +28,17 @@
|
|
|
24
28
|
<script type="text/javascript">
|
|
25
29
|
function googleTranslateElementInit() {
|
|
26
30
|
new google.translate.TranslateElement({
|
|
27
|
-
pageLanguage: '',
|
|
31
|
+
pageLanguage: '{{ lang }}',
|
|
28
32
|
autoDisplay: false,
|
|
29
33
|
layout: google.translate.TranslateElement.InlineLayout.VERTICAL
|
|
30
34
|
}, 'google_translate_element');
|
|
31
35
|
|
|
36
|
+
// Links to cross-origin destinations are unsafe
|
|
37
|
+
var gll = document.getElementsByClassName('goog-logo-link')[0];
|
|
38
|
+
if (gll) {
|
|
39
|
+
gll.setAttribute('rel', 'noopener');
|
|
40
|
+
}
|
|
41
|
+
|
|
32
42
|
function restoreLang() {
|
|
33
43
|
var iframe = document.getElementsByClassName('goog-te-banner-frame')[0];
|
|
34
44
|
if (!iframe) return;
|
data/_includes/head.html
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
<meta charset="utf-8">
|
|
3
3
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
4
4
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
5
|
-
<meta name="google-translate-customization" content="108d9124921d80c3-80e20d618ff053c8-g4f02ec6f3dba68b7-c"
|
|
5
|
+
<meta name="google-translate-customization" content="108d9124921d80c3-80e20d618ff053c8-g4f02ec6f3dba68b7-c">
|
|
6
6
|
{%- seo -%}
|
|
7
|
-
<link rel="
|
|
7
|
+
<link rel="icon" href="{{ site.favicon }}">
|
|
8
8
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
|
9
9
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/typeface-noto-sans@0.0.72/index.min.css">
|
|
10
10
|
<link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}">
|
|
@@ -14,4 +14,5 @@
|
|
|
14
14
|
{%- include extensions/google-analytics.html -%}
|
|
15
15
|
{%- endif -%}
|
|
16
16
|
{%- include extensions/code-highlight.html -%}
|
|
17
|
+
{%- include custom-head.html -%}
|
|
17
18
|
</head>
|
data/_includes/views/footer.html
CHANGED
|
@@ -3,9 +3,17 @@
|
|
|
3
3
|
|
|
4
4
|
<div class="wrapper">
|
|
5
5
|
<div class="site-footer-inner">
|
|
6
|
-
|
|
6
|
+
{%- assign currentYear = 'now' | date: "%Y" -%}
|
|
7
|
+
{%- assign copyright = site.copyright
|
|
8
|
+
| replace: '{currentYear}', currentYear
|
|
9
|
+
| replace: '{author}', site.author
|
|
10
|
+
| replace: '(c)', '©'
|
|
11
|
+
| replace: '(p)', '℗'
|
|
12
|
+
| replace: '(cleft)', '<span class="copyleft">©</span>'
|
|
13
|
+
-%}
|
|
14
|
+
<div>{{ copyright }}</div>
|
|
7
15
|
<div>Powered by <a title="Jekyll is a simple, blog-aware, static site
|
|
8
|
-
generator." href="
|
|
16
|
+
generator." href="https://jekyllrb.com/">Jekyll</a> & <a title="Yat, yet
|
|
9
17
|
another theme." href="https://github.com/jeffreytse/jekyll-theme-yat">Yat Theme</a>.</div>
|
|
10
18
|
<div class="footer-col rss-subscribe">Subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></div>
|
|
11
19
|
</div>
|
data/_includes/views/header.html
CHANGED
|
@@ -44,6 +44,9 @@
|
|
|
44
44
|
{%- include functions.html func='get_value' -%}
|
|
45
45
|
{%- assign translate_langs = return -%}
|
|
46
46
|
{%- if translate_langs.size > 0 -%}
|
|
47
|
+
{%- assign name = 'lang' -%}
|
|
48
|
+
{%- include functions.html func='get_value' default='en' -%}
|
|
49
|
+
{%- assign lang = return -%}
|
|
47
50
|
<span class="page-link">
|
|
48
51
|
{%- include extensions/google-translate.html -%}
|
|
49
52
|
</span>
|
|
@@ -56,7 +59,7 @@
|
|
|
56
59
|
</header>
|
|
57
60
|
|
|
58
61
|
<script>
|
|
59
|
-
|
|
62
|
+
function initHeader() {
|
|
60
63
|
var lastScrollY = getScrollPos().y;
|
|
61
64
|
var documentElement = document.documentElement;
|
|
62
65
|
|
|
@@ -87,5 +90,6 @@
|
|
|
87
90
|
});
|
|
88
91
|
|
|
89
92
|
storeScrollData();
|
|
90
|
-
}
|
|
93
|
+
}
|
|
94
|
+
document.addEventListener('DOMContentLoaded', initHeader);
|
|
91
95
|
</script>
|
data/_layouts/default.html
CHANGED
data/_layouts/post.html
CHANGED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
.click-to-top {
|
|
2
|
+
transition: 0.3s;
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
position: fixed;
|
|
7
|
+
width: 64px;
|
|
8
|
+
height: 64px;
|
|
9
|
+
border-radius: 32px;
|
|
10
|
+
right: 60px;
|
|
11
|
+
bottom: 48px;
|
|
12
|
+
background: white;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
opacity: 0;
|
|
15
|
+
transform: translateY(10px);
|
|
16
|
+
box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
|
|
17
|
+
font-size: 24px;
|
|
18
|
+
user-select: none;
|
|
19
|
+
|
|
20
|
+
@include media-query(1024px) {
|
|
21
|
+
width: 48px;
|
|
22
|
+
height: 48px;
|
|
23
|
+
border-radius: 24px;
|
|
24
|
+
right: 35px;
|
|
25
|
+
font-size: 20px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@include media-query($on-palm) {
|
|
29
|
+
width: 36px;
|
|
30
|
+
height: 36px;
|
|
31
|
+
border-radius: 18px;
|
|
32
|
+
right: 20px;
|
|
33
|
+
font-size: 16px;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.click-to-top.show {
|
|
38
|
+
opacity: 1;
|
|
39
|
+
transform: translateY(0);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
html[data-theme="dark"] {
|
|
43
|
+
.click-to-top {
|
|
44
|
+
background: #34323D;
|
|
45
|
+
}
|
|
46
|
+
}
|
data/_sass/yat/_base.scss
CHANGED
data/_sass/yat/_dark.scss
CHANGED
|
@@ -142,9 +142,15 @@ html[data-theme="dark"] {
|
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
.post
|
|
146
|
-
|
|
147
|
-
|
|
145
|
+
.post {
|
|
146
|
+
.post-header {
|
|
147
|
+
border-bottom: 1px solid #555;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.post-content {
|
|
151
|
+
img:not(.emoji):not([raw]) {
|
|
152
|
+
background-color: #ffffff33;
|
|
153
|
+
}
|
|
148
154
|
}
|
|
149
155
|
}
|
|
150
156
|
|
data/_sass/yat/_layout.scss
CHANGED
|
@@ -210,6 +210,11 @@ html {
|
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
+
.copyleft {
|
|
214
|
+
display: inline-block;
|
|
215
|
+
transform: rotate(180deg);
|
|
216
|
+
}
|
|
217
|
+
|
|
213
218
|
/**
|
|
214
219
|
* Post header
|
|
215
220
|
*/
|
|
@@ -314,17 +319,21 @@ html {
|
|
|
314
319
|
|
|
315
320
|
.post-excerpt {
|
|
316
321
|
color: #777;
|
|
322
|
+
word-break: break-word;
|
|
323
|
+
overflow-wrap: break-word;
|
|
317
324
|
}
|
|
318
325
|
|
|
319
326
|
.post-tags .post-tag {
|
|
327
|
+
display: inline-block;
|
|
320
328
|
text-decoration: none;
|
|
321
329
|
border: 1px solid;
|
|
322
330
|
padding: 2px 4px;
|
|
323
331
|
border-radius: 2px;
|
|
324
332
|
transition: color 0.2s;
|
|
333
|
+
margin-bottom: 8px;
|
|
325
334
|
|
|
326
|
-
&:not(:
|
|
327
|
-
margin-
|
|
335
|
+
&:not(:last-child) {
|
|
336
|
+
margin-right: 8px;
|
|
328
337
|
}
|
|
329
338
|
|
|
330
339
|
&:hover {
|
|
@@ -425,6 +434,9 @@ html {
|
|
|
425
434
|
img, svg, iframe {
|
|
426
435
|
margin-left: auto;
|
|
427
436
|
margin-right: auto;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
img:not(.emoji), svg, iframe {
|
|
428
440
|
display: block;
|
|
429
441
|
}
|
|
430
442
|
|
data/_sass/yat.scss
CHANGED
|
@@ -34,7 +34,7 @@ $banner-text-color: lighten($white-color, 0%) !default;
|
|
|
34
34
|
$banner-background: rgba(0,0,0,0.8) !default;
|
|
35
35
|
|
|
36
36
|
// Width of the content area
|
|
37
|
-
$content-width: 920px !default;
|
|
37
|
+
// $content-width: 920px !default;
|
|
38
38
|
|
|
39
39
|
$on-palm: 600px !default;
|
|
40
40
|
$on-laptop: 800px !default;
|
|
@@ -65,5 +65,6 @@ $on-laptop: 800px !default;
|
|
|
65
65
|
"misc/article-menu",
|
|
66
66
|
"misc/common-list",
|
|
67
67
|
"misc/google-translate",
|
|
68
|
-
"misc/gitment"
|
|
68
|
+
"misc/gitment",
|
|
69
|
+
"misc/click-to-top"
|
|
69
70
|
;
|
data/assets/css/main.scss
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-theme-yat
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- jeffreytse
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-02-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -140,9 +140,9 @@ dependencies:
|
|
|
140
140
|
- - "~>"
|
|
141
141
|
- !ruby/object:Gem::Version
|
|
142
142
|
version: '0.2'
|
|
143
|
-
description:
|
|
143
|
+
description:
|
|
144
144
|
email:
|
|
145
|
-
- jeffreytse.
|
|
145
|
+
- hello@jeffreytse.net
|
|
146
146
|
executables: []
|
|
147
147
|
extensions: []
|
|
148
148
|
extra_rdoc_files: []
|
|
@@ -151,9 +151,12 @@ files:
|
|
|
151
151
|
- README.md
|
|
152
152
|
- _data/defaults.yml
|
|
153
153
|
- _data/translate_langs.yml
|
|
154
|
+
- _includes/custom-head.html
|
|
155
|
+
- _includes/extensions/click-to-top.html
|
|
154
156
|
- _includes/extensions/code-highlight.html
|
|
155
157
|
- _includes/extensions/comments/disqus.html
|
|
156
158
|
- _includes/extensions/comments/gitment.html
|
|
159
|
+
- _includes/extensions/comments/utterances.html
|
|
157
160
|
- _includes/extensions/geopattern.html
|
|
158
161
|
- _includes/extensions/google-analytics.html
|
|
159
162
|
- _includes/extensions/google-translate.html
|
|
@@ -199,6 +202,7 @@ files:
|
|
|
199
202
|
- _layouts/post.html
|
|
200
203
|
- _layouts/tags.html
|
|
201
204
|
- _sass/misc/article-menu.scss
|
|
205
|
+
- _sass/misc/click-to-top.scss
|
|
202
206
|
- _sass/misc/common-list.scss
|
|
203
207
|
- _sass/misc/gitment.scss
|
|
204
208
|
- _sass/misc/google-translate.scss
|
|
@@ -215,7 +219,7 @@ licenses:
|
|
|
215
219
|
- MIT
|
|
216
220
|
metadata:
|
|
217
221
|
plugin_type: theme
|
|
218
|
-
post_install_message:
|
|
222
|
+
post_install_message:
|
|
219
223
|
rdoc_options: []
|
|
220
224
|
require_paths:
|
|
221
225
|
- lib
|
|
@@ -230,8 +234,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
230
234
|
- !ruby/object:Gem::Version
|
|
231
235
|
version: '0'
|
|
232
236
|
requirements: []
|
|
233
|
-
rubygems_version: 3.
|
|
234
|
-
signing_key:
|
|
237
|
+
rubygems_version: 3.0.3.1
|
|
238
|
+
signing_key:
|
|
235
239
|
specification_version: 4
|
|
236
240
|
summary: Yet another theme for elegant writers with modern flat style and beautiful
|
|
237
241
|
night/dark mode.
|