jekyll-yamt 0.1.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 +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +92 -0
- data/_includes/analytics.html +9 -0
- data/_includes/categories.html +13 -0
- data/_includes/disqus.html +19 -0
- data/_includes/footer.html +3 -0
- data/_includes/head.html +37 -0
- data/_includes/header.html +16 -0
- data/_includes/pages.html +3 -0
- data/_includes/reading_time.html +21 -0
- data/_includes/related-posts.html +36 -0
- data/_includes/social.html +8 -0
- data/_layouts/archive.html +15 -0
- data/_layouts/contact.html +17 -0
- data/_layouts/default.html +19 -0
- data/_layouts/home.html +43 -0
- data/_layouts/page.html +5 -0
- data/_layouts/post.html +45 -0
- data/_sass/archive.scss +10 -0
- data/_sass/base.scss +126 -0
- data/_sass/contact.scss +49 -0
- data/_sass/footer.scss +24 -0
- data/_sass/header.scss +72 -0
- data/_sass/home.scss +37 -0
- data/_sass/mobile.scss +52 -0
- data/_sass/paginator.scss +36 -0
- data/_sass/post.scss +77 -0
- data/_sass/related-posts.scss +22 -0
- data/_sass/scrollbar.scss +17 -0
- data/_sass/typography.scss +41 -0
- data/assets/css/main.scss +4 -0
- data/assets/css/syntax.scss +258 -0
- data/assets/favicon.ico +0 -0
- data/assets/img/airplane.jpg +0 -0
- data/assets/img/forest-snow.jpg +0 -0
- data/assets/img/logo.jpg +0 -0
- data/assets/img/mountain.jpg +0 -0
- data/assets/img/rose.jpg +0 -0
- data/assets/img/rotation.gif +0 -0
- data/assets/img/rotation.jpg +0 -0
- metadata +181 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2050a638a54029f7a3794614f05645aa6c88a0fca0d47275fe5d34f4f06f7730
|
4
|
+
data.tar.gz: 5df8c73aba18572c48609c7b15b43726b62e0d930ea07ad02f0f69dfa2f3c40b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b684852ae3d9c2b99e7fda634fdf82f45cd836ef842cec6ae4a45cc66a9572e182fbb604a48d759d57a79459c3c748ede8c97f97011989d578c379b43411936e
|
7
|
+
data.tar.gz: 4b43c711505cbbdfbca4d096612c5bab38160b5cf134c67626916146efb81f4e7f5614e6770c8ed9ba119e0de397c47631a53aca24284eb6fa59256f3747ffad
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020 PandaSekh
|
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,92 @@
|
|
1
|
+
# WORK IN PROGRESS! STILL NEED TO FIX MINOR THINGS AND TO WRITE THE DOCS
|
2
|
+
|
3
|
+
# [YAMT - Yet Another Minimal Theme](https://yamt.netlify.app/)
|
4
|
+

|
5
|
+

|
6
|
+
[](https://github.com/PandaSekh/Jekyll-YAMT/issues)
|
7
|
+
|
8
|
+
[](https://yamt.netlify.app/)
|
9
|
+

|
10
|
+
## [Live Demo](https://yamt.netlify.app/)
|
11
|
+
YAMT is a minimal [Jekyll](http://jekyllrb.com) theme focused on simplicity and ease-of-use. It has great modularity, allowing you to easily decide what you actually want on your website.
|
12
|
+
|
13
|
+
## Contents
|
14
|
+
|
15
|
+
- [Features](#features)
|
16
|
+
- [Installation](#installation)
|
17
|
+
- [Usage](#usage)
|
18
|
+
- [Customize](#options)
|
19
|
+
- [Header](#header)
|
20
|
+
- [Post](#post)
|
21
|
+
- [Development](#development)
|
22
|
+
- [License](#license)
|
23
|
+
|
24
|
+
## Features
|
25
|
+
|
26
|
+
## Installation
|
27
|
+
There are four way to use YAMT: Netlify (suggested, as this theme has a contact module built-in working only on Netlify), Github Pages, as a gem-based theme, by forking this repo or by copying all the files into your directory.
|
28
|
+
|
29
|
+
### Netlify
|
30
|
+
1. [Fork this repo](https://github.com/PandaSekh/Jekyll-YAMT/generate). You can copy only master, set it to private or public and name it however you want.
|
31
|
+
2. Go to [Netlify](https://app.netlify.com/), create a New site from Git, choose your repo or all repos, no difference. Back to Netlify, select the recently forked repo.
|
32
|
+
3. Owner and branch are good to go. In build command write `bundle exec jekyll build` and publishing directory should be `_site/`.
|
33
|
+
4. Deploy. Your site will shortly be available. Under domain settings you can change your subdomain, or add a primary level one.
|
34
|
+
|
35
|
+
### Github Pages
|
36
|
+
|
37
|
+
### Remote theme
|
38
|
+
1. Have a gemfile with only the following content:
|
39
|
+
|
40
|
+
```ruby
|
41
|
+
source "https://rubygems.org"
|
42
|
+
|
43
|
+
gem "github-pages", group: :jekyll_plugins
|
44
|
+
```
|
45
|
+
|
46
|
+
2. Run the following command:
|
47
|
+
|
48
|
+
```bash
|
49
|
+
bundle
|
50
|
+
```
|
51
|
+
|
52
|
+
### Gem-based theme
|
53
|
+
1. Add this line to your Jekyll site's `Gemfile`:
|
54
|
+
|
55
|
+
```ruby
|
56
|
+
gem "yamt"
|
57
|
+
```
|
58
|
+
|
59
|
+
2. And add this line to your Jekyll site's `_config.yml`:
|
60
|
+
|
61
|
+
```yaml
|
62
|
+
theme: yamt
|
63
|
+
```
|
64
|
+
|
65
|
+
3. And then execute:
|
66
|
+
|
67
|
+
``` bash
|
68
|
+
$ bundle
|
69
|
+
```
|
70
|
+
|
71
|
+
4. Or install it yourself as:
|
72
|
+
|
73
|
+
``` bash
|
74
|
+
$ gem install yamt
|
75
|
+
```
|
76
|
+
|
77
|
+
## Usage
|
78
|
+
|
79
|
+
TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
|
80
|
+
|
81
|
+
## Development
|
82
|
+
|
83
|
+
To set up your environment to develop this theme, run `bundle install`.
|
84
|
+
|
85
|
+
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.
|
86
|
+
|
87
|
+
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
88
|
+
To add a custom directory to your theme-gem, please edit the regexp in `yamt.gemspec` accordingly.
|
89
|
+
|
90
|
+
## License
|
91
|
+
|
92
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<!-- Global site tag (gtag.js) - Google Analytics -->
|
2
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.analytics-id }}"></script>
|
3
|
+
<script>
|
4
|
+
window.dataLayer = window.dataLayer || [];
|
5
|
+
function gtag(){dataLayer.push(arguments);}
|
6
|
+
gtag('js', new Date());
|
7
|
+
|
8
|
+
gtag('config', '{{ site.analytics-id }}');
|
9
|
+
</script>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<div class="categories">
|
2
|
+
<span><p>Categories:</p>
|
3
|
+
{% if post %}
|
4
|
+
{% assign categories = post.categories %}
|
5
|
+
{% else %}
|
6
|
+
{% assign categories = page.categories %}
|
7
|
+
{% endif %}
|
8
|
+
{% for category in categories %}
|
9
|
+
<a href="{{site.url}}/categories/#{{category|slugize}}">{{category}}</a>
|
10
|
+
{% unless forloop.last %} {% endunless %}
|
11
|
+
{% endfor %}
|
12
|
+
</span>
|
13
|
+
</div>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<section class="disqus">
|
2
|
+
<p id="load-comments" onclick="loadDisqus()">Load Comments</p>
|
3
|
+
<div id="disqus_thread"></div>
|
4
|
+
|
5
|
+
<script id="loadDisqus" type="text/javascript">
|
6
|
+
var disqus_loaded = false;
|
7
|
+
var disqus_shortname = "{{ site.data.settings.disqus.disqus_shortname }}";
|
8
|
+
var disqus_identifier = "{{ page.url }}";
|
9
|
+
function loadDisqus() {
|
10
|
+
var e = document.createElement('script');
|
11
|
+
e.type = 'text/javascript';
|
12
|
+
e.async = true;
|
13
|
+
e.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
14
|
+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(e);
|
15
|
+
document.getElementById("load-comments").style.display = "none";
|
16
|
+
};
|
17
|
+
</script>
|
18
|
+
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments.</a></noscript>
|
19
|
+
</section>
|
data/_includes/head.html
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
<html lang="en-US">
|
2
|
+
<meta charset="UTF-8">
|
3
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
4
|
+
|
5
|
+
<title>
|
6
|
+
{% if page.title == "Home" %}
|
7
|
+
{{ site.title }} | {{ site.description }}
|
8
|
+
{% else %}
|
9
|
+
{{ page.title }} | {{ site.title }}
|
10
|
+
{% endif %}
|
11
|
+
</title>
|
12
|
+
<meta name="description" content="
|
13
|
+
{% if page.description %}{{ page.description }}
|
14
|
+
{% else %}{{ site.description }}
|
15
|
+
{% endif %}">
|
16
|
+
|
17
|
+
<link rel="icon" href="/assets/favicon.ico" type="image/x-icon">
|
18
|
+
<link rel="shortcut icon" href="/assets/favicon.ico" type="image/x-icon">
|
19
|
+
|
20
|
+
<!-- CSS -->
|
21
|
+
<link rel="stylesheet" href="{{ "/assets/css/main.css" | prepend: site.baseurl | replace: '//', '/' }}">
|
22
|
+
<link rel="stylesheet" href="{{ "/assets/css/syntax.css" | prepend: site.baseurl | replace: '//', '/' }}">
|
23
|
+
|
24
|
+
<!-- Icons -->
|
25
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css">
|
26
|
+
|
27
|
+
<!-- Fonts -->
|
28
|
+
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=PT+Serif&display=swap" rel="stylesheet">
|
29
|
+
|
30
|
+
<!-- SEO Plugin -->
|
31
|
+
{% seo %}
|
32
|
+
|
33
|
+
<!-- Google Analytics -->
|
34
|
+
{% if site.data.settings.analytics-id%}
|
35
|
+
{%- include analytics.html -%}
|
36
|
+
{% endif %}
|
37
|
+
<!-- End Google Analytics -->
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<header id="header">
|
2
|
+
<div id = site_title>
|
3
|
+
<a href="{{ site.url }}">
|
4
|
+
<h1>{{site.title}}</h1>
|
5
|
+
</a>
|
6
|
+
</div>
|
7
|
+
|
8
|
+
<div id="subheader">
|
9
|
+
<nav class="pages">
|
10
|
+
{%- include pages.html -%}
|
11
|
+
</nav>
|
12
|
+
<nav class="social">
|
13
|
+
{% include social.html %}
|
14
|
+
</nav>
|
15
|
+
</div>
|
16
|
+
</header>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
{% if post.layout != post %}
|
2
|
+
{% assign words = post.content | strip_html | number_of_words %}
|
3
|
+
{% if words < 180 %}
|
4
|
+
Less than 1 minute read
|
5
|
+
{% elsif words < 360 %}
|
6
|
+
1 minute read
|
7
|
+
{% else %}
|
8
|
+
{{ words | divided_by:180 }} minute read
|
9
|
+
{% endif %}
|
10
|
+
{% endif %}
|
11
|
+
|
12
|
+
{% if post.layout == post %}
|
13
|
+
{% assign words = content | number_of_words %}
|
14
|
+
{% if words < 180 %}
|
15
|
+
Less than 1 minute read
|
16
|
+
{% elsif words < 360 %}
|
17
|
+
1 minute read
|
18
|
+
{% else %}
|
19
|
+
{{ words | divided_by:180 }} minute read
|
20
|
+
{% endif %}
|
21
|
+
{% endif %}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<div class="related">
|
2
|
+
|
3
|
+
<h4>{{site.data.settings.related-posts.title}}</h4>
|
4
|
+
|
5
|
+
{% assign maxRelated = 4 %}
|
6
|
+
{% assign minCommonTags = 1 %}
|
7
|
+
{% assign maxRelatedCounter = 0 %}
|
8
|
+
|
9
|
+
{% for post in site.posts %}
|
10
|
+
|
11
|
+
{% assign sameTagCount = 0 %}
|
12
|
+
{% assign commonTags = '' %}
|
13
|
+
|
14
|
+
{% for category in post.categories %}
|
15
|
+
{% if post.url != page.url %}
|
16
|
+
{% if page.categories contains category %}
|
17
|
+
{% assign sameTagCount = sameTagCount | plus: 1 %}
|
18
|
+
{% capture tagmarkup %} <span class="label label-default">{{ category }}</span> {% endcapture %}
|
19
|
+
{% assign commonTags = commonTags | append: tagmarkup %}
|
20
|
+
{% endif %}
|
21
|
+
{% endif %}
|
22
|
+
{% endfor %}
|
23
|
+
|
24
|
+
{% if sameTagCount >= minCommonTags %}
|
25
|
+
<div class = "related-posts">
|
26
|
+
<h5><a href="{{ site.baseurl }}{{ post.url }}">• {{ post.title }}</a></h5>
|
27
|
+
</div>
|
28
|
+
{% assign maxRelatedCounter = maxRelatedCounter | plus: 1 %}
|
29
|
+
{% if maxRelatedCounter >= maxRelated %}
|
30
|
+
{% break %}
|
31
|
+
{% endif %}
|
32
|
+
{% endif %}
|
33
|
+
|
34
|
+
{% endfor %}
|
35
|
+
|
36
|
+
</div>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
{% for item in site.data.social.social %}
|
2
|
+
{% if item.type == "brand"%}
|
3
|
+
<a href="{{ item.link }}" target="_blank" id="{{item.icon}}"><i class="fab fa-{{item.icon}}" aria-hidden="true"></i></a>
|
4
|
+
{% endif %}
|
5
|
+
{% if item.type == "solid"%}
|
6
|
+
<a href="{{ item.link }}" target="_blank" id="{{item.icon}}"><i class="fas fa-{{item.icon}}" aria-hidden="true"></i></a>
|
7
|
+
{% endif %}
|
8
|
+
{% endfor %}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
title: Archive
|
4
|
+
---
|
5
|
+
|
6
|
+
{% assign postsByDate =
|
7
|
+
site.posts | group_by_exp:"post", "post.date | date: '%B %Y'" %}
|
8
|
+
{% for year in postsByDate %}
|
9
|
+
<h2 class = "archive-date" id = "date-{{post.date | date: "%B %Y"}}">{{ year.name }}</h1>
|
10
|
+
<ul>
|
11
|
+
{% for post in year.items %}
|
12
|
+
<li><a class = "archive-link" href="{{ post.url }}">{{ post.title }}</a></li>
|
13
|
+
{% endfor %}
|
14
|
+
</ul>
|
15
|
+
{% endfor %}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
title: Contact
|
4
|
+
---
|
5
|
+
|
6
|
+
<h2>Contact Form</h2>
|
7
|
+
<div class = "form">
|
8
|
+
<form name = "contact-form" action="#" method = "POST" data-netlify="true">
|
9
|
+
<input class = "form-input" type="text" name="name" id="name" placeholder="Name" required><br>
|
10
|
+
|
11
|
+
<input class = "form-input"type="mail" name="mail" id="mail" placeholder="Email" required><br>
|
12
|
+
|
13
|
+
<textarea class = "form-input" name="message" id="message" cols="30" rows="10" placeholder="Message" required></textarea><br>
|
14
|
+
|
15
|
+
<input class = "form-button" type="submit" value="Submit"><br>
|
16
|
+
</form>
|
17
|
+
</div>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
{% include head.html %}
|
5
|
+
</head>
|
6
|
+
<body>
|
7
|
+
|
8
|
+
<div class="container">
|
9
|
+
{% include header.html %}
|
10
|
+
|
11
|
+
<div class="post-container">
|
12
|
+
{{ content }}
|
13
|
+
</div>
|
14
|
+
</div>
|
15
|
+
|
16
|
+
{%- include footer.html -%}
|
17
|
+
|
18
|
+
</body>
|
19
|
+
</html>
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
title: Home
|
4
|
+
---
|
5
|
+
{% for post in paginator.posts %}
|
6
|
+
|
7
|
+
<div class="post">
|
8
|
+
<h2><a href="{% if site.baseurl == "/" %}{{ post.url }}{% else %}{{ post.url | prepend: site.baseurl }}{% endif %}">{{ post.title }}</a></h2>
|
9
|
+
|
10
|
+
<div class = "post-info">
|
11
|
+
<span>
|
12
|
+
<i class="far fa-calendar" aria-hidden="true"></i> <time datetime="{{ post.date | date_to_xmlschema }}" class="by-line">{{ post.date | date_to_string }}</time> - <i class="far fa-clock"></i> {% include reading_time.html %}
|
13
|
+
</span>
|
14
|
+
</div>
|
15
|
+
|
16
|
+
{% if post.image %}
|
17
|
+
<div class = "featured-img-container">
|
18
|
+
<a href="{% if site.baseurl == "/" %}{{ post.url }}{% else %}{{ post.url | prepend: site.baseurl }}{% endif %}"><img src="{{ post.image }}"/></a>
|
19
|
+
</div>
|
20
|
+
{% endif %}
|
21
|
+
|
22
|
+
<p>
|
23
|
+
{% if post.customexcerpt %}
|
24
|
+
{{post.customexcerpt | strip_html | truncatewords:50}}
|
25
|
+
{% else %}
|
26
|
+
{{ post.content | strip_html | truncatewords:50 }}
|
27
|
+
{% endif %}
|
28
|
+
<span class = "continue-reading"><a href="{% if site.baseurl == "/" %}{{ post.url }}{% else %}{{ post.url | prepend: site.baseurl }}{% endif %}">Continue reading...</a></span>
|
29
|
+
</p>
|
30
|
+
</div>
|
31
|
+
{% endfor %}
|
32
|
+
|
33
|
+
<!-- Pagination links -->
|
34
|
+
<div class = "paginator">
|
35
|
+
{% if paginator.total_pages > 1 %}
|
36
|
+
{% if paginator.next_page %}
|
37
|
+
<a class = "older paginate-button" href="{{ paginator.next_page_path | prepend: site.baseurl }}">Older Posts</a>
|
38
|
+
{% endif %}
|
39
|
+
{% if paginator.previous_page %}
|
40
|
+
<a class = "newer paginate-button" href="{{ paginator.previous_page_path | prepend: site.baseurl }}">Newer Posts</a>
|
41
|
+
{% endif %}
|
42
|
+
{% endif %}
|
43
|
+
</div>
|
data/_layouts/page.html
ADDED
data/_layouts/post.html
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
{% include head.html %}
|
5
|
+
</head>
|
6
|
+
|
7
|
+
<body>
|
8
|
+
|
9
|
+
<div class="container">
|
10
|
+
{% include header.html %}
|
11
|
+
|
12
|
+
<div class="post-container">
|
13
|
+
<article id = "post">
|
14
|
+
<h2 id = "post-title">{{ page.title }}</h2>
|
15
|
+
|
16
|
+
{% if site.data.settings.date-under-post.active %}
|
17
|
+
<div class = "post-info">
|
18
|
+
<span>
|
19
|
+
<i class="far fa-calendar" aria-hidden="true"></i> <span>{{ page.date | date_to_string }}</span> - <i class="far fa-clock"></i> {% include reading_time.html %}
|
20
|
+
</span>
|
21
|
+
</div>
|
22
|
+
{% endif %}
|
23
|
+
{{ content }}
|
24
|
+
</article>
|
25
|
+
</div>
|
26
|
+
{% if site.data.settings.categories.active %}
|
27
|
+
{% include categories.html %}
|
28
|
+
{% endif %}
|
29
|
+
|
30
|
+
{% if site.data.settings.related-posts.active %}
|
31
|
+
{% include related-posts.html %}
|
32
|
+
{% endif %}
|
33
|
+
|
34
|
+
{% if site.data.settings.disqus.disqus_shortname %}
|
35
|
+
{% include disqus.html %}
|
36
|
+
{% endif %}
|
37
|
+
</div>
|
38
|
+
|
39
|
+
{%- include footer.html -%}
|
40
|
+
|
41
|
+
{% if site.data.settings.mathjax.active %}
|
42
|
+
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
|
43
|
+
{% endif %}
|
44
|
+
</body>
|
45
|
+
</html>
|
data/_sass/archive.scss
ADDED
data/_sass/base.scss
ADDED
@@ -0,0 +1,126 @@
|
|
1
|
+
//Colors
|
2
|
+
$base: #a2a2a2;
|
3
|
+
$light-grey: #ebebeb;
|
4
|
+
|
5
|
+
* {
|
6
|
+
-webkit-box-sizing: border-box;
|
7
|
+
-moz-box-sizing: border-box;
|
8
|
+
box-sizing: border-box;
|
9
|
+
}
|
10
|
+
html{
|
11
|
+
scroll-behavior: smooth;
|
12
|
+
}
|
13
|
+
.container {
|
14
|
+
margin-left: auto;
|
15
|
+
margin-right: auto;
|
16
|
+
width: 700px;
|
17
|
+
}
|
18
|
+
|
19
|
+
.task-list{
|
20
|
+
list-style: none;
|
21
|
+
}
|
22
|
+
|
23
|
+
//Disqus
|
24
|
+
#load-comments{
|
25
|
+
border: 1px solid #e0e0e0;
|
26
|
+
border-radius: 3px;
|
27
|
+
padding: 15px 35px;
|
28
|
+
margin-left: auto;
|
29
|
+
margin-right: auto;
|
30
|
+
overflow: hidden;
|
31
|
+
text-align: center;
|
32
|
+
max-width: fit-content;
|
33
|
+
//Make text not selectable
|
34
|
+
-webkit-user-select: none;
|
35
|
+
-moz-user-select: none;
|
36
|
+
-ms-user-select: none;
|
37
|
+
user-select: none;
|
38
|
+
color: $base;
|
39
|
+
}
|
40
|
+
|
41
|
+
#load-comments:hover{
|
42
|
+
cursor: pointer;
|
43
|
+
color: black;
|
44
|
+
background-color: $light-grey;
|
45
|
+
}
|
46
|
+
//End Disqus
|
47
|
+
|
48
|
+
//Alerts
|
49
|
+
.alert{
|
50
|
+
padding: 20px;
|
51
|
+
border-radius: 0 4px 4px 0;
|
52
|
+
color: #fff;
|
53
|
+
display: block;
|
54
|
+
font-size: larger;
|
55
|
+
font-family: 'Montserrat', sans-serif;
|
56
|
+
}
|
57
|
+
|
58
|
+
.y{
|
59
|
+
background-color: #f3b244;
|
60
|
+
border-left: 7px solid #dc900e;
|
61
|
+
}
|
62
|
+
|
63
|
+
.g{
|
64
|
+
background-color: #60c17d;
|
65
|
+
border-left: 7px solid #55ab6f;
|
66
|
+
}
|
67
|
+
|
68
|
+
.r{
|
69
|
+
background-color: #e45454;
|
70
|
+
border-left: 7px solid #cb2020;
|
71
|
+
}
|
72
|
+
//End Alerts
|
73
|
+
|
74
|
+
//Blockquote
|
75
|
+
blockquote {
|
76
|
+
border-left: .25em solid #dfe2e5;
|
77
|
+
color: #6a737d;
|
78
|
+
padding: 0 1em;
|
79
|
+
cite{
|
80
|
+
display: inline-block;
|
81
|
+
margin-top: 50px;
|
82
|
+
cite::before{
|
83
|
+
content: "- ";
|
84
|
+
margin-left: 10px;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
//End Blockquote
|
89
|
+
|
90
|
+
//MathJAX
|
91
|
+
.MathJax_Display{
|
92
|
+
.MathJax {
|
93
|
+
font-size: 1.2rem;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
//ToC
|
98
|
+
#markdown-toc::before {
|
99
|
+
content: "Contents";
|
100
|
+
font-size: 1.1rem;
|
101
|
+
font-family: 'Montserrat', sans-serif;
|
102
|
+
font-weight: bold;
|
103
|
+
}
|
104
|
+
|
105
|
+
#markdown-toc ul {
|
106
|
+
list-style: disc;
|
107
|
+
}
|
108
|
+
|
109
|
+
#markdown-toc {
|
110
|
+
border: 1px solid #aaa;
|
111
|
+
border-radius: 10px;
|
112
|
+
padding: 1.5em;
|
113
|
+
list-style: disc;
|
114
|
+
display: inline-block;
|
115
|
+
background-color: $light-grey;
|
116
|
+
line-height: 25px;
|
117
|
+
li{
|
118
|
+
a{
|
119
|
+
font-family: 'PT Serif', serif;
|
120
|
+
text-decoration: none;
|
121
|
+
}
|
122
|
+
a:hover{
|
123
|
+
font-style: italic;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
}
|
data/_sass/contact.scss
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
.form-input{
|
2
|
+
font-family: 'PT Serif', serif;
|
3
|
+
font-size: 1rem;
|
4
|
+
|
5
|
+
width: 100%;
|
6
|
+
padding: 10px 0;
|
7
|
+
background: none;
|
8
|
+
border: none;
|
9
|
+
border-bottom: 1px solid #666;
|
10
|
+
color: #ddd;
|
11
|
+
font-size: 14px;
|
12
|
+
text-transform: uppercase;
|
13
|
+
outline: none;
|
14
|
+
transition: border-color .2s;
|
15
|
+
margin-top: 15px;
|
16
|
+
}
|
17
|
+
|
18
|
+
.form-input::placeholder{
|
19
|
+
color: #666;
|
20
|
+
}
|
21
|
+
|
22
|
+
.form-input:focus{
|
23
|
+
color: #ddd;
|
24
|
+
}
|
25
|
+
|
26
|
+
.form-button {
|
27
|
+
background: none;
|
28
|
+
text-transform: uppercase;
|
29
|
+
font-size: 1rem;
|
30
|
+
cursor: pointer;
|
31
|
+
outline: none;
|
32
|
+
margin-top: 10px;
|
33
|
+
border: black 1px solid;
|
34
|
+
padding: 10px;
|
35
|
+
border-radius: 10px;
|
36
|
+
font-family: 'PT Serif', serif;
|
37
|
+
}
|
38
|
+
.form-button:hover{
|
39
|
+
background-color: $light-grey;
|
40
|
+
}
|
41
|
+
.success{
|
42
|
+
a{
|
43
|
+
text-decoration:none;
|
44
|
+
border-bottom: 2px solid $light-grey;
|
45
|
+
box-shadow: inset 0 -4px 0 $light-grey;
|
46
|
+
color: inherit;
|
47
|
+
transition: background 0.1s cubic-bezier(.33,.66,.66,1);
|
48
|
+
}
|
49
|
+
}
|
data/_sass/footer.scss
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
.footer{
|
2
|
+
p{
|
3
|
+
text-align: center;
|
4
|
+
font-size: 0.85rem;
|
5
|
+
}
|
6
|
+
a{
|
7
|
+
text-decoration: none;
|
8
|
+
}
|
9
|
+
a:hover{
|
10
|
+
text-decoration: underline;
|
11
|
+
}
|
12
|
+
a:visited{
|
13
|
+
color: $base;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
.footer::before{
|
18
|
+
display: block;
|
19
|
+
content: '';
|
20
|
+
width: 5rem;
|
21
|
+
height: 1px;
|
22
|
+
margin: 23px auto;
|
23
|
+
background-color: #d5d5d5;
|
24
|
+
}
|