Skip to content

Commit e0535b9

Browse files
committed
update
1 parent e23510f commit e0535b9

File tree

157 files changed

+9889
-47
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+9889
-47
lines changed

cool-onion-155d0/.editorconfig

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
indent_size = 2
9+
indent_style = space
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
[*.md]
14+
trim_trailing_whitespace = false

cool-onion-155d0/.github/FUNDING.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# These are supported funding model platforms
2+
3+
github: jeffreytse # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: jeffreytse
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: jeffreytse
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: jeffreytse
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
13+

cool-onion-155d0/404.html

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
layout: 404
3+
---

cool-onion-155d0/Gemfile

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
gemspec

cool-onion-155d0/README.md

+194
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,194 @@
1+
<div align="center">
2+
<br>
3+
4+
<a href="https://github.com/jeffreytse/jekyll-theme-yat">
5+
<img alt="jekyll-theme-yat →~ jekyll" src="https://user-images.githubusercontent.com/9413601/106478481-346fdf00-64e4-11eb-9385-1ab5329c3234.png" width="600">
6+
</a>
7+
8+
<h1>🎨 JEKYLL YAT THEME 🎨</h1>
9+
10+
</div>
11+
12+
<h4 align="center">
13+
<a href="https://jekyllrb.com/" target="_blank"><code>Jekyll</code></a> theme for elegant writers.
14+
</h4>
15+
16+
<p align="center">
17+
<a href="https://jeffreytse.github.io/jekyll-theme-yat">
18+
<img src="https://github.com/jeffreytse/jekyll-theme-yat/workflows/Github%20Pages/badge.svg"
19+
alt="Github Pages" />
20+
</a>
21+
22+
<a href="http://badge.fury.io/rb/jekyll-theme-yat">
23+
<img src="https://badge.fury.io/rb/jekyll-theme-yat.svg"
24+
alt="Gem Version" />
25+
</a>
26+
27+
<a href="https://opensource.org/licenses/MIT">
28+
<img src="https://img.shields.io/badge/License-MIT-brightgreen.svg"
29+
alt="License: MIT" />
30+
</a>
31+
32+
<a href="https://liberapay.com/jeffreytse">
33+
<img src="http://img.shields.io/liberapay/goal/jeffreytse.svg?logo=liberapay"
34+
alt="Donate (Liberapay)" />
35+
</a>
36+
37+
<a href="https://patreon.com/jeffreytse">
38+
<img src="https://img.shields.io/badge/support-patreon-F96854.svg?style=flat-square"
39+
alt="Donate (Patreon)" />
40+
</a>
41+
42+
<a href="https://ko-fi.com/jeffreytse">
43+
<img height="20" src="https://www.ko-fi.com/img/githubbutton_sm.svg"
44+
alt="Donate (Ko-fi)" />
45+
</a>
46+
</p>
47+
48+
<div align="center">
49+
<sub>Built with ❤︎ by
50+
<a href="https://jeffreytse.net">jeffreytse</a> and
51+
<a href="https://github.com/jeffreytse/jekyll-theme-yat/graphs/contributors">contributors </a>
52+
</div>
53+
54+
<br>
55+
56+
Hey, nice to meet you, you found this [Jekyll][jekyll] theme. Here the
57+
**Yet Another Theme** is a modern responsive theme, and it's quiet clear,
58+
clean and neat for writers and posts. **If you like the theme, give it
59+
a star!**
60+
61+
62+
<p align="center">
63+
64+
<img src="https://user-images.githubusercontent.com/9413601/91842897-6a840b00-ec87-11ea-95ca-52abcc1ac063.png" alt="demo-screenshot" width="780px"/>
65+
66+
</p>
67+
68+
<h3 align="center">🌌 Night Mode</h3>
69+
70+
<p align="center">
71+
72+
<img src="https://user-images.githubusercontent.com/9413601/94983351-760f6e00-0574-11eb-9494-5303ad6228dc.gif" alt="demo-screenshot" width="780px"/>
73+
74+
</p>
75+
76+
## ✨ Features
77+
78+
- Support beautiful __Night Mode__.
79+
- Modern responsive web design.
80+
- Full layouts `home`, `post`, `tags`, `archive` and `about`.
81+
- Uses font awesome 5 for icons.
82+
- Beautiful Syntax Highlight using [hilight.js][hilight-js].
83+
- RSS support using [Jekyll Feed][jekyll-feed] gem.
84+
- Optimized for search engines using [Jekyll Seo Tag][jekyll-seo-tag] gem.
85+
- Sitemap support using [Jekyll Sitemap][jekyll-sitemap] gem.
86+
- Complex and flexible table support using [Jekyll Spaceship][jekyll-spaceship] gem.
87+
- MathJAX and LaTeX optional support using [Jekyll Spaceship][jekyll-spaceship] gem.
88+
- Media (Youtube, Spotify, etc.) support using [Jekyll Spaceship][jekyll-spaceship] gem.
89+
- Diagram (PlantUML, Mermaid) support using [Jekyll Spaceship][jekyll-spaceship] gem.
90+
- Google Translation support.
91+
- New post tag support.
92+
93+
Also, visit the [Live Demo][yat-live-demo] site for the theme.
94+
95+
## 🛠️ Installation
96+
97+
There are three ways to install:
98+
99+
- As a [gem-based theme](https://jekyllrb.com/docs/themes/#understanding-gem-based-themes).
100+
- As a [remote theme](https://blog.github.com/2017-11-29-use-any-theme-with-github-pages/) (GitHub Pages compatible).
101+
- Forking/directly copying all of the theme files into your project.
102+
103+
### Gem-based Theme Method
104+
105+
Add this line to your Jekyll site's `Gemfile`:
106+
107+
```ruby
108+
gem "jekyll-theme-yat"
109+
```
110+
111+
And add this line to your Jekyll site's `_config.yml`:
112+
113+
```yaml
114+
theme: jekyll-theme-yat
115+
```
116+
117+
And then execute:
118+
119+
```bash
120+
$ bundle
121+
```
122+
123+
Or install it yourself as:
124+
125+
```bash
126+
$ gem install jekyll-theme-yat
127+
```
128+
129+
### Remote Theme Method with GitHub Pages
130+
131+
Remote themes are similar to Gem-based themes, but do not require `Gemfile` changes or whitelisting making them ideal for sites hosted with GitHub Pages.
132+
133+
To install:
134+
135+
Add this line to your Jekyll site's `Gemfile`:
136+
137+
```ruby
138+
gem "github-pages", group: :jekyll_plugins
139+
```
140+
141+
And add this line to your Jekyll site's `_config.yml`:
142+
143+
```yaml
144+
# theme: owner/name --> Don't forget to remove/comment the gem-based theme option
145+
remote_theme: "jeffreytse/jekyll-theme-yat"
146+
```
147+
148+
And then execute:
149+
150+
```bash
151+
$ bundle
152+
```
153+
154+
### GitHub Pages without limitation
155+
156+
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+
158+
To use the third-party gem in GitHub Pages without limitation:
159+
160+
Here is a GitHub Action named [jekyll-deploy-action](https://github.com/jeffreytse/jekyll-deploy-action) for Jekyll site deployment conveniently. 👍
161+
162+
163+
## 📚 Usage
164+
165+
Add or update your available layouts, includes, sass and/or assets.
166+
167+
## ✏️ Development
168+
169+
To set up your environment to develop this theme, run `bundle install`.
170+
171+
Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
172+
173+
When your theme is released, only the files in `_data`, `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
174+
To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-yat.gemspec` accordingly.
175+
176+
## 🔫 Contributing
177+
178+
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+
180+
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+
182+
## 🌈 License
183+
184+
This theme is licensed under the [MIT license](https://opensource.org/licenses/mit-license.php) © JeffreyTse.
185+
186+
<!-- External links -->
187+
[jekyll]: https://jekyllrb.com/
188+
[yat-git-repo]: https://github.com/jeffreytse/jekyll-theme-yat/
189+
[yat-live-demo]: https://jeffreytse.github.io/jekyll-theme-yat/
190+
[jekyll-spaceship]: https://github.com/jeffreytse/jekyll-spaceship
191+
[jekyll-seo-tag]: https://github.com/jekyll/jekyll-seo-tag
192+
[jekyll-sitemap]: https://github.com/jekyll/jekyll-sitemap
193+
[jekyll-feed]: https://github.com/jekyll/jekyll-feed
194+
[hilight-js]: https://github.com/highlightjs/highlight.js

cool-onion-155d0/_config.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
title: Your awesome title
2+
3+
author: GitHub User
4+
copyright: Copyright © 1970-2010
5+
description: >-
6+
Write an awesome description for your new site here. You can edit this line in
7+
_config.yml. It will appear in your document head meta (for Google search
8+
results) and in your feed.xml site description.
9+
baseurl: ''
10+
url: ''
11+
favicon: ''
12+
yat:
13+
date_format: '%b %d, %Y'
14+
markdown: kramdown
15+
kmarkdown:
16+
input: GFM
17+
plugins:
18+
- jekyll-feed
19+
- jekyll-seo-tag
20+
- jekyll-sitemap
21+
- jekyll-paginate
22+
- jekyll-spaceship

cool-onion-155d0/_data/defaults.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
home:
2+
heading: "Your awesome heading"
3+
subheading: "Your awesome subheading"
4+
banner: "Your image url"
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Translate languges
2+
# langs refer to https://cloud.google.com/translate/docs/languages
3+
4+
- lang: en
5+
img: https://www.countryflags.io/us/flat/64.png
6+
text: English
7+
8+
- lang: fr
9+
img: https://www.countryflags.io/fr/flat/64.png
10+
text: Franch
11+
12+
- lang: zh-CN
13+
img: https://www.countryflags.io/cn/flat/64.png
14+
text: Chinese(Simple)
15+
16+
- lang: ja
17+
img: https://www.countryflags.io/jp/flat/64.png
18+
text: Japan
19+
20+
- lang: ko
21+
img: https://www.countryflags.io/kr/flat/64.png
22+
text: Korean
23+
24+
- lang: ru
25+
img: https://www.countryflags.io/ru/flat/64.png
26+
text: Russia
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<link rel="stylesheet"
2+
href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/default.min.css">
3+
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js"></script>
4+
<!-- and it's easy to individually load additional languages -->
5+
<script charset="UTF-8"
6+
src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/languages/go.min.js"></script>
7+
8+
{%- assign name = 'code_badge.enabled' -%}
9+
{%- include functions.html func='get_value' default='true' -%}
10+
{%- assign badge_enabled = return -%}
11+
12+
{%- assign name = 'code_badge.color' -%}
13+
{%- include functions.html func='get_value' default='#fff' -%}
14+
{%- assign badge_color = return -%}
15+
16+
{%- assign name = 'code_badge.background_color' -%}
17+
{%- include functions.html func='get_value' default='#ff4e00' -%}
18+
{%- assign badge_background_color = return -%}
19+
20+
{%- assign name = 'code_badge.text_transform' -%}
21+
{%- include functions.html func='get_value' default='uppercase' -%}
22+
{%- assign badge_text_transform = return -%}
23+
24+
<script>
25+
// Init highlight js
26+
document.addEventListener('DOMContentLoaded', function(event) {
27+
var els = document.querySelectorAll('pre code')
28+
29+
function addLangData(block) {
30+
var outer = block.parentElement.parentElement.parentElement;
31+
var lang = block.getAttribute('data-lang');
32+
for (var i = 0; i < outer.classList.length; i++) {
33+
var cls = outer.classList[i];
34+
if (cls.startsWith('language-')) {
35+
lang = cls;
36+
break;
37+
}
38+
}
39+
if (!lang) {
40+
cls = block.getAttribute('class');
41+
lang = cls ? cls.replace('hljs ', '') : '';
42+
}
43+
if (lang.startsWith('language-')) {
44+
lang = lang.substr(9);
45+
}
46+
block.setAttribute('class', 'hljs ' + lang);
47+
block.parentNode.setAttribute('data-lang', lang);
48+
}
49+
50+
function addBadge(block) {
51+
var enabled = ('{{ badge_enabled }}' || 'true').toLowerCase();
52+
if (enabled == 'true') {
53+
var pre = block.parentElement;
54+
pre.classList.add('badge');
55+
}
56+
}
57+
58+
function handle(block) {
59+
addLangData(block);
60+
addBadge(block)
61+
hljs.highlightBlock(block);
62+
}
63+
64+
for (var i = 0; i < els.length; i++) {
65+
var el = els[i];
66+
handle(el);
67+
}
68+
});
69+
</script>
70+
71+
<style>
72+
/* code language badge */
73+
pre.badge::before {
74+
content: attr(data-lang);
75+
color: {{badge_color}};
76+
background-color: {{badge_background_color}};
77+
padding: 0 .5em;
78+
border-radius: 0 2px;
79+
text-transform: {{badge_text_transform}};
80+
text-align: center;
81+
min-width: 32px;
82+
display: inline-block;
83+
position: absolute;
84+
right: 0;
85+
}
86+
87+
/* fix wrong badge display for firefox browser */
88+
code > table pre::before {
89+
display: none;
90+
}
91+
</style>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<div id="disqus_thread"></div>
2+
<script>
3+
var disqus_config = function () {
4+
this.page.url = '{{ page.url | absolute_url }}';
5+
this.page.identifier = '{{ page.url | absolute_url }}';
6+
};
7+
8+
(function() {
9+
var d = document, s = d.createElement('script');
10+
11+
s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
12+
13+
s.setAttribute('data-timestamp', +new Date());
14+
(d.head || d.body).appendChild(s);
15+
})();
16+
</script>
17+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>

0 commit comments

Comments
 (0)