moonwalk 0.0.1
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 +137 -0
- data/_config.yml +32 -0
- data/_includes/card_list.html +26 -0
- data/_includes/goat_counter.html +6 -0
- data/_includes/head.html +20 -0
- data/_includes/horizontal_list.html +10 -0
- data/_includes/post_list.html +9 -0
- data/_includes/toggle_theme_button.html +10 -0
- data/_includes/toggle_theme_js.html +27 -0
- data/_includes/vertical_list.html +19 -0
- data/_layouts/blog.html +10 -0
- data/_layouts/default.html +17 -0
- data/_layouts/home.html +42 -0
- data/_layouts/post.html +7 -0
- data/_sass/list.scss +56 -0
- data/_sass/moonwalk.scss +132 -0
- data/assets/css/main.scss +5 -0
- metadata +103 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b824a918995982654ff750310424a3f6e24fe8de33abd654107124c28214b38e
|
4
|
+
data.tar.gz: 853a3bdae09be4088f51e0d000989c81e203de813d99e80d72cb4402ef94302b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4b3d9b1772cb422833b78d6fbc88615fd0f6da36fbcd229c07b75069dea80ab89978e9d4a6432813a9bbacb2011481af45232074f6a224c72dc03edb9da2a2f5
|
7
|
+
data.tar.gz: 155f708cd9fb095dd9ac7e7296252fe12f9aa835d3c9c6cf65094c5f7dd778a4db4502115d1e29ce3b354e9b2750bcd0d3b6f61265028dcb8e606a1f511be987
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020 Abhinav Saxena
|
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,137 @@
|
|
1
|
+
# moonwalk
|
2
|
+
|
3
|
+
<img src="https://raw.githubusercontent.com/abhinavs/moonwalk/master/logo.png" width="32" align="left" />A fast and minimalistic blog with clean dark mode. Based on [no style please!](https://riggraz.dev/no-style-please/)
|
4
|
+
|
5
|
+
<h3 align="center"><a href="https://abhinavs.github.io/moonwalk/">Try the Demo</a></h3>
|
6
|
+
|
7
|
+
<img src="https://raw.githubusercontent.com/abhinavs/moonwalk/master/_screenshots/moonwalk.png" />
|
8
|
+
|
9
|
+
## Features
|
10
|
+
* Light & dark mode with theme switcher
|
11
|
+
* Vertical list, horizontal list, card list
|
12
|
+
* Landing page with navbar, footer, portfolio
|
13
|
+
* Fast (very minimal CSS) - for more information on performance see [Lighthouse report](https://raw.githubusercontent.com/abhinavs/moonwalk/master/_screenshots/lighthouse-report.png)
|
14
|
+
* Responsive and mobile friendly
|
15
|
+
* SEO optimized (uses [Jekyll SEO Tag](https://github.com/jekyll/jekyll-seo-tag))
|
16
|
+
* RSS feed (uses [Jekyll Feed](https://github.com/jekyll/jekyll-feed))
|
17
|
+
* Easy to extend
|
18
|
+
* Fully compatible with [GitHub Pages](https://pages.github.com/) (see [GitHub Pages installation](#github-pages-installation))
|
19
|
+
|
20
|
+
## Installation
|
21
|
+
|
22
|
+
If you haven't already created your blog using Jekyll, follow the [instructions](https://jekyllrb.com/docs/) to do so from Jekyll's documentation.
|
23
|
+
|
24
|
+
NOTE: if you are using Jekyll with GitHub Pages, see the [GitHub Pages installation section](#github-pages-installation).
|
25
|
+
|
26
|
+
Then, to style your blog with this theme, add this line to your Jekyll site's `Gemfile`:
|
27
|
+
|
28
|
+
```ruby
|
29
|
+
gem "moonwalk"
|
30
|
+
```
|
31
|
+
|
32
|
+
And add this line to your Jekyll site's `_config.yml`:
|
33
|
+
|
34
|
+
```yaml
|
35
|
+
theme: moonwalk
|
36
|
+
```
|
37
|
+
|
38
|
+
And then execute:
|
39
|
+
|
40
|
+
$ bundle
|
41
|
+
|
42
|
+
Or install it yourself as:
|
43
|
+
|
44
|
+
$ gem install moonwalk
|
45
|
+
|
46
|
+
### GitHub Pages installation
|
47
|
+
|
48
|
+
If you want to use this theme for your Jekyll's site deployed on [GitHub Pages](https://pages.github.com/), follow the instructions on [this page](https://docs.github.com/en/github/working-with-github-pages/adding-a-theme-to-your-github-pages-site-using-jekyll#adding-a-theme).
|
49
|
+
|
50
|
+
## Usage
|
51
|
+
|
52
|
+
You can edit `_config.yml` file to customize your blog. You can change things such as the name of the blog, the author, the appearance of the theme (light, dark or auto), how dates are formatted, etc. Customizable fields should be straightforward to understand. Still, `_config.yml` contains some comments to help you understand what each field does.
|
53
|
+
|
54
|
+
For further customization (e.g. layout, CSS) see the [official Jekyll's documentation](https://jekyllrb.com/docs/themes/#overriding-theme-defaults) on customizing gem-based themes.
|
55
|
+
|
56
|
+
### Customize the menu
|
57
|
+
|
58
|
+
In order to add/edit/delete entries in the home page, you can copy the `home.yml` file inside `_data` folder. Through that file you can define the structure of the menu and add data for navbar, footer, portfolio or simply remove all of that and use simple blog layout. Take a look at the default configuration to get an idea of how it works and read on for a more comprehensive explaination.
|
59
|
+
|
60
|
+
The `home.yml` file accepts the following fields:
|
61
|
+
|
62
|
+
1. Vertical list
|
63
|
+
- `entries` define a new unordered list that will contain menu entries
|
64
|
+
- each entry is marked by a `-` at the beginning of the line
|
65
|
+
- each entry has the following attributes:
|
66
|
+
- `title`, which defines the text to render for that menu entry
|
67
|
+
- `url`, which can either be a URL or `false`. If it is `false`, the entry will be rendered as plain text; otherwise the entry will be rendered as a link pointing to the specified URL. Note that the URL can either be relative or absolute.
|
68
|
+
- `post_list`, which can be `true` or `false`. If it is true, the entry will have all posts in the site as subentries. This is used to render your post list.
|
69
|
+
- `entries`, yes, you can have entries inside entries. In this way you can create nested sublists!
|
70
|
+
2. Card list - cards are used to showcase portfolio projects. Please see `project_entries` in `_data/home.yml` file
|
71
|
+
- each entry is marked by a `-` at the beginning of the line
|
72
|
+
- each entry has the following attributes:
|
73
|
+
- `title` defines the header of the card
|
74
|
+
- `desc` is the body of the card
|
75
|
+
- `url` is a relative or absolute link which this card can point to.
|
76
|
+
- `highlight` in case you want to highlight something, keep the text short though
|
77
|
+
3. Horizontal list - moonwalk uses horizontal lists to create navbar and footer. Please see `navbar_entries` and `footer_entries` in `data/home.yml` file
|
78
|
+
- each entry is marked by a `-` at the beginning of the line
|
79
|
+
- each entry has the following attributes:
|
80
|
+
- `title` defines the header of the card
|
81
|
+
- `url` is a relative or absolute link which this card can point to.
|
82
|
+
|
83
|
+
|
84
|
+
### Pro tips
|
85
|
+
1. Moonwalk has 3 in-built layouts:
|
86
|
+
- post - for content
|
87
|
+
- blog - for listing blog posts
|
88
|
+
- home - for landing page
|
89
|
+
you can change your `index.md` file to use either home or blog layout.
|
90
|
+
|
91
|
+
2. It is extremely easy to tweak the color scheme.
|
92
|
+
- for light mode, customize these css variables
|
93
|
+
```css
|
94
|
+
html {
|
95
|
+
--bg: #fff;
|
96
|
+
--bg-secondary: #f8f9fa;
|
97
|
+
--headings: #000;
|
98
|
+
--text: #333;
|
99
|
+
--links: blue;
|
100
|
+
--highlight: #ffecb2; // light yellow
|
101
|
+
}
|
102
|
+
```
|
103
|
+
- for dark mode customize these css variables
|
104
|
+
```css
|
105
|
+
@mixin dark-appearance {
|
106
|
+
html, body {
|
107
|
+
--bg: #1f242A;
|
108
|
+
--bg-secondary: #323945;
|
109
|
+
--headings: #3D9970;
|
110
|
+
--text: #adb5bd;
|
111
|
+
--links: #91a7ff;
|
112
|
+
--highlight: #ffd8a8;
|
113
|
+
--highlight: #ffd43b;
|
114
|
+
};
|
115
|
+
}
|
116
|
+
```
|
117
|
+
|
118
|
+
## Contributing
|
119
|
+
|
120
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/abhinavs/moonwalk.
|
121
|
+
|
122
|
+
## Development
|
123
|
+
|
124
|
+
To set up your environment to develop this theme, run `bundle install`.
|
125
|
+
|
126
|
+
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.
|
127
|
+
|
128
|
+
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
129
|
+
To add a custom directory to your theme-gem, please edit the regexp in `moonwalk.gemspec` accordingly.
|
130
|
+
|
131
|
+
## Acknowledgement
|
132
|
+
This theme's original base is [no style please!](https://github.com/riggraz/no-style-please) theme created by [Riccardo Graziosi](https://riggraz.dev/) - many thanks to him for creating a wonderful theme with nearly no css.
|
133
|
+
|
134
|
+
## License
|
135
|
+
|
136
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
137
|
+
|
data/_config.yml
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
title: Moonwalk
|
2
|
+
author: Abhinav Saxena
|
3
|
+
url: https://www.abhinav.co # root address of the site
|
4
|
+
description: > # description of the site (multiple lines allowed)
|
5
|
+
Moonwalk is a fast and elegant Jekyll theme with a clean dark mode. It comes with horizontal list (for navbar and footer), card list (for portfolio), and a generic vertical list. It is very easy to modify in case you want to build over it - please see _layouts/home.html to do that.
|
6
|
+
|
7
|
+
permalink: /:slug.html
|
8
|
+
|
9
|
+
favicon: "./logo.png" # relative path to site's favicon
|
10
|
+
# goat_counter: "yoursitename" # put your GoatCounter name if you want to use GoatCounter analytics
|
11
|
+
|
12
|
+
#theme: moonwalk # if you are using GitHub Pages, change it to remote_theme: abhinavs/moonwalk
|
13
|
+
remote_theme: abhinavs/moonwalk
|
14
|
+
|
15
|
+
theme_config:
|
16
|
+
appearance: "dark" # can be "light", "dark" or "auto"
|
17
|
+
back_home_text: "home.." # customize text for homepage link in post layout
|
18
|
+
date_format: "%Y-%m-%d" # customize how date is formatted
|
19
|
+
show_description: true # show blog description in home page
|
20
|
+
show_navbar: true # show horizontal navbar in home page
|
21
|
+
show_footer: true # show footer links in home page,add in _data/home.yml
|
22
|
+
show_projects: true # show projects as cards, add in _data/home.yml
|
23
|
+
show_old_projects: true # show old projects as cards, add in _data/home.yml
|
24
|
+
show_misc_list: true # show generic vertical list for misc details, add _data/home.yml
|
25
|
+
|
26
|
+
|
27
|
+
sass:
|
28
|
+
style: :compressed
|
29
|
+
|
30
|
+
plugins:
|
31
|
+
- jekyll-feed
|
32
|
+
- jekyll-seo-tag
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<ul class="horizontal-list">
|
2
|
+
{% for item in include.collection %}
|
3
|
+
|
4
|
+
<li class="card">
|
5
|
+
<a href="{{ item.url }}">
|
6
|
+
<span class="header">
|
7
|
+
{{ item.title }}
|
8
|
+
|
9
|
+
{% if item.highlight %}
|
10
|
+
<mark>{{ item.highlight }}</mark>
|
11
|
+
{% endif %}
|
12
|
+
|
13
|
+
</span>
|
14
|
+
|
15
|
+
<hr />
|
16
|
+
|
17
|
+
{% if item.desc != false %}
|
18
|
+
<p class="body">
|
19
|
+
{{ item.desc }}
|
20
|
+
</p>
|
21
|
+
{% endif %}
|
22
|
+
</a>
|
23
|
+
</li>
|
24
|
+
|
25
|
+
{% endfor %}
|
26
|
+
</ul>
|
data/_includes/head.html
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
<head>
|
2
|
+
<meta charset="utf-8" />
|
3
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
5
|
+
|
6
|
+
<title>
|
7
|
+
{% if page.title %}
|
8
|
+
{{ page.title }}
|
9
|
+
{% else %}
|
10
|
+
{{ site.title }}
|
11
|
+
{% endif %}
|
12
|
+
</title>
|
13
|
+
|
14
|
+
{% seo title=false %}
|
15
|
+
{% feed_meta %}
|
16
|
+
|
17
|
+
<link rel="shortcut icon" type="image/x-icon" href="/{{ site.favicon }}" />
|
18
|
+
<link rel="stylesheet" href="{{ site.url }}/assets/css/main.css" />
|
19
|
+
{% include toggle_theme_js.html %}
|
20
|
+
</head>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<button title="Toggle Theme" class="theme-toggle">
|
2
|
+
<svg viewBox="0 0 32 32" width="24" height="24" fill="currentcolor">
|
3
|
+
<circle cx="16" cy="16" r="14" fill="none" stroke="currentcolor" stroke-width="4"></circle>
|
4
|
+
<path d="
|
5
|
+
M 16 0
|
6
|
+
A 16 16 0 0 0 16 32
|
7
|
+
z">
|
8
|
+
</path>
|
9
|
+
</svg>
|
10
|
+
</button>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/turbolinks/5.2.0/turbolinks.js" defer></script>
|
2
|
+
<script type="text/javascript">
|
3
|
+
document.addEventListener('turbolinks:load', themeChange);
|
4
|
+
function themeChange(){
|
5
|
+
let button = document.querySelector('.theme-toggle');
|
6
|
+
|
7
|
+
button.addEventListener('click', function(e){
|
8
|
+
let currentTheme = document.documentElement.getAttribute('data-theme');
|
9
|
+
if(currentTheme === 'dark') {
|
10
|
+
transition();
|
11
|
+
document.documentElement.setAttribute('data-theme','light');
|
12
|
+
} else {
|
13
|
+
transition();
|
14
|
+
document.documentElement.setAttribute('data-theme', 'dark');
|
15
|
+
}
|
16
|
+
});
|
17
|
+
|
18
|
+
// Adds the 'transition' class to <html> for CSS fun
|
19
|
+
let transition = () =>{
|
20
|
+
document.documentElement.classList.add('transition');
|
21
|
+
window.setTimeout(()=>{
|
22
|
+
document.documentElement.classList.remove('transition');
|
23
|
+
}, 1000);
|
24
|
+
}
|
25
|
+
}
|
26
|
+
</script>
|
27
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<ul>
|
2
|
+
{% for item in include.collection %}
|
3
|
+
<li>
|
4
|
+
{% if item.url != false %}
|
5
|
+
<a href="{{ item.url }}">{{ item.title }}</a>
|
6
|
+
{% else %}
|
7
|
+
{{ item.title }}
|
8
|
+
{% endif %}
|
9
|
+
|
10
|
+
{% if item.post_list == true %}
|
11
|
+
{% include post_list.html %}
|
12
|
+
{% endif %}
|
13
|
+
|
14
|
+
{% if item.entries %}
|
15
|
+
{% include vertical_list.html collection=item.entries %}
|
16
|
+
{% endif %}
|
17
|
+
</li>
|
18
|
+
{% endfor %}
|
19
|
+
</ul>
|
data/_layouts/blog.html
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ page.lang | default: "en" }}" class="html" data-theme="{{ site.theme_config.appearance | default: "auto" }}">
|
3
|
+
{%- include head.html -%}
|
4
|
+
<body>
|
5
|
+
<main class="page-content" aria-label="Content">
|
6
|
+
<div class="w">
|
7
|
+
{{ content }}
|
8
|
+
{% include toggle_theme_button.html %}
|
9
|
+
</div>
|
10
|
+
</main>
|
11
|
+
|
12
|
+
{% if site.goat_counter and jekyll.environment == "production" %}
|
13
|
+
{% include goat_counter.html %}
|
14
|
+
{% endif %}
|
15
|
+
|
16
|
+
</body>
|
17
|
+
</html>
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<header>
|
6
|
+
{% if site.theme_config.show_navbar == true %}
|
7
|
+
{% include horizontal_list.html collection=site.data.home.navbar_entries %}
|
8
|
+
<div class="dashed" />
|
9
|
+
{% endif %}
|
10
|
+
|
11
|
+
<h1>{{ site.title }}</h1>
|
12
|
+
{% if site.theme_config.show_description == true %}
|
13
|
+
<p>{{ site.description }}</p>
|
14
|
+
{% endif %}
|
15
|
+
</header>
|
16
|
+
|
17
|
+
{% if site.theme_config.show_projects == true %}
|
18
|
+
<h2>Portfolio</h2>
|
19
|
+
{% include card_list.html collection=site.data.home.project_entries %}
|
20
|
+
{% endif %}
|
21
|
+
|
22
|
+
{% if site.theme_config.show_misc_list == true %}
|
23
|
+
<h2>Details</h2>
|
24
|
+
{% include vertical_list.html collection=site.data.home.misc_entries %}
|
25
|
+
{% endif %}
|
26
|
+
|
27
|
+
|
28
|
+
<h2>Blog</h2>
|
29
|
+
{% include post_list.html %}
|
30
|
+
|
31
|
+
{% if site.theme_config.show_old_projects == true %}
|
32
|
+
<h2>Old Projects</h2>
|
33
|
+
{% include card_list.html collection=site.data.home.old_project_entries %}
|
34
|
+
{% endif %}
|
35
|
+
|
36
|
+
|
37
|
+
{% if site.theme_config.show_footer == true %}
|
38
|
+
<footer>
|
39
|
+
<div class="dashed" />
|
40
|
+
{% include horizontal_list.html collection=site.data.home.footer_entries %}
|
41
|
+
</footer>
|
42
|
+
{% endif %}
|
data/_layouts/post.html
ADDED
data/_sass/list.scss
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
ul.horizontal-list {
|
2
|
+
display: flex;
|
3
|
+
//justify-content: space-between;
|
4
|
+
margin-top: 0em;
|
5
|
+
margin-left: -40px;
|
6
|
+
flex-wrap: wrap;
|
7
|
+
|
8
|
+
li {
|
9
|
+
display:inline;
|
10
|
+
margin-right: 1em;
|
11
|
+
}
|
12
|
+
|
13
|
+
li a {
|
14
|
+
text-decoration: none;
|
15
|
+
font-weight: normal
|
16
|
+
}
|
17
|
+
|
18
|
+
}
|
19
|
+
|
20
|
+
.card {
|
21
|
+
padding: 1em;
|
22
|
+
border: 1px var(--text) solid;
|
23
|
+
width: 10em;
|
24
|
+
height: 10em;
|
25
|
+
text-align: center;
|
26
|
+
font-size: 1em;
|
27
|
+
align-items: center;
|
28
|
+
background-color: var(--bg-secondary);
|
29
|
+
margin-bottom: 0.8em;
|
30
|
+
|
31
|
+
.header {
|
32
|
+
color: var(--links);
|
33
|
+
}
|
34
|
+
|
35
|
+
.body {
|
36
|
+
font-size: 0.8em;
|
37
|
+
}
|
38
|
+
|
39
|
+
hr {
|
40
|
+
margin: 0.5em 0;
|
41
|
+
}
|
42
|
+
|
43
|
+
}
|
44
|
+
|
45
|
+
/* Responsive cards - one column layout on small screens */
|
46
|
+
@media screen and (max-width: 600px) {
|
47
|
+
ul.horizontal-list li.card {
|
48
|
+
width: 100%;
|
49
|
+
display: block;
|
50
|
+
margin-bottom: 1em;
|
51
|
+
margin-left: 1em;
|
52
|
+
a, .header {
|
53
|
+
font-size: 1em;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
data/_sass/moonwalk.scss
ADDED
@@ -0,0 +1,132 @@
|
|
1
|
+
html {
|
2
|
+
--bg: #fff;
|
3
|
+
--bg-secondary: #f8f9fa;
|
4
|
+
--headings: #000;
|
5
|
+
--text: #333;
|
6
|
+
--links: blue;
|
7
|
+
--highlight: #ffecb2; // light yellow
|
8
|
+
}
|
9
|
+
@mixin dark-appearance {
|
10
|
+
html, body {
|
11
|
+
--bg: #1f242A;
|
12
|
+
--bg-secondary: #323945;
|
13
|
+
--headings: #3D9970;
|
14
|
+
--text: #adb5bd;
|
15
|
+
--links: #91a7ff;
|
16
|
+
--highlight: #ffd8a8;
|
17
|
+
--highlight: #ffd43b;
|
18
|
+
};
|
19
|
+
}
|
20
|
+
html[data-theme="dark"] { @include dark-appearance; }
|
21
|
+
|
22
|
+
@media (prefers-color-scheme: dark) {
|
23
|
+
body[data-theme="auto"] { @include dark-appearance; }
|
24
|
+
}
|
25
|
+
|
26
|
+
html { height: 100%; }
|
27
|
+
|
28
|
+
body {
|
29
|
+
font-family: monospace;
|
30
|
+
font-size: 1rem;
|
31
|
+
line-height: 1.5;
|
32
|
+
margin: 0;
|
33
|
+
min-height: 100%;
|
34
|
+
}
|
35
|
+
|
36
|
+
h2, h3, h4, h5 { margin-top: 1.5em; }
|
37
|
+
|
38
|
+
hr { margin: 1em 0; }
|
39
|
+
|
40
|
+
p { margin: 1em 0; }
|
41
|
+
|
42
|
+
li { margin: 0.4em 0; }
|
43
|
+
|
44
|
+
.w {
|
45
|
+
max-width: 640px;
|
46
|
+
margin: 0 auto;
|
47
|
+
padding: 4em 2em;
|
48
|
+
}
|
49
|
+
|
50
|
+
table, th, td {
|
51
|
+
width: 100%;
|
52
|
+
border: thin solid black;
|
53
|
+
border-collapse: collapse;
|
54
|
+
padding: 0.4em;
|
55
|
+
}
|
56
|
+
|
57
|
+
div.highlighter-rouge code, code.highlighter-rouge {
|
58
|
+
display: block;
|
59
|
+
overflow-x: auto;
|
60
|
+
padding: 1em;
|
61
|
+
}
|
62
|
+
|
63
|
+
blockquote {
|
64
|
+
font-style: italic;
|
65
|
+
border: thin solid black;
|
66
|
+
padding: 1em;
|
67
|
+
|
68
|
+
p { margin: 0; }
|
69
|
+
}
|
70
|
+
|
71
|
+
img {
|
72
|
+
max-width: 100%;
|
73
|
+
display: block;
|
74
|
+
margin: 0 auto;
|
75
|
+
}
|
76
|
+
|
77
|
+
html, body {
|
78
|
+
background-color: var(--bg);
|
79
|
+
color: var(--text);
|
80
|
+
}
|
81
|
+
h1, h2, h3, h4, h5, h6 {
|
82
|
+
color: var(--headings);
|
83
|
+
}
|
84
|
+
p, strong, b, em, span, small, li, hr, table, code, figcaption {
|
85
|
+
color: var(--text);
|
86
|
+
}
|
87
|
+
code, blockquote {
|
88
|
+
background-color: var(--bg-secondary);
|
89
|
+
border: 1px var(--text) solid;
|
90
|
+
}
|
91
|
+
a {
|
92
|
+
color: var(--links);
|
93
|
+
}
|
94
|
+
*:target { background-color: var(--bg-secondary); }
|
95
|
+
|
96
|
+
html.transition,
|
97
|
+
html.transition *,
|
98
|
+
html.transition *:before,
|
99
|
+
html.transition *:after {
|
100
|
+
transition: all 250ms !important;
|
101
|
+
transition-delay: 0 !important;
|
102
|
+
}
|
103
|
+
|
104
|
+
.theme-toggle {
|
105
|
+
color: var(--text);
|
106
|
+
background-color: transparent;
|
107
|
+
padding: 4px;
|
108
|
+
cursor: pointer;
|
109
|
+
margin: 1em;
|
110
|
+
position: fixed;
|
111
|
+
right: 0;
|
112
|
+
top: 0;
|
113
|
+
border: 2px transparent solid;
|
114
|
+
outline: none;
|
115
|
+
}
|
116
|
+
|
117
|
+
.theme-toggle:hover {
|
118
|
+
color: var(--links);
|
119
|
+
outline: none;
|
120
|
+
}
|
121
|
+
.theme-toggle:focus {
|
122
|
+
outline: none;
|
123
|
+
}
|
124
|
+
.dashed {
|
125
|
+
border-top: 1px var(--text) dashed;
|
126
|
+
margin: 0.5em 0;
|
127
|
+
}
|
128
|
+
mark {
|
129
|
+
padding: 0.4em;
|
130
|
+
background-color: var(--highlight);
|
131
|
+
font-size: 0.8em;
|
132
|
+
}
|
metadata
ADDED
@@ -0,0 +1,103 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: moonwalk
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Abhinav Saxena
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-10-29 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.1.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.1.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: jekyll-feed
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.15.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.15.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: jekyll-seo-tag
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 2.7.1
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.7.1
|
55
|
+
description:
|
56
|
+
email:
|
57
|
+
- abhinav061@gmail.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- LICENSE.txt
|
63
|
+
- README.md
|
64
|
+
- _config.yml
|
65
|
+
- _includes/card_list.html
|
66
|
+
- _includes/goat_counter.html
|
67
|
+
- _includes/head.html
|
68
|
+
- _includes/horizontal_list.html
|
69
|
+
- _includes/post_list.html
|
70
|
+
- _includes/toggle_theme_button.html
|
71
|
+
- _includes/toggle_theme_js.html
|
72
|
+
- _includes/vertical_list.html
|
73
|
+
- _layouts/blog.html
|
74
|
+
- _layouts/default.html
|
75
|
+
- _layouts/home.html
|
76
|
+
- _layouts/post.html
|
77
|
+
- _sass/list.scss
|
78
|
+
- _sass/moonwalk.scss
|
79
|
+
- assets/css/main.scss
|
80
|
+
homepage: https://github.com/abhinavs/apic-simple-blog
|
81
|
+
licenses:
|
82
|
+
- MIT
|
83
|
+
metadata: {}
|
84
|
+
post_install_message:
|
85
|
+
rdoc_options: []
|
86
|
+
require_paths:
|
87
|
+
- lib
|
88
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
89
|
+
requirements:
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '0'
|
93
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
requirements: []
|
99
|
+
rubygems_version: 3.1.4
|
100
|
+
signing_key:
|
101
|
+
specification_version: 4
|
102
|
+
summary: A fast and minimalist Jekyll theme with clean dark mode.
|
103
|
+
test_files: []
|