jekyll-theme-ink 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +52 -0
- data/_includes/back-to-top.html +37 -0
- data/_includes/footer.html +28 -0
- data/_includes/friends.html +10 -0
- data/_includes/google-analytics.html +11 -0
- data/_includes/head.html +11 -0
- data/_includes/header.html +39 -0
- data/_includes/mathjax.html +10 -0
- data/_includes/social.html +14 -0
- data/_includes/timeline.html +16 -0
- data/_layouts/archive.html +15 -0
- data/_layouts/category.html +15 -0
- data/_layouts/default.html +21 -0
- data/_layouts/home.html +40 -0
- data/_layouts/page.html +15 -0
- data/_layouts/post.html +33 -0
- data/_sass/ink.scss +53 -0
- data/_sass/ink/_base.scss +265 -0
- data/_sass/ink/_layout.scss +399 -0
- data/_sass/ink/_syntax-highlight.scss +75 -0
- data/assets/main.scss +5 -0
- data/assets/social-icons.svg +33 -0
- metadata +109 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a244f555af637bbb66de0f8a7f73b72901d339656f98eb93bd736f0c307dc700
|
4
|
+
data.tar.gz: 9d0347c5d08b003671943f9dbed3c66e94ee8d648b5c2950e294bf12ca20e6f2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: '083fea0bd43c65bb1c2fcb2b21a1274d79f668470634614e19af5ff266582ceb17aeafba71b0de55faab1228d9bacbbfa9c877c52746e6eca185a7a97a53e0dc'
|
7
|
+
data.tar.gz: '00349052d542bdba26827184485573f417983410296fd777523b6fdd0102d3d63fdd1e5d0534b597e07b2a5a3c385d6e0e1433f4ee272fb226f7fc0692818b90'
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 keming
|
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,52 @@
|
|
1
|
+
# jekyll-theme-ink
|
2
|
+
|
3
|
+
Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
|
4
|
+
|
5
|
+
To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
|
6
|
+
|
7
|
+
TODO: Delete this and the text above, and describe your gem
|
8
|
+
|
9
|
+
|
10
|
+
## Installation
|
11
|
+
|
12
|
+
Add this line to your Jekyll site's `Gemfile`:
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
gem "jekyll-theme-ink"
|
16
|
+
```
|
17
|
+
|
18
|
+
And add this line to your Jekyll site's `_config.yml`:
|
19
|
+
|
20
|
+
```yaml
|
21
|
+
theme: jekyll-theme-ink
|
22
|
+
```
|
23
|
+
|
24
|
+
And then execute:
|
25
|
+
|
26
|
+
$ bundle
|
27
|
+
|
28
|
+
Or install it yourself as:
|
29
|
+
|
30
|
+
$ gem install jekyll-theme-ink
|
31
|
+
|
32
|
+
## Usage
|
33
|
+
|
34
|
+
TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
|
35
|
+
|
36
|
+
## Contributing
|
37
|
+
|
38
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. 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.
|
39
|
+
|
40
|
+
## Development
|
41
|
+
|
42
|
+
To set up your environment to develop this theme, run `bundle install`.
|
43
|
+
|
44
|
+
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.
|
45
|
+
|
46
|
+
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
47
|
+
To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-ink.gemspec` accordingly.
|
48
|
+
|
49
|
+
## License
|
50
|
+
|
51
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
52
|
+
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<div class="">
|
2
|
+
<a href="#" id="back-to-top">
|
3
|
+
➤
|
4
|
+
</a>
|
5
|
+
</div>
|
6
|
+
|
7
|
+
<script type="text/javascript">
|
8
|
+
function scrollToTop() {
|
9
|
+
let cosParameter = window.scrollY / 2,
|
10
|
+
scrollCount = 0,
|
11
|
+
scrollDuration = 500,
|
12
|
+
oldTimestamp = performance.now();
|
13
|
+
function step(newTimestamp) {
|
14
|
+
scrollCount += Math.PI / (scrollDuration / newTimestamp - oldTimestamp);
|
15
|
+
if (scrollCount >= Math.PI) window.scrollTo(0, 0);
|
16
|
+
if (window.scrollY === 0) return;
|
17
|
+
window.scrollTo(0, Math.round(cosParameter + cosParameter * Math.cos(scrollCount)));
|
18
|
+
oldTimestamp = newTimestamp;
|
19
|
+
window.requestAnimationFrame(step);
|
20
|
+
console.log('step...');
|
21
|
+
}
|
22
|
+
window.requestAnimationFrame(step);
|
23
|
+
document.getElementById('back-to-top').style.display = 'none';
|
24
|
+
}
|
25
|
+
|
26
|
+
document.getElementById('back-to-top').click(scrollToTop);
|
27
|
+
|
28
|
+
document.onscroll = function() {
|
29
|
+
if (window.scrollY >= 500) {
|
30
|
+
document.getElementById('back-to-top').style.display = 'block';
|
31
|
+
} else {
|
32
|
+
document.getElementById('back-to-top').style.display = 'none';
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
|
37
|
+
</script>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<footer class="site-footer">
|
2
|
+
<div class="wrapper">
|
3
|
+
<div class="footer-col footer-col-1">
|
4
|
+
<ul class="contact-list">
|
5
|
+
<li class="p-name">
|
6
|
+
{%- if site.author -%}
|
7
|
+
{{ site.author | escape }}
|
8
|
+
{%- else -%}
|
9
|
+
{{ site.title | escape }}
|
10
|
+
{%- endif -%}
|
11
|
+
</li>
|
12
|
+
<li>
|
13
|
+
<a href="mailto:{{ site.email }}">
|
14
|
+
{{ site.email }}
|
15
|
+
</a>
|
16
|
+
</li>
|
17
|
+
</ul>
|
18
|
+
</div>
|
19
|
+
|
20
|
+
<div class="footer-col footer-col-2">
|
21
|
+
{%- include social.html -%}
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<div class="footer-col footer-col-3">
|
25
|
+
<p>{{- site.description | escape -}}</p>
|
26
|
+
</div>
|
27
|
+
</div>
|
28
|
+
</footer>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<script>
|
2
|
+
if(!(window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1")) {
|
3
|
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
4
|
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
5
|
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
6
|
+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
7
|
+
|
8
|
+
ga('create', '{{ site.google_analytics }}', 'auto');
|
9
|
+
ga('send', 'pageview');
|
10
|
+
}
|
11
|
+
</script>
|
data/_includes/head.html
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
<head>
|
2
|
+
<meta charset="UTF-8">
|
3
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
4
|
+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
5
|
+
{%- seo -%}
|
6
|
+
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
|
7
|
+
{%- feed_meta -%}
|
8
|
+
{%- if jekyll.environment == 'production' and site.google_analytics -%}
|
9
|
+
{%- include google-analytics.html -%}
|
10
|
+
{%- endif -%}
|
11
|
+
</head>
|
@@ -0,0 +1,39 @@
|
|
1
|
+
<header class="site-header" role="banner">
|
2
|
+
<div class="wrapper">
|
3
|
+
{%- assign default_paths = site.pages | map: "path" -%}
|
4
|
+
{%- assign page_paths = site.header_pages | default: default_paths -%}
|
5
|
+
<a href="{{ "/" | relative_url }}" class="site-title" rel="author">
|
6
|
+
{%- if site.favicon.enable -%}
|
7
|
+
<span><img src="{{ site.favicon.name | relative_url}}" alt="favicon"></span>
|
8
|
+
{%- endif -%}
|
9
|
+
{{ site.title | escape }}
|
10
|
+
</a>
|
11
|
+
|
12
|
+
{%- if page_paths -%}
|
13
|
+
<nav class="site-nav">
|
14
|
+
<input type="checkbox" id="nav-trigger" class="nav-trigger">
|
15
|
+
<label for="nav-trigger">
|
16
|
+
<span class="menu-icon">
|
17
|
+
<svg viewBox="0 0 18 15" width="18px" height="15px">
|
18
|
+
<path d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"/>
|
19
|
+
</svg>
|
20
|
+
</span>
|
21
|
+
</label>
|
22
|
+
|
23
|
+
<div class="trigger">
|
24
|
+
{%- for path in page_paths -%}
|
25
|
+
{%- assign cur_page = site.pages | where: "path", path | first -%}
|
26
|
+
{%- if cur_page.title and cur_page.title != '404' -%}
|
27
|
+
{%- unless cur_page.path contains '/' -%}
|
28
|
+
<a href="{{ cur_page.url | relative_url }}" class="page-link">
|
29
|
+
{{ cur_page.title | escape}}
|
30
|
+
</a>
|
31
|
+
{%- endunless -%}
|
32
|
+
<!-- {{ cur_page.path }} -->
|
33
|
+
{%- endif -%}
|
34
|
+
{%- endfor -%}
|
35
|
+
</div>
|
36
|
+
</nav>
|
37
|
+
{%- endif -%}
|
38
|
+
</div>
|
39
|
+
</header>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<script type="text/x-mathjax-config">
|
2
|
+
MathJax.Hub.Config({
|
3
|
+
tex2jax: {
|
4
|
+
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
|
5
|
+
processEscapes: true,
|
6
|
+
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
|
7
|
+
}
|
8
|
+
});
|
9
|
+
</script>
|
10
|
+
<script src="{{ site.mathjax.cdn }}"></script>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<ul class="social-media-list">
|
2
|
+
{%- if site.dribbble_username -%}<li><a href="https://dribbble.com/{{ site.dribbble_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/social-icons.svg#dribbble' | relative_url }}"></use></svg> <span class="username">{{ site.dribbble_username| escape }}</span></a></li>{%- endif -%}
|
3
|
+
{%- if site.facebook_username -%}<li><a href="https://www.facebook.com/{{ site.facebook_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/social-icons.svg#facebook' | relative_url }}"></use></svg> <span class="username">{{ site.facebook_username| escape }}</span></a></li>{%- endif -%}
|
4
|
+
{%- if site.flickr_username -%}<li><a href="https://www.flickr.com/photos/{{ site.flickr_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/social-icons.svg#flickr' | relative_url }}"></use></svg> <span class="username">{{ site.flickr_username| escape }}</span></a></li>{%- endif -%}
|
5
|
+
{%- if site.github_username -%}<li><a href="https://github.com/{{ site.github_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/social-icons.svg#github' | relative_url }}"></use></svg> <span class="username">{{ site.github_username| escape }}</span></a></li>{%- endif -%}
|
6
|
+
{%- if site.instagram_username -%}<li><a href="https://instagram.com/{{ site.instagram_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/social-icons.svg#instagram' | relative_url }}"></use></svg> <span class="username">{{ site.instagram_username| escape }}</span></a></li>{%- endif -%}
|
7
|
+
{%- if site.linkedin_username -%}<li><a href="https://www.linkedin.com/in/{{ site.linkedin_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/social-icons.svg#linkedin' | relative_url }}"></use></svg> <span class="username">{{ site.linkedin_username| escape }}</span></a></li>{%- endif -%}
|
8
|
+
{%- if site.pinterest_username -%}<li><a href="https://www.pinterest.com/{{ site.pinterest_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/social-icons.svg#pinterest' | relative_url }}"></use></svg> <span class="username">{{ site.pinterest_username| escape }}</span></a></li>{%- endif -%}
|
9
|
+
{%- for mst in site.mastodon -%}{%- if mst.username and mst.instance -%}<li><a href="https://{{ mst.instance| cgi_escape | escape}}/@{{mst.username}}"><svg class="svg-icon"><use xlink:href="{{ '/assets/social-icons.svg#mastodon' | relative_url }}"></use></svg> <span class="username">{{ mst.username|escape }}</span></a></li>{%- endif -%}{%- endfor -%}
|
10
|
+
{%- if site.twitter_username -%}<li><a href="https://www.twitter.com/{{ site.twitter_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/social-icons.svg#twitter' | relative_url }}"></use></svg> <span class="username">{{ site.twitter_username| escape }}</span></a></li>{%- endif -%}
|
11
|
+
{%- if site.youtube_username -%}<li><a href="https://youtube.com/{{ site.youtube_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/social-icons.svg#youtube' | relative_url }}"></use></svg> <span class="username">{{ site.youtube_username| escape }}</span></a></li>{%- endif -%}
|
12
|
+
{%- if site.googleplus_username -%}<li><a href="https://plus.google.com/{{ site.googleplus_username| escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/social-icons.svg#googleplus' | relative_url }}"></use></svg> <span class="username">{{ site.googleplus_username| escape }}</span></a></li>{%- endif -%}
|
13
|
+
{%- if site.rss -%}<li><a href="{{ 'feed.xml' | relative_url }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/social-icons.svg#rss' | relative_url }}"></use></svg> <span>{{ site.rss | escape }}</span></a></li>{%- endif -%}
|
14
|
+
</ul>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<div class="timeline">
|
2
|
+
<div class="date-meta">
|
3
|
+
{%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
|
4
|
+
{{ post.date | date: date_format }}
|
5
|
+
</div>
|
6
|
+
<div class="post-card">
|
7
|
+
<div class="post-title">
|
8
|
+
{{ post.title | escape }}
|
9
|
+
</div>
|
10
|
+
{%- if site.excerpts.enable -%}
|
11
|
+
<div class="post-excerpt">
|
12
|
+
{{ post.excerpt | remove: '<p>' | remove: '</p>' | truncate: site.excerpts.length }}
|
13
|
+
</div>
|
14
|
+
{%- endif -%}
|
15
|
+
</div>
|
16
|
+
</div>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<h1>Archive of posts from {{ page.date | date: "%Y" }}</h1>
|
6
|
+
|
7
|
+
<ul class="posts">
|
8
|
+
{% for post in page.posts %}
|
9
|
+
<li>
|
10
|
+
<span class="post-date">{{ post.date | date: "%b %-d, %Y" }}</span>
|
11
|
+
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
|
12
|
+
</li>
|
13
|
+
{% endfor %}
|
14
|
+
</ul>
|
15
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<h1>Archive of posts with {{ page.type }} '{{ page.title }}'</h1>
|
6
|
+
<ul class="posts">
|
7
|
+
{% for post in page.posts %}
|
8
|
+
<li>
|
9
|
+
<span class="post-date">{{ post.date | date: "%b %-d, %Y" }}</span>
|
10
|
+
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
|
11
|
+
</li>
|
12
|
+
{% endfor %}
|
13
|
+
</ul>
|
14
|
+
|
15
|
+
{{ content }}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
|
3
|
+
{%- include head.html -%}
|
4
|
+
<body>
|
5
|
+
{%- include header.html -%}
|
6
|
+
|
7
|
+
<main class="page-content" aria-label="Content">
|
8
|
+
<div class="wrapper">
|
9
|
+
{{ content }}
|
10
|
+
</div>
|
11
|
+
</main>
|
12
|
+
|
13
|
+
{%- include back-to-top.html -%}
|
14
|
+
|
15
|
+
{%- include footer.html -%}
|
16
|
+
|
17
|
+
{% if site.mathjax.enable %}
|
18
|
+
{%- include mathjax.html -%}
|
19
|
+
{% endif %}
|
20
|
+
</body>
|
21
|
+
</html>
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<div class="home">
|
6
|
+
{%- if page.title -%}
|
7
|
+
<h1 class="page-title">{{ page.title }}</h1>
|
8
|
+
{%- endif -%}
|
9
|
+
|
10
|
+
{{ content }}
|
11
|
+
|
12
|
+
{% if site.posts.size > 0 %}
|
13
|
+
<h2 class="post-list-title">
|
14
|
+
{{ page.list_title | default: "Posts" }}
|
15
|
+
</h2>
|
16
|
+
<div class="post-list timeline-wrapper">
|
17
|
+
{%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
|
18
|
+
{% for post in site.posts %}
|
19
|
+
<div class="timeline">
|
20
|
+
<div class="timeline-date">
|
21
|
+
<!-- <span class="post-meta">{{ post.date | date: date_format }}</span> -->
|
22
|
+
{{ post.date | date: date_format }}
|
23
|
+
</div>
|
24
|
+
<div class="timeline-container">
|
25
|
+
<div class="timeline-content">
|
26
|
+
<h3>
|
27
|
+
<a href="{{ post.url | relative_url }}" class="post-link">
|
28
|
+
{{ post.title | escape }}
|
29
|
+
</a>
|
30
|
+
</h3>
|
31
|
+
{% if site.excerpts.enable %}
|
32
|
+
{{ post.excerpt | remove: '<p>' | remove: '</p>' | truncate: site.excerpts.length }}
|
33
|
+
{% endif %}
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
{% endfor %}
|
38
|
+
</div>
|
39
|
+
{% endif %}
|
40
|
+
</div>
|
data/_layouts/page.html
ADDED
data/_layouts/post.html
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<article class="post" itemscope itemtype="https://schema.org/BlogPosting">
|
6
|
+
|
7
|
+
<header class="post-header">
|
8
|
+
<h1 class="post-title" itemprop="name headline">
|
9
|
+
{{ page.title | escape }}
|
10
|
+
</h1>
|
11
|
+
<p class="post-meta">
|
12
|
+
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
|
13
|
+
{%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
|
14
|
+
{{ page.date | date: date_format }}
|
15
|
+
</time>
|
16
|
+
{%- if page.author -%}
|
17
|
+
•
|
18
|
+
<span itemprop="author" itemscope itemtype="https://schema.org/Person">
|
19
|
+
<span class="author" itemprop="name">{{ page.author }}</span>
|
20
|
+
</span>
|
21
|
+
{%- endif -%}
|
22
|
+
{%- for cate in page.categories -%}
|
23
|
+
<a href="/category/{{ cate }}" class="post-category">
|
24
|
+
{{ cate | escape }}
|
25
|
+
</a>
|
26
|
+
{%- endfor -%}
|
27
|
+
</p>
|
28
|
+
</header>
|
29
|
+
|
30
|
+
<div class="post-content" itemprop="articleBody">
|
31
|
+
{{ content }}
|
32
|
+
</div>
|
33
|
+
</article>
|
data/_sass/ink.scss
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
@charset "utf-8";
|
2
|
+
|
3
|
+
// Variable
|
4
|
+
|
5
|
+
$base-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default;
|
6
|
+
$base-font-size: 16px !default;
|
7
|
+
$base-font-weight: 400 !default;
|
8
|
+
$small-font-size: $base-font-size * 0.875 !default;
|
9
|
+
$base-line-height: 1.5 !default;
|
10
|
+
|
11
|
+
$spacing-unit: 30px !default;
|
12
|
+
|
13
|
+
$text-color: #111 !default;
|
14
|
+
$background-color: #fff !default;
|
15
|
+
$brand-color: #2a7ae2 !default;
|
16
|
+
$code-background-color: #fefefe !default;
|
17
|
+
$before-header-color: #e8e8e8 !default;
|
18
|
+
|
19
|
+
$grey-color: #828282 !default;
|
20
|
+
$grey-color-light: lighten($grey-color, 40%) !default;
|
21
|
+
$grey-color-dark: darken($grey-color, 25%) !default;
|
22
|
+
|
23
|
+
$table-text-align: left !default;
|
24
|
+
|
25
|
+
// Width of the content area
|
26
|
+
$content-width: 1080px !default;
|
27
|
+
|
28
|
+
$on-palm: 600px !default;
|
29
|
+
$on-laptop: 800px !default;
|
30
|
+
|
31
|
+
// Use media queries like this:
|
32
|
+
// @include media-query($on-palm) {
|
33
|
+
// .wrapper {
|
34
|
+
// padding-right: $spacing-unit / 2;
|
35
|
+
// padding-left: $spacing-unit / 2;
|
36
|
+
// }
|
37
|
+
// }
|
38
|
+
@mixin media-query($device) {
|
39
|
+
@media screen and (max-width: $device) {
|
40
|
+
@content;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
@mixin relative-font-size($ratio) {
|
45
|
+
font-size: $base-font-size * $ratio;
|
46
|
+
}
|
47
|
+
|
48
|
+
// import partials
|
49
|
+
@import
|
50
|
+
"ink/base",
|
51
|
+
"ink/layout",
|
52
|
+
"ink/syntax-highlight"
|
53
|
+
;
|