jekyll-theme-tfg 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 83505c89b462ec9d807f96a30f84befeeffdabf6b4b2d3318014dfa0b8b8081e
4
+ data.tar.gz: 9761f41e77d20552e2a980e295f4de84a0c0550e317a1e0dde562f8106055efc
5
+ SHA512:
6
+ metadata.gz: 216278fda5740620d46479c608c5b1ba767dbbfe9516e4f0ff777352c9ff38623dbce1a6cacaaf4103245242f4ac77d79b406e30992b9af490d074aa8c1e60fd
7
+ data.tar.gz: 83aaca0ea95e3159a853fe7aac72d90f9a6bfa5ff89b0cd06d3fc24d96fee2c63c3add48e58972728b50873fc7fb0160fa6b01babe73e5b7aead590669af5259
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 vfvong
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,135 @@
1
+ # Jekyll Theme TFG
2
+
3
+ TFG is a tiny friendly giant Jekyll theme for powering blogs. The name of this theme is from [Koenigsegg Gemera](https://www.koenigsegg.com/gemera/)'s engine ["Tiny Friendly Giant"](https://www.koenigsegg.com/gemera/tiny-friendly-giant-engine/). It is small when it comes to emissions and consumption, and at the same time, it is big when it comes to power, torque, and sound. The target of this theme is similar—While providing friendly and powerful blog functions, try to keep the code and the design as tiny as possible.
4
+
5
+ Preview the demo.
6
+
7
+ ![Screenshot light](screenshot-light.png)
8
+ ![Screenshot dark](screenshot-dark.png)
9
+
10
+ ## Highlight Features
11
+
12
+ - Light and dark mode, via [`prefers-color-scheme`](https://web.dev/prefers-color-scheme/)
13
+ - [Google Analytics 4](https://analytics.google.com/analytics/web/)
14
+ - [Disqus](https://disqus.com/)
15
+ - [MathJax](https://www.mathjax.org/)
16
+ - [Font Awesome](https://fontawesome.com/)
17
+
18
+ ## Installation
19
+
20
+ Add this line to your Jekyll site's `Gemfile`:
21
+
22
+ ```ruby
23
+ gem "jekyll-theme-tfg"
24
+ ```
25
+
26
+ And add this line to your Jekyll site's `_config.yml`:
27
+
28
+ ```yaml
29
+ theme: jekyll-theme-tfg
30
+ ```
31
+
32
+ And then execute:
33
+
34
+ $ bundle
35
+
36
+ Or install it yourself as:
37
+
38
+ $ gem install jekyll-theme-tfg
39
+
40
+ If your website is hosted on GitHub Pages, you can install this theme via [`jekyll-remote-theme`](https://github.com/benbalter/jekyll-remote-theme).
41
+
42
+ Add the following to your `Gemfile`:
43
+
44
+ ```ruby
45
+ gem "jekyll-remote-theme"
46
+ ```
47
+
48
+ And add this line to your Jekyll site's `_config.yml`:
49
+
50
+ ```yml
51
+ plugins:
52
+ - jekyll-remote-theme
53
+ ```
54
+
55
+ Add the following to your site's `_config.yml`:
56
+
57
+ ```yml
58
+ remote_theme: vfvong/jekyll-theme-tfg
59
+ ```
60
+
61
+ ## Usage
62
+
63
+ Ease of use is one of the design goals of TFG. Basically, you only need to refer to the [`_config.yml`](https://github.com/vfvong/jekyll-theme-tfg/blob/gh-pages/_config.yml) file of the demo to set the basic parameters required to run the website.
64
+
65
+ ### Customization
66
+
67
+ You can of course fork the entire repository and make custom changes on your copy, but there is a much cleaner way: after referencing the theme, you just need to copy the [`_sass/tfg/_variables.scss`](https://github.com/vfvong/jekyll-theme-tfg/blob/main/_sass/tfg/_variables.scss) file to your repository in the corresponding path, and then modify some variables, you can customize the color and fonts you like.
68
+
69
+ If you want to put some extra data into the `<head>`, you don't need to overwrite the entire `_includes/head.html` file, and you just need to create a file `_includes/custom-head.html` in your repository, and then put your data into there.
70
+
71
+ ### Google Analytics 4
72
+
73
+ TFG support the [Google Analytics 4](https://support.google.com/analytics/answer/10089681). To enable it, just set the Measurement ID in the `_config.yml`, for example,
74
+
75
+ ```yml
76
+ google_analytics: G-XXXXXXXXXX
77
+ ```
78
+
79
+ ### Disqus
80
+
81
+ To enable [Disqus](https://disqus.com/), just set the [Disqus shortname](https://help.disqus.com/en/articles/1717111-what-s-a-shortname) in the `_config.yml`, for example,
82
+
83
+ ```yml
84
+ disqus: <your disqus shortname>
85
+ ```
86
+
87
+ ### MathJax
88
+
89
+ TFG relies on the [MathJax](https://www.mathjax.org/) to render math. The MathJax is disabled by default. You need to set `math: true` on the page where you want to enable the MathJax.
90
+
91
+ ### Navigation
92
+
93
+ The navigation in TFG is very easy to configure, just specify the titles and URLs in the [`_data/navigation.yml`](https://github.com/vfvong/jekyll-theme-tfg/blob/gh-pages/_data/navigation.yml) file, for example,
94
+
95
+ ```yml
96
+ - title: Home
97
+ url: /
98
+ - title: About
99
+ url: /about.html
100
+ - title: Archive
101
+ url: /archive.html
102
+ ```
103
+
104
+ ### Social Links
105
+
106
+ The social links in TFG is also very easy to connfigure. You don't need to import any large SVG file to render the icons because TFG supports the [Font Awesome](https://fontawesome.com/). Specify the titles, URLs, and icons in the [`_data/social.yml`](https://github.com/vfvong/jekyll-theme-tfg/blob/gh-pages/_data/social.yml) file, for example,
107
+
108
+ ```yml
109
+ - title: Email
110
+ url: mailto:vfvong@gmail.com
111
+ icon: fas fa-envelope
112
+ - title: Twitter
113
+ url: https://twitter.com/vfvong
114
+ icon: fab fa-twitter
115
+ - title: GitHub
116
+ url: https://github.com/vfvong
117
+ icon: fab fa-github
118
+ ```
119
+
120
+ ## Contributing
121
+
122
+ Bug reports and pull requests are welcome on GitHub at https://github.com/vfvong/jekyll-theme-tfg. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
123
+
124
+ ## Development
125
+
126
+ To set up your environment to develop this theme, run `bundle install`.
127
+
128
+ 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.
129
+
130
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
131
+ To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-tfg.gemspec` accordingly.
132
+
133
+ ## License
134
+
135
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,3 @@
1
+ {% comment %}
2
+ A placeholder for customizing head.
3
+ {% endcomment %}
@@ -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 }}.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,0 +1,29 @@
1
+ <footer class="avenir tc tl-l pv4 ph3 ph4-l bt border-color f6 f5-l">
2
+ {% if site.data.social %}
3
+ <div class="f4 f3-l mb3">
4
+ {% for social in site.data.social %}
5
+ <a class="mr2 color-inherit no-underline hover-no-decoration hover-darken" href="{{ social.url }}" target="_blank">
6
+ <i class="{{ social.icon | default: 'fas fa-link' }}" title="{{ social.title }}"></i>
7
+ </a>
8
+ {% endfor %}
9
+ </div>
10
+ {% endif %}
11
+ <div class="dt-l w-100">
12
+ <div class="dtc-l tl-l">
13
+ <p class="">
14
+ &copy; <time datetime="{{ site.time | date_to_xmlschema }}">{{ site.time | date: '%Y' }}</time>
15
+ {%- if site.author -%}
16
+ &nbsp;<a href="{{ site.author.url }}" target="_blank">{{ site.author.name }}</a>
17
+ {%- endif -%}. All rights reserved.
18
+ </p>
19
+ <p class="">
20
+ Powered by <a href="https://jekyllrb.com/" target="_blank">Jekyll</a> & <a href="https://github.com/vfvong/jekyll-theme-tfg" target="_blank">TFG</a>
21
+ </p>
22
+ </div>
23
+ {% if site.description %}
24
+ <p class="dtc-l tr-l pl4-l">
25
+ {{ site.description }}
26
+ </p>
27
+ {% endif %}
28
+ </div>
29
+ </footer>
@@ -0,0 +1,9 @@
1
+ <!-- Global site tag (gtag.js) - Google Analytics -->
2
+ <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
3
+ <script>
4
+ window.dataLayer = window.dataLayer || [];
5
+ function gtag(){dataLayer.push(arguments);}
6
+ gtag('js', new Date());
7
+
8
+ gtag('config', '{{ site.google_analytics }}');
9
+ </script>
@@ -0,0 +1,10 @@
1
+ <head>
2
+ <meta charset="UTF-8">
3
+ <meta name="viewport" content="width=device-width, initial-scale=1">
4
+
5
+ <link rel="stylesheet" href="https://unpkg.com/tachyons@4.12.0/css/tachyons.min.css"/>
6
+ <link rel="stylesheet" href="{{ 'assets/css/tfg/styles.css' | relative_url }}"/>
7
+ <script async src="https://use.fontawesome.com/releases/v5.15.4/js/all.js"></script>
8
+
9
+ {% include custom-head.html %}
10
+ </head>
@@ -0,0 +1,22 @@
1
+ <header class="w-100 tc pv4 pv2-l ph4-l bb border-color avenir dt-l">
2
+ <div class="dtc-l tl-l">
3
+ {% if site.avatar %}
4
+ <a class="dib-l v-mid-l mr2-l" href="{{ '/' | relative_url }}" title="Home">
5
+ <img class="w3 w2-l h3 h2-l br-100 ba border-color" src="{{ site.avatar | relative_url }}" alt="avatar">
6
+ </a>
7
+ {% endif %}
8
+ <h1 class="baskerville f2 f3-l mt2 mt0-l mb0 dib-l v-mid-l">
9
+ <a class="body-color-dark hover-no-decoration" href="{{ '/' | relative_url }}" title="Home">{{ site.title }}</a>
10
+ </h1>
11
+ <h2 class="f6 mt2 body-color-light dn-l">{{ site.tagline }}</h2>
12
+ </div>
13
+ {% if site.data.navigation %}
14
+ <nav class="dtc-l tr-l mt4 fw5">
15
+ {% for item in site.data.navigation %}
16
+ <a class="v-mid-l pa1 body-color-dark hover-line-through {% if page.url == item.url %}line-through{% endif %}" href="{{ item.url | relative_url }}">
17
+ {{ item.title }}
18
+ </a>
19
+ {% endfor %}
20
+ </nav>
21
+ {% endif %}
22
+ </header>
@@ -0,0 +1,2 @@
1
+ <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
2
+ <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
@@ -0,0 +1,19 @@
1
+ <!DOCTYPE html>
2
+ <html lang="{{ page.lang | default: site.lang | default: 'en' }}">
3
+ {% include head.html %}
4
+ <body class="flex flex-column min-vh-100">
5
+ {% include header.html %}
6
+ <main class="measure-wide pa3 center lh-copy f5 f4-l">
7
+ {{ content }}
8
+ </main>
9
+ {% include footer.html %}
10
+
11
+ {% if page.math %}
12
+ {% include mathjax.html %}
13
+ {% endif %}
14
+
15
+ {% if jekyll.environment == 'production' and site.google_analytics %}
16
+ {% include google-analytics.html %}
17
+ {% endif %}
18
+ </body>
19
+ </html>
@@ -0,0 +1,46 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <section>
6
+ {{ content }}
7
+ </section>
8
+
9
+ <section>
10
+ {% assign posts = site.posts %}
11
+ {% if paginator %}
12
+ {% assign posts = paginator.posts %}
13
+ {% endif %}
14
+ {% for post in posts %}
15
+ <article class="pa3 mv3 ba br4 border-color">
16
+ <h3 class="mt0 mb2">
17
+ <a href="{{ post.url | relative_url }}">
18
+ {{ post.title }}
19
+ </a>
20
+ </h3>
21
+ <p class="mv2">
22
+ {% if post.description %}
23
+ {{ post.description | strip_html }}
24
+ {% else %}
25
+ {{ post.excerpt | strip_html }}
26
+ {% endif %}
27
+ </p>
28
+ <time class="mb0 body-color-light f6 f5-l" datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date_to_string }}</time>
29
+ </article>
30
+ {% endfor %}
31
+ </section>
32
+
33
+ {% if paginator %}
34
+ <div class="dt w-100">
35
+ {% if paginator.previous_page %}
36
+ <a class="dtc tc pa3 ba br4 br--left border-color body-color-dark hover-bg" href="{{ paginator.previous_page_path | relative_url }}"><i class="fas fa-chevron-left"></i></a>
37
+ {% else %}
38
+ <span class="dtc tc pa3 ba br4 br--left border-color body-color-light"><i class="fas fa-chevron-left"></i></span>
39
+ {% endif %}
40
+ {% if paginator.next_page %}
41
+ <a class="dtc tc pa3 ba br4 br--right border-color body-color-dark hover-bg" href="{{ paginator.next_page_path | relative_url }}"><i class="fas fa-chevron-right"></i></a>
42
+ {% else %}
43
+ <span class="dtc tc pa3 ba br4 br--right border-color body-color-light"><i class="fas fa-chevron-right"></i></span>
44
+ {% endif %}
45
+ </div>
46
+ {% endif %}
@@ -0,0 +1,8 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <article>
6
+ <h1>{{ page.title }}</h1>
7
+ {{ content }}
8
+ </article>
@@ -0,0 +1,49 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <article>
6
+ <h1 class="mb2">{{ page.title }}</h1>
7
+ <div class="avenir mb4 f6 f5-l body-color-light">
8
+ <time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
9
+ {{ page.date | date_to_string }}
10
+ </time>
11
+ {%- if page.last_modified_at -%}
12
+ ~
13
+ {%- assign mdate = page.last_modified_at | date_to_xmlschema -%}
14
+ <time datetime="{{ mdate }}" itemprop="dateModified">
15
+ {{ mdate | date_to_string }}
16
+ </time>
17
+ {%- endif -%}
18
+ {%- if page.author -%}
19
+ •
20
+ {% for author in page.author %}
21
+ <span itemprop="author" itemscope itemtype="http://schema.org/Person">{{ author }}</span>
22
+ {%- if forloop.last == false %}, {% endif -%}
23
+ {% endfor %}
24
+ {%- endif -%}
25
+ </div>
26
+ {{ content }}
27
+ </article>
28
+
29
+ <div class="avenir dt w-100 mv4">
30
+ {% if page.previous %}
31
+ <a class="dtc tc tl-l w-50 pa3 ba br4 br--left border-color body-color-dark hover-no-decoration hover-bg" href="{{ page.previous.url | relative_url }}">
32
+ <i class="fas fa-chevron-left"></i> <span class="dn di-l">{{ page.previous.title | markdownify | strip_html }}</span>
33
+ </a>
34
+ {% else %}
35
+ <span class="dtc tc tl-l w-50 pa3 ba br4 br--left border-color body-color-light"><i class="fas fa-chevron-left"></i></span>
36
+ {% endif %}
37
+
38
+ {% if page.next %}
39
+ <a class="dtc tc tr-l w-50 pa3 ba br4 br--right border-color body-color-dark hover-no-decoration hover-bg" href="{{ page.next.url | relative_url }}">
40
+ <span class="dn di-l">{{ page.next.title | markdownify | strip_html }}</span> <i class="fas fa-chevron-right"></i>
41
+ </a>
42
+ {% else %}
43
+ <span class="dtc tc tr-l w-50 pa3 ba br4 br--right border-color body-color-light"><i class="fas fa-chevron-right"></i></span>
44
+ {% endif %}
45
+ </div>
46
+
47
+ {% if jekyll.environment == "production" and site.disqus and page.comments != false %}
48
+ {% include disqus.html %}
49
+ {% endif %}
@@ -0,0 +1,156 @@
1
+ /**
2
+ * Some base settings for common tags
3
+ */
4
+
5
+ body {
6
+ color: var(--body-color);
7
+ background-color: var(--body-bg);
8
+ font-family: var(--body-fonts);
9
+ }
10
+
11
+ footer {
12
+ margin-top: auto;
13
+ }
14
+
15
+ a {
16
+ color: var(--accent-color);
17
+ text-decoration: none;
18
+
19
+ &:hover,
20
+ &:focus {
21
+ text-decoration: underline;
22
+ }
23
+ }
24
+
25
+ blockquote {
26
+ border-left: .2em solid var(--border-color);
27
+ padding-left: 1em;
28
+ margin-left: 0;
29
+ margin-right: 0;
30
+ font-style: italic;
31
+
32
+ i, em {
33
+ font-style: normal;
34
+ }
35
+ }
36
+
37
+ ul, ol {
38
+ padding-left: 1.2em;
39
+ margin: 1em 0;
40
+ }
41
+
42
+ li {
43
+ ul, ol {
44
+ margin: 0;
45
+ }
46
+ }
47
+
48
+ figure {
49
+ margin: 0;
50
+ }
51
+
52
+ figcaption {
53
+ font-size: .8em;
54
+ }
55
+
56
+ article img {
57
+ display: block;
58
+ max-width: 100%;
59
+ margin: 1em 0;
60
+ border-radius: .5em;
61
+ }
62
+
63
+ table {
64
+ width: 100%;
65
+ border-collapse: collapse;
66
+ margin: 1em 0;
67
+ }
68
+
69
+ td, th {
70
+ padding: .25em .5em;
71
+ border-bottom: 1px solid var(--border-color);
72
+ }
73
+
74
+ thead th {
75
+ border-bottom-color: currentColor;
76
+ }
77
+
78
+ hr {
79
+ border: 0;
80
+ border-top: 1px solid var(--border-color);
81
+ }
82
+
83
+ code, pre {
84
+ font-family: var(--code-fonts);
85
+ font-size: .9em;
86
+ }
87
+
88
+ code {
89
+ padding: .1em .25em;
90
+ background-color: var(--body-fg);
91
+ border-radius: .5em;
92
+ }
93
+
94
+ pre {
95
+ overflow: auto;
96
+ padding: 1em;
97
+ margin: 1em 0;
98
+
99
+ code {
100
+ padding: 0;
101
+ background-color: inherit;
102
+ }
103
+ }
104
+
105
+ .highlight {
106
+ border-radius: .5em;
107
+ background-color: var(--body-fg);
108
+ }
109
+
110
+ .rouge-table {
111
+ border: 0;
112
+ margin: 0;
113
+
114
+ td,
115
+ th {
116
+ border: 0;
117
+ padding: 0;
118
+ }
119
+
120
+ pre {
121
+ padding: 0;
122
+ margin: 0;
123
+ }
124
+
125
+ .gutter {
126
+ user-select: none;
127
+ opacity: .5;
128
+ padding-right: 1em;
129
+ }
130
+ }
131
+
132
+ a[href^="#fn:"],
133
+ a[href^="#fnref:"] {
134
+ display: inline-block;
135
+ margin-left: .1em;
136
+ font-weight: bold;
137
+ }
138
+
139
+ // List of footnotes
140
+ .footnotes {
141
+ font-size: .8em;
142
+ }
143
+
144
+ #markdown-toc {
145
+ font-size: .8em;
146
+ padding: 2em 3em;
147
+ margin: 2em 0;
148
+ border: solid var(--border-color);
149
+ border-width: 1px 0;
150
+
151
+ &::before {
152
+ display: block;
153
+ margin-left: -3em;
154
+ content: "TOC";
155
+ }
156
+ }
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Some customized classes
3
+ */
4
+
5
+ /* Text */
6
+
7
+ .line-through {
8
+ text-decoration: line-through;
9
+ }
10
+
11
+ .hover-line-through {
12
+ &:hover,
13
+ &:focus {
14
+ text-decoration: line-through;
15
+ }
16
+ }
17
+
18
+ .hover-no-decoration {
19
+ &:hover,
20
+ &:focus {
21
+ text-decoration: none;
22
+ }
23
+ }
24
+
25
+ .hover-darken {
26
+ &:hover,
27
+ &:focus {
28
+ color: var(--body-color-dark);
29
+ }
30
+ }
31
+
32
+ .hover-bg {
33
+ &:hover,
34
+ &:focus {
35
+ background-color: var(--border-color);
36
+ }
37
+ }
38
+
39
+ /* Color */
40
+
41
+ .border-color {
42
+ border-color: var(--border-color);
43
+ }
44
+
45
+ .body-color-light {
46
+ color: var(--body-color-light);
47
+ }
48
+
49
+ .body-color-dark {
50
+ color: var(--body-color-dark);
51
+ }
@@ -0,0 +1,202 @@
1
+ /**
2
+ * rougify style monokai.sublime
3
+ */
4
+
5
+ .highlight table td { padding: 5px; }
6
+ .highlight table pre { margin: 0; }
7
+ .highlight .gh {
8
+ color: #999999;
9
+ }
10
+ .highlight .sr {
11
+ color: #f6aa11;
12
+ }
13
+ .highlight .go {
14
+ color: #888888;
15
+ }
16
+ .highlight .gp {
17
+ color: #555555;
18
+ }
19
+ .highlight .gs {
20
+ }
21
+ .highlight .gu {
22
+ color: #aaaaaa;
23
+ }
24
+ .highlight .nb {
25
+ color: #f6aa11;
26
+ }
27
+ .highlight .cm {
28
+ color: #75715e;
29
+ }
30
+ .highlight .cp {
31
+ color: #75715e;
32
+ }
33
+ .highlight .c1 {
34
+ color: #75715e;
35
+ }
36
+ .highlight .cs {
37
+ color: #75715e;
38
+ }
39
+ .highlight .c, .highlight .ch, .highlight .cd, .highlight .cpf {
40
+ color: #75715e;
41
+ }
42
+ .highlight .err {
43
+ color: #960050;
44
+ }
45
+ .highlight .gr {
46
+ color: #960050;
47
+ }
48
+ .highlight .gt {
49
+ color: #960050;
50
+ }
51
+ .highlight .gd {
52
+ color: #49483e;
53
+ }
54
+ .highlight .gi {
55
+ color: #49483e;
56
+ }
57
+ .highlight .ge {
58
+ color: #49483e;
59
+ }
60
+ .highlight .kc {
61
+ color: #66d9ef;
62
+ }
63
+ .highlight .kd {
64
+ color: #66d9ef;
65
+ }
66
+ .highlight .kr {
67
+ color: #66d9ef;
68
+ }
69
+ .highlight .no {
70
+ color: #66d9ef;
71
+ }
72
+ .highlight .kt {
73
+ color: #66d9ef;
74
+ }
75
+ .highlight .mf {
76
+ color: #ae81ff;
77
+ }
78
+ .highlight .mh {
79
+ color: #ae81ff;
80
+ }
81
+ .highlight .il {
82
+ color: #ae81ff;
83
+ }
84
+ .highlight .mi {
85
+ color: #ae81ff;
86
+ }
87
+ .highlight .mo {
88
+ color: #ae81ff;
89
+ }
90
+ .highlight .m, .highlight .mb, .highlight .mx {
91
+ color: #ae81ff;
92
+ }
93
+ .highlight .sc {
94
+ color: #ae81ff;
95
+ }
96
+ .highlight .se {
97
+ color: #ae81ff;
98
+ }
99
+ .highlight .ss {
100
+ color: #ae81ff;
101
+ }
102
+ .highlight .sd {
103
+ color: #e6db74;
104
+ }
105
+ .highlight .s2 {
106
+ color: #e6db74;
107
+ }
108
+ .highlight .sb {
109
+ color: #e6db74;
110
+ }
111
+ .highlight .sh {
112
+ color: #e6db74;
113
+ }
114
+ .highlight .si {
115
+ color: #e6db74;
116
+ }
117
+ .highlight .sx {
118
+ color: #e6db74;
119
+ }
120
+ .highlight .s1 {
121
+ color: #e6db74;
122
+ }
123
+ .highlight .s, .highlight .sa, .highlight .dl {
124
+ color: #e6db74;
125
+ }
126
+ .highlight .na {
127
+ color: #a6e22e;
128
+ }
129
+ .highlight .nc {
130
+ color: #a6e22e;
131
+ }
132
+ .highlight .nd {
133
+ color: #a6e22e;
134
+ }
135
+ .highlight .ne {
136
+ color: #a6e22e;
137
+ }
138
+ .highlight .nf, .highlight .fm {
139
+ color: #a6e22e;
140
+ }
141
+ .highlight .vc {
142
+ color: #ffffff;
143
+ background-color: #272822;
144
+ }
145
+ .highlight .nn {
146
+ color: #ffffff;
147
+ background-color: #272822;
148
+ }
149
+ .highlight .nl {
150
+ color: #ffffff;
151
+ background-color: #272822;
152
+ }
153
+ .highlight .ni {
154
+ color: #ffffff;
155
+ background-color: #272822;
156
+ }
157
+ .highlight .bp {
158
+ color: #ffffff;
159
+ background-color: #272822;
160
+ }
161
+ .highlight .vg {
162
+ color: #ffffff;
163
+ background-color: #272822;
164
+ }
165
+ .highlight .vi {
166
+ color: #ffffff;
167
+ background-color: #272822;
168
+ }
169
+ .highlight .nv, .highlight .vm {
170
+ color: #ffffff;
171
+ background-color: #272822;
172
+ }
173
+ .highlight .w {
174
+ color: #ffffff;
175
+ background-color: #272822;
176
+ }
177
+ .highlight {
178
+ color: #ffffff;
179
+ background-color: #272822;
180
+ }
181
+ .highlight .n, .highlight .py, .highlight .nx {
182
+ color: #ffffff;
183
+ background-color: #272822;
184
+ }
185
+ .highlight .ow {
186
+ color: #f92672;
187
+ }
188
+ .highlight .nt {
189
+ color: #f92672;
190
+ }
191
+ .highlight .k, .highlight .kv {
192
+ color: #f92672;
193
+ }
194
+ .highlight .kn {
195
+ color: #f92672;
196
+ }
197
+ .highlight .kp {
198
+ color: #f92672;
199
+ }
200
+ .highlight .o {
201
+ color: #f92672;
202
+ }
@@ -0,0 +1,217 @@
1
+ /**
2
+ * rougify style github
3
+ */
4
+
5
+ .highlight table td { padding: 5px; }
6
+ .highlight table pre { margin: 0; }
7
+ .highlight .cm {
8
+ color: #999988;
9
+ font-style: italic;
10
+ }
11
+ .highlight .cp {
12
+ color: #999999;
13
+ font-weight: bold;
14
+ }
15
+ .highlight .c1 {
16
+ color: #999988;
17
+ font-style: italic;
18
+ }
19
+ .highlight .cs {
20
+ color: #999999;
21
+ font-weight: bold;
22
+ font-style: italic;
23
+ }
24
+ .highlight .c, .highlight .ch, .highlight .cd, .highlight .cpf {
25
+ color: #999988;
26
+ font-style: italic;
27
+ }
28
+ .highlight .err {
29
+ color: #a61717;
30
+ background-color: #e3d2d2;
31
+ }
32
+ .highlight .gd {
33
+ color: #000000;
34
+ background-color: #ffdddd;
35
+ }
36
+ .highlight .ge {
37
+ color: #000000;
38
+ font-style: italic;
39
+ }
40
+ .highlight .gr {
41
+ color: #aa0000;
42
+ }
43
+ .highlight .gh {
44
+ color: #999999;
45
+ }
46
+ .highlight .gi {
47
+ color: #000000;
48
+ background-color: #ddffdd;
49
+ }
50
+ .highlight .go {
51
+ color: #888888;
52
+ }
53
+ .highlight .gp {
54
+ color: #555555;
55
+ }
56
+ .highlight .gs {
57
+ font-weight: bold;
58
+ }
59
+ .highlight .gu {
60
+ color: #aaaaaa;
61
+ }
62
+ .highlight .gt {
63
+ color: #aa0000;
64
+ }
65
+ .highlight .kc {
66
+ color: #000000;
67
+ font-weight: bold;
68
+ }
69
+ .highlight .kd {
70
+ color: #000000;
71
+ font-weight: bold;
72
+ }
73
+ .highlight .kn {
74
+ color: #000000;
75
+ font-weight: bold;
76
+ }
77
+ .highlight .kp {
78
+ color: #000000;
79
+ font-weight: bold;
80
+ }
81
+ .highlight .kr {
82
+ color: #000000;
83
+ font-weight: bold;
84
+ }
85
+ .highlight .kt {
86
+ color: #445588;
87
+ font-weight: bold;
88
+ }
89
+ .highlight .k, .highlight .kv {
90
+ color: #000000;
91
+ font-weight: bold;
92
+ }
93
+ .highlight .mf {
94
+ color: #009999;
95
+ }
96
+ .highlight .mh {
97
+ color: #009999;
98
+ }
99
+ .highlight .il {
100
+ color: #009999;
101
+ }
102
+ .highlight .mi {
103
+ color: #009999;
104
+ }
105
+ .highlight .mo {
106
+ color: #009999;
107
+ }
108
+ .highlight .m, .highlight .mb, .highlight .mx {
109
+ color: #009999;
110
+ }
111
+ .highlight .sa {
112
+ color: #000000;
113
+ font-weight: bold;
114
+ }
115
+ .highlight .sb {
116
+ color: #d14;
117
+ }
118
+ .highlight .sc {
119
+ color: #d14;
120
+ }
121
+ .highlight .sd {
122
+ color: #d14;
123
+ }
124
+ .highlight .s2 {
125
+ color: #d14;
126
+ }
127
+ .highlight .se {
128
+ color: #d14;
129
+ }
130
+ .highlight .sh {
131
+ color: #d14;
132
+ }
133
+ .highlight .si {
134
+ color: #d14;
135
+ }
136
+ .highlight .sx {
137
+ color: #d14;
138
+ }
139
+ .highlight .sr {
140
+ color: #009926;
141
+ }
142
+ .highlight .s1 {
143
+ color: #d14;
144
+ }
145
+ .highlight .ss {
146
+ color: #990073;
147
+ }
148
+ .highlight .s, .highlight .dl {
149
+ color: #d14;
150
+ }
151
+ .highlight .na {
152
+ color: #008080;
153
+ }
154
+ .highlight .bp {
155
+ color: #999999;
156
+ }
157
+ .highlight .nb {
158
+ color: #0086B3;
159
+ }
160
+ .highlight .nc {
161
+ color: #445588;
162
+ font-weight: bold;
163
+ }
164
+ .highlight .no {
165
+ color: #008080;
166
+ }
167
+ .highlight .nd {
168
+ color: #3c5d5d;
169
+ font-weight: bold;
170
+ }
171
+ .highlight .ni {
172
+ color: #800080;
173
+ }
174
+ .highlight .ne {
175
+ color: #990000;
176
+ font-weight: bold;
177
+ }
178
+ .highlight .nf, .highlight .fm {
179
+ color: #990000;
180
+ font-weight: bold;
181
+ }
182
+ .highlight .nl {
183
+ color: #990000;
184
+ font-weight: bold;
185
+ }
186
+ .highlight .nn {
187
+ color: #555555;
188
+ }
189
+ .highlight .nt {
190
+ color: #000080;
191
+ }
192
+ .highlight .vc {
193
+ color: #008080;
194
+ }
195
+ .highlight .vg {
196
+ color: #008080;
197
+ }
198
+ .highlight .vi {
199
+ color: #008080;
200
+ }
201
+ .highlight .nv, .highlight .vm {
202
+ color: #008080;
203
+ }
204
+ .highlight .ow {
205
+ color: #000000;
206
+ font-weight: bold;
207
+ }
208
+ .highlight .o {
209
+ color: #000000;
210
+ font-weight: bold;
211
+ }
212
+ .highlight .w {
213
+ color: #bbbbbb;
214
+ }
215
+ .highlight {
216
+ background-color: #f8f8f8;
217
+ }
@@ -0,0 +1,29 @@
1
+ :root {
2
+ /* Color */
3
+
4
+ --body-bg: #fff;
5
+ --body-fg: #F4F4F4;
6
+ --body-color: #333;
7
+ --body-color-light: #999;
8
+ --body-color-dark: #000;
9
+ --accent-color: #00449E;
10
+ --border-color: rgba(0,0,0,.2);
11
+
12
+ /* Fonts */
13
+
14
+ --body-fonts: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
15
+ --code-fonts: 'Courier New', Courier, monospace;
16
+ }
17
+
18
+ @media (prefers-color-scheme: dark) {
19
+ :root {
20
+ /* Color */
21
+
22
+ --body-bg: #111;
23
+ --body-fg: #333;
24
+ --body-color: #ccc;
25
+ --body-color-dark: #fff;
26
+ --accent-color: #9EEBCF;
27
+ --border-color: rgba(255,255,255,.2);
28
+ }
29
+ }
@@ -0,0 +1,7 @@
1
+ @import "variables";
2
+ @import "base";
3
+ @import "custom";
4
+ @import "highlight-light";
5
+ @media (prefers-color-scheme: dark) {
6
+ @import "highlight-dark";
7
+ }
@@ -0,0 +1,4 @@
1
+ ---
2
+ ---
3
+
4
+ @import "tfg/main";
metadata ADDED
@@ -0,0 +1,91 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jekyll-theme-tfg
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Song-Zi Vong
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-01-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jekyll
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: jekyll-paginate
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.1'
41
+ description:
42
+ email:
43
+ - vfvong@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - LICENSE.txt
49
+ - README.md
50
+ - _includes/custom-head.html
51
+ - _includes/disqus.html
52
+ - _includes/footer.html
53
+ - _includes/google-analytics.html
54
+ - _includes/head.html
55
+ - _includes/header.html
56
+ - _includes/mathjax.html
57
+ - _layouts/default.html
58
+ - _layouts/home.html
59
+ - _layouts/page.html
60
+ - _layouts/post.html
61
+ - _sass/tfg/_base.scss
62
+ - _sass/tfg/_custom.scss
63
+ - _sass/tfg/_highlight-dark.scss
64
+ - _sass/tfg/_highlight-light.scss
65
+ - _sass/tfg/_variables.scss
66
+ - _sass/tfg/main.scss
67
+ - assets/css/tfg/styles.scss
68
+ homepage: https://github.com/vfvong/jekyll-theme-tfg
69
+ licenses:
70
+ - MIT
71
+ metadata: {}
72
+ post_install_message:
73
+ rdoc_options: []
74
+ require_paths:
75
+ - lib
76
+ required_ruby_version: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
81
+ required_rubygems_version: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ requirements: []
87
+ rubygems_version: 3.2.22
88
+ signing_key:
89
+ specification_version: 4
90
+ summary: A tiny friendly giant Jekyll theme for powering blogs.
91
+ test_files: []