moonwalk 0.0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +43 -31
- data/_config.yml +23 -6
- data/_includes/custom_head.html +3 -0
- data/_includes/date_and_social_share.html +10 -0
- data/_includes/head.html +7 -3
- data/_includes/post_list.html +6 -3
- data/_includes/toggle_theme_js.html +25 -21
- data/_layouts/blog.html +1 -1
- data/_layouts/default.html +27 -7
- data/_layouts/home.html +11 -8
- data/_layouts/post.html +3 -2
- data/_sass/list.scss +3 -2
- data/_sass/moonwalk.scss +99 -32
- data/_sass/syntax.scss +73 -0
- data/assets/css/main.scss +1 -0
- metadata +26 -10
- data/_includes/goat_counter.html +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '090356e88da17ad90e7f88cd8104eb23401d4d92412f93f82c476f51b482d628'
|
4
|
+
data.tar.gz: ebc009042c02bf50123f36040bd8d251eb98b6c72d2c5f78779a7c4cc6815228
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bd9a469b9c503784167fc53872f81dd94ea5bdc51963f67842ffeb856d3402010a2e98f814ce6a4fb007f31e917fa0df35e975673bb8a5d5f408cac904ac942
|
7
|
+
data.tar.gz: 146f84a88f20840c4bb45c1322732b2e4f64ffc8ee1a5f23a8f06cc1b381bf34b44925c5f16b65bdc0c5e837afc16335ebe448caf0c2b10711243fe86b78ca4d
|
data/README.md
CHANGED
@@ -1,53 +1,48 @@
|
|
1
|
-
|
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>
|
1
|
+
## moonwalk - a fast and minimalistic blog theme with clean dark mode
|
6
2
|
|
7
3
|
<img src="https://raw.githubusercontent.com/abhinavs/moonwalk/master/_screenshots/moonwalk.png" />
|
8
4
|
|
5
|
+
<h3 align="center">
|
6
|
+
<img src="https://raw.githubusercontent.com/abhinavs/moonwalk/master/logo.png" width="24"/>
|
7
|
+
<a href="https://abhinavs.github.io/moonwalk/">TRY THE DEMO</a>
|
8
|
+
</h3>
|
9
|
+
|
9
10
|
## Features
|
10
11
|
* Light & dark mode with theme switcher
|
11
12
|
* Vertical list, horizontal list, card list
|
12
13
|
* Landing page with navbar, footer, portfolio
|
13
|
-
* Fast (very minimal CSS) -
|
14
|
+
* Fast (very minimal CSS) - 100/100 on performance, accessibility, best practices and SEO, please see [Lighthouse Report](https://raw.githubusercontent.com/abhinavs/moonwalk/master/_screenshots/lighthouse-report.png) for more details
|
14
15
|
* Responsive and mobile friendly
|
15
|
-
* SEO optimized (uses [Jekyll SEO Tag](https://github.com/jekyll/jekyll-seo-tag))
|
16
|
+
* SEO optimized (uses [Jekyll Soopr SEO Tag](https://github.com/jekyll/jekyll-soopr-seo-tag))
|
16
17
|
* RSS feed (uses [Jekyll Feed](https://github.com/jekyll/jekyll-feed))
|
17
18
|
* Easy to extend
|
18
19
|
* Fully compatible with [GitHub Pages](https://pages.github.com/) (see [GitHub Pages installation](#github-pages-installation))
|
20
|
+
* Auto-generated social media share images (using Soopr)
|
21
|
+
* Share & like buttons (using Soopr)
|
19
22
|
|
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
23
|
|
38
|
-
|
24
|
+
#### Lighthouse
|
39
25
|
|
40
|
-
|
26
|
+
<img src="https://raw.githubusercontent.com/abhinavs/moonwalk/master/_screenshots/lighthouse-report.png" />
|
41
27
|
|
42
|
-
|
28
|
+
## Quick Installation
|
29
|
+
1. [Fork this repository](https://github.com/abhinavs/moonwalk/fork).
|
30
|
+
2. `cd moonwalk`
|
31
|
+
3. `bin/bootstrap`
|
32
|
+
4. [Optional] Sign up on Soopr, and add your `publish_token` in `_config.yml` file.
|
43
33
|
|
44
|
-
|
34
|
+
## Starting Server
|
35
|
+
`bin/start` - development server will start at http://127.0.0.1:4000
|
45
36
|
|
46
|
-
|
37
|
+
## Deployment
|
38
|
+
Moonwalk can be easily deployed on all the cloud providers (AWS etc.), and on static website hosting services like Netlify & Vercel. You can also use this button to do one click deploy
|
39
|
+
<br />
|
40
|
+
<br />
|
41
|
+
[![Deploy with Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/abhinavs/moonwalk)
|
47
42
|
|
48
|
-
If you want to use
|
43
|
+
If you want to use Moonwalk as a gem or use Github Pages, please see [this page](https://github.com/abhinavs/moonwalk/blob/master/github_pages.md)
|
49
44
|
|
50
|
-
##
|
45
|
+
## Customizing
|
51
46
|
|
52
47
|
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
48
|
|
@@ -114,6 +109,9 @@ html {
|
|
114
109
|
};
|
115
110
|
}
|
116
111
|
```
|
112
|
+
3. Add [Soopr](https://www.soopr.co) `publish_token` in `_config.yml` file to auto generate social share images. You also additionally get Like button and URL shortener, you can control them using Soopr dashboard.
|
113
|
+
|
114
|
+
<img src="https://raw.githubusercontent.com/abhinavs/moonwalk/master/_screenshots/twitter_card.png" />
|
117
115
|
|
118
116
|
## Contributing
|
119
117
|
|
@@ -135,3 +133,17 @@ This theme's original base is [no style please!](https://github.com/riggraz/no-s
|
|
135
133
|
|
136
134
|
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
137
135
|
|
136
|
+
## Other Projects
|
137
|
+
If you like Moonwalk, do check out my other projects
|
138
|
+
* [cookie](https://github.com/abhinavs/cookie) - a free landing website boilerplate using Jekyll and Tailwind CSS
|
139
|
+
* [scoop](https://github.com/abhinavs/scoop) - a Sinatra boilerplate project using Corneal, ActiveRecord, Capistrano, Puma & Nginx
|
140
|
+
* [soopr](https://www.soopr.co) - a tool that supports you in content marketing
|
141
|
+
* [apicagent](https://www.apicagent.com) - a FREE API that extracts device details from user-agent string
|
142
|
+
* [pincodr](https://pincodr.apiclabs.com) - a FREE API for Indian pincodes
|
143
|
+
* [humangous](https://www.humangous.co) - create public and private 'working with you' guides
|
144
|
+
* [blockr](https://www.abhinav.co/blockr) - a CLI tool to help you easily block and unblock websites
|
145
|
+
* [microrequests](https://www.abhinav.co/microrequests) - a Python library to help you consume microservice efficiently
|
146
|
+
|
147
|
+
✨⚡You can read more about me on my [blog](https://www.abhinav.co/about/) or follow me on Twitter - [@abhinav](https://twitter.com/abhinav)
|
148
|
+
|
149
|
+
✨⚡If you like my work, you can [buy me a coffee](https://buymeacoffee.com/abhinavs)
|
data/_config.yml
CHANGED
@@ -1,32 +1,49 @@
|
|
1
1
|
title: Moonwalk
|
2
2
|
author: Abhinav Saxena
|
3
|
-
url: https://www.
|
3
|
+
url: https://www.abhinavsaxena.com/moonwalk # root address of the site
|
4
4
|
description: > # description of the site (multiple lines allowed)
|
5
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
6
|
|
7
7
|
permalink: /:slug.html
|
8
8
|
|
9
9
|
favicon: "./logo.png" # relative path to site's favicon
|
10
|
-
|
10
|
+
|
11
|
+
twitter:
|
12
|
+
username: abhinav # update or delete this
|
13
|
+
card: summary_large_image
|
11
14
|
|
12
15
|
#theme: moonwalk # if you are using GitHub Pages, change it to remote_theme: abhinavs/moonwalk
|
13
16
|
remote_theme: abhinavs/moonwalk
|
14
17
|
|
15
18
|
theme_config:
|
16
19
|
appearance: "dark" # can be "light", "dark" or "auto"
|
20
|
+
appearance_toggle: true # if appearance can be switched by user
|
17
21
|
back_home_text: "home.." # customize text for homepage link in post layout
|
18
22
|
date_format: "%Y-%m-%d" # customize how date is formatted
|
19
|
-
show_description: true # show blog description
|
20
|
-
show_navbar: true # show horizontal navbar
|
23
|
+
show_description: true # show blog description
|
24
|
+
show_navbar: true # show horizontal navbar
|
21
25
|
show_footer: true # show footer links in home page,add in _data/home.yml
|
26
|
+
show_copyright: true # show copyright notice in footer
|
27
|
+
# following keys are using to create home layout
|
22
28
|
show_projects: true # show projects as cards, add in _data/home.yml
|
29
|
+
show_blog: true # show blog posts added in _posts
|
23
30
|
show_old_projects: true # show old projects as cards, add in _data/home.yml
|
24
|
-
show_misc_list:
|
31
|
+
show_misc_list: false # show generic vertical list for misc details, add _data/home.yml
|
32
|
+
# options for "home" page
|
33
|
+
home:
|
34
|
+
title_projects: Portfolio
|
35
|
+
title_misc_list: Details
|
36
|
+
title_blog: Blog
|
37
|
+
title_old_projects: Old Projects
|
38
|
+
|
39
|
+
soopr:
|
40
|
+
publish_token: "" # sign up at https://www.soopr.co to get your publish token and personalize share and reaction options
|
25
41
|
|
42
|
+
highlighter: rouge
|
26
43
|
|
27
44
|
sass:
|
28
45
|
style: :compressed
|
29
46
|
|
30
47
|
plugins:
|
31
48
|
- jekyll-feed
|
32
|
-
- jekyll-seo-tag
|
49
|
+
- jekyll-soopr-seo-tag
|
data/_includes/head.html
CHANGED
@@ -14,7 +14,11 @@
|
|
14
14
|
{% seo title=false %}
|
15
15
|
{% feed_meta %}
|
16
16
|
|
17
|
-
<link rel="shortcut icon" type="image/x-icon" href="/{{ site.favicon }}" />
|
18
|
-
<link rel="stylesheet" href="{{
|
19
|
-
{%
|
17
|
+
<link rel="shortcut icon" type="image/x-icon" href="/{{ site.favicon | relative_url }}" />
|
18
|
+
<link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}" />
|
19
|
+
{% if site.theme_config.appearance_toggle %}
|
20
|
+
{% include toggle_theme_js.html %}
|
21
|
+
{% endif %}
|
22
|
+
|
23
|
+
{%- include custom_head.html -%}
|
20
24
|
</head>
|
data/_includes/post_list.html
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
{% if site.posts.size > 0 %}
|
2
2
|
<ul>
|
3
3
|
{% for post in site.posts %}
|
4
|
-
<li>
|
5
|
-
|
4
|
+
<li class="post-list-item">
|
5
|
+
<span class="home-date">
|
6
|
+
{{ post.date | date: site.theme_config.date_format }}»
|
7
|
+
</span>
|
8
|
+
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
6
9
|
</li>
|
7
10
|
{% endfor %}
|
8
11
|
</ul>
|
9
|
-
{% endif %}
|
12
|
+
{% endif %}
|
@@ -1,27 +1,31 @@
|
|
1
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/turbolinks/5.2.0/turbolinks.js" defer></script>
|
2
1
|
<script type="text/javascript">
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
window.addEventListener('load', themeChange);
|
3
|
+
const currentTheme = localStorage.getItem('theme') ? localStorage.getItem('theme') : null;
|
4
|
+
if (currentTheme)
|
5
|
+
document.documentElement.setAttribute('data-theme', currentTheme);
|
6
6
|
|
7
|
-
|
8
|
-
|
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
|
-
});
|
7
|
+
function themeChange() {
|
8
|
+
let button = document.querySelector('.theme-toggle');
|
17
9
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
10
|
+
button.addEventListener('click', function (e) {
|
11
|
+
let currentTheme = document.documentElement.getAttribute('data-theme');
|
12
|
+
if (currentTheme === 'dark') {
|
13
|
+
transition();
|
14
|
+
document.documentElement.setAttribute('data-theme', 'light');
|
15
|
+
localStorage.setItem('theme', 'light');
|
16
|
+
} else {
|
17
|
+
transition();
|
18
|
+
document.documentElement.setAttribute('data-theme', 'dark');
|
19
|
+
localStorage.setItem('theme', 'dark');
|
25
20
|
}
|
21
|
+
});
|
22
|
+
|
23
|
+
let transition = () => {
|
24
|
+
document.documentElement.classList.add('transition');
|
25
|
+
window.setTimeout(() => {
|
26
|
+
document.documentElement.classList.remove('transition');
|
27
|
+
}, 1000);
|
28
|
+
}
|
29
|
+
}
|
26
30
|
</script>
|
27
31
|
|
data/_layouts/blog.html
CHANGED
data/_layouts/default.html
CHANGED
@@ -3,15 +3,35 @@
|
|
3
3
|
{%- include head.html -%}
|
4
4
|
<body>
|
5
5
|
<main class="page-content" aria-label="Content">
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
<div class="w">
|
7
|
+
{{ content }}
|
8
|
+
{% if site.theme_config.appearance_toggle %}
|
9
|
+
{% include toggle_theme_button.html %}
|
10
|
+
{% endif %}
|
11
|
+
<div class="credits">
|
12
|
+
{%- if site.theme_config.show_copyright == true -%}
|
13
|
+
© {{ "now" | date: "%Y" }} {{site.author}}
|
14
|
+
|
15
|
+
•
|
16
|
+
|
17
|
+
{%- endif -%}
|
18
|
+
{%- if site.soopr -%}
|
19
|
+
Powered by <a href="https://www.soopr.co" target="_blank" rel="noreferrer">Soopr</a>
|
20
|
+
|
21
|
+
•
|
22
|
+
|
23
|
+
{%- endif -%}
|
24
|
+
Theme <a href="https://github.com/abhinavs/moonwalk" target="_blank" rel="noreferrer">Moonwalk</a>
|
9
25
|
</div>
|
26
|
+
</div>
|
10
27
|
</main>
|
11
28
|
|
12
|
-
{
|
13
|
-
|
14
|
-
|
15
|
-
|
29
|
+
{%- if site.soopr -%}
|
30
|
+
{%- if site.soopr.publish_token and jekyll.environment == "production" -%}
|
31
|
+
<script async defer data-soopr-token="{{site.soopr.publish_token}}" src="https://sdk.soopr.co/soopr.js"></script>
|
32
|
+
{%- else -%}
|
33
|
+
<script async defer src="https://sdk.soopr.co/soopr.js"></script>
|
34
|
+
{%- endif -%}
|
35
|
+
{%- endif -%}
|
16
36
|
</body>
|
17
37
|
</html>
|
data/_layouts/home.html
CHANGED
@@ -5,7 +5,7 @@ layout: default
|
|
5
5
|
<header>
|
6
6
|
{% if site.theme_config.show_navbar == true %}
|
7
7
|
{% include horizontal_list.html collection=site.data.home.navbar_entries %}
|
8
|
-
<div class="dashed"
|
8
|
+
<div class="dashed"></div>
|
9
9
|
{% endif %}
|
10
10
|
|
11
11
|
<h1>{{ site.title }}</h1>
|
@@ -14,29 +14,32 @@ layout: default
|
|
14
14
|
{% endif %}
|
15
15
|
</header>
|
16
16
|
|
17
|
+
{{ content }}
|
18
|
+
|
17
19
|
{% if site.theme_config.show_projects == true %}
|
18
|
-
<h2>
|
20
|
+
<h2>{{ site.theme_config.home.title_projects }}</h2>
|
19
21
|
{% include card_list.html collection=site.data.home.project_entries %}
|
20
22
|
{% endif %}
|
21
23
|
|
22
24
|
{% if site.theme_config.show_misc_list == true %}
|
23
|
-
<h2>
|
25
|
+
<h2>{{ site.theme_config.home.title_misc_list }}</h2>
|
24
26
|
{% include vertical_list.html collection=site.data.home.misc_entries %}
|
25
27
|
{% endif %}
|
26
28
|
|
27
|
-
|
28
|
-
<h2>
|
29
|
-
{% include post_list.html %}
|
29
|
+
{% if site.theme_config.show_blog == true %}
|
30
|
+
<h2>{{ site.theme_config.home.title_blog }}</h2>
|
31
|
+
{% include post_list.html %}
|
32
|
+
{% endif %}
|
30
33
|
|
31
34
|
{% if site.theme_config.show_old_projects == true %}
|
32
|
-
<h2>
|
35
|
+
<h2>{{ site.theme_config.home.title_old_projects }}</h2>
|
33
36
|
{% include card_list.html collection=site.data.home.old_project_entries %}
|
34
37
|
{% endif %}
|
35
38
|
|
36
39
|
|
37
40
|
{% if site.theme_config.show_footer == true %}
|
38
41
|
<footer>
|
39
|
-
<div class="dashed"
|
42
|
+
<div class="dashed"></div>
|
40
43
|
{% include horizontal_list.html collection=site.data.home.footer_entries %}
|
41
44
|
</footer>
|
42
45
|
{% endif %}
|
data/_layouts/post.html
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
layout: default
|
3
3
|
---
|
4
4
|
|
5
|
-
<a href="{{
|
6
|
-
<h1>{{ page.title }}</h1>
|
5
|
+
<a href="{{ "/" | relative_url }}">{{ site.theme_config.back_home_text }}</a>
|
6
|
+
<h1 class="post-title">{{ page.title }}</h1>
|
7
|
+
{% include date_and_social_share.html %}
|
7
8
|
{{ content }}
|
data/_sass/list.scss
CHANGED
@@ -20,13 +20,14 @@ ul.horizontal-list {
|
|
20
20
|
.card {
|
21
21
|
padding: 1em;
|
22
22
|
border: 1px var(--text) solid;
|
23
|
-
width:
|
24
|
-
height:
|
23
|
+
width: 11em;
|
24
|
+
height: auto;
|
25
25
|
text-align: center;
|
26
26
|
font-size: 1em;
|
27
27
|
align-items: center;
|
28
28
|
background-color: var(--bg-secondary);
|
29
29
|
margin-bottom: 0.8em;
|
30
|
+
border-radius: 0.8em;
|
30
31
|
|
31
32
|
.header {
|
32
33
|
color: var(--links);
|
data/_sass/moonwalk.scss
CHANGED
@@ -1,48 +1,38 @@
|
|
1
|
-
|
2
|
-
|
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
|
-
}
|
1
|
+
@import url('https://fonts.googleapis.com/css2?family=Anonymous+Pro&display=swap');
|
2
|
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');
|
25
3
|
|
26
4
|
html { height: 100%; }
|
27
5
|
|
28
6
|
body {
|
29
|
-
font-family:
|
30
|
-
font-size:
|
31
|
-
line-height:
|
7
|
+
font-family: "Inter", -apple-system, "avenir next", avenir, roboto, noto, ubuntu, "helvetica neue", helvetica, sans-serif;
|
8
|
+
font-size: 1.0rem;
|
9
|
+
line-height: 2;
|
32
10
|
margin: 0;
|
33
11
|
min-height: 100%;
|
34
12
|
}
|
13
|
+
pre, code {
|
14
|
+
font-family: "Anonymous Pro", "Courier New", monospace;
|
15
|
+
font-size: 0.9rem;
|
16
|
+
}
|
35
17
|
|
36
18
|
h2, h3, h4, h5 { margin-top: 1.5em; }
|
37
19
|
|
38
20
|
hr { margin: 1em 0; }
|
39
21
|
|
22
|
+
hr.page-break {
|
23
|
+
text-align: center;
|
24
|
+
border: 0;
|
25
|
+
|
26
|
+
&:before { content: '-----' }
|
27
|
+
&:after { content: attr(data-content) '-----' }
|
28
|
+
}
|
29
|
+
|
40
30
|
p { margin: 1em 0; }
|
41
31
|
|
42
32
|
li { margin: 0.4em 0; }
|
43
33
|
|
44
34
|
.w {
|
45
|
-
max-width:
|
35
|
+
max-width: 720px;
|
46
36
|
margin: 0 auto;
|
47
37
|
padding: 4em 2em;
|
48
38
|
}
|
@@ -54,7 +44,7 @@ table, th, td {
|
|
54
44
|
padding: 0.4em;
|
55
45
|
}
|
56
46
|
|
57
|
-
div.highlighter-rouge code, code.highlighter-rouge {
|
47
|
+
div.highlighter-rouge pre code, pre code.highlighter-rouge {
|
58
48
|
display: block;
|
59
49
|
overflow-x: auto;
|
60
50
|
padding: 1em;
|
@@ -73,6 +63,35 @@ img {
|
|
73
63
|
display: block;
|
74
64
|
margin: 0 auto;
|
75
65
|
}
|
66
|
+
html {
|
67
|
+
--bg: #FFF;
|
68
|
+
--bg-secondary: #f8f8f8;
|
69
|
+
--headings: #000;
|
70
|
+
--text: #333;
|
71
|
+
--links: blue;
|
72
|
+
--highlight: #FFECB2; // light yellow
|
73
|
+
--code-text: #9D174D;
|
74
|
+
--share-text: #999;
|
75
|
+
}
|
76
|
+
// -------------- THEME SWITCHER -------------- //
|
77
|
+
@mixin dark-appearance {
|
78
|
+
html, body {
|
79
|
+
--headings: #74c0fc;
|
80
|
+
--links: #91A7FF;
|
81
|
+
--highlight: #41C7C7;
|
82
|
+
--bg: #1f242A;
|
83
|
+
--bg-secondary: #323945;
|
84
|
+
--text: #adb5bd;
|
85
|
+
--code-text: #91A7FF;
|
86
|
+
--share-text: #C4C4C4;
|
87
|
+
};
|
88
|
+
}
|
89
|
+
html[data-theme="dark"] { @include dark-appearance; }
|
90
|
+
|
91
|
+
@media (prefers-color-scheme: dark) {
|
92
|
+
body[data-theme="auto"] { @include dark-appearance; }
|
93
|
+
}
|
94
|
+
// -------------------------------------------- //
|
76
95
|
|
77
96
|
html, body {
|
78
97
|
background-color: var(--bg);
|
@@ -81,12 +100,15 @@ html, body {
|
|
81
100
|
h1, h2, h3, h4, h5, h6 {
|
82
101
|
color: var(--headings);
|
83
102
|
}
|
84
|
-
p, strong, b, em,
|
103
|
+
p, strong, b, em, small, li, hr, table, figcaption {
|
85
104
|
color: var(--text);
|
86
105
|
}
|
87
|
-
code, blockquote {
|
106
|
+
.highlight, pre code, blockquote {
|
107
|
+
border-radius: 0.5em;
|
108
|
+
}
|
109
|
+
blockquote {
|
88
110
|
background-color: var(--bg-secondary);
|
89
|
-
border: 1px var(--
|
111
|
+
border: 1px var(--border) solid;
|
90
112
|
}
|
91
113
|
a {
|
92
114
|
color: var(--links);
|
@@ -128,5 +150,50 @@ html.transition *:after {
|
|
128
150
|
mark {
|
129
151
|
padding: 0.4em;
|
130
152
|
background-color: var(--highlight);
|
153
|
+
font-size: 0.6em;
|
154
|
+
letter-spacing: 1px;
|
155
|
+
}
|
156
|
+
|
157
|
+
.post-date {
|
158
|
+
color: var(--secondary-text);
|
159
|
+
//margin-bottom: 1rem;
|
160
|
+
font-size: 0.8em;
|
161
|
+
}
|
162
|
+
.home-date {
|
163
|
+
font-family: monospace;
|
164
|
+
}
|
165
|
+
.post-list-item a {
|
166
|
+
text-decoration: none;
|
167
|
+
}
|
168
|
+
.text-bold {
|
169
|
+
font-weight: bold;
|
170
|
+
}
|
171
|
+
.text-upcase {
|
172
|
+
text-transform: uppercase;
|
173
|
+
}
|
174
|
+
p code, li code {
|
175
|
+
background-color: var(--bg-secondary);
|
176
|
+
padding: 0.2rem;
|
177
|
+
color: var(--code-text);
|
178
|
+
font-weight: bold;
|
179
|
+
}
|
180
|
+
.post-title {
|
181
|
+
margin-bottom:-1.5rem;
|
182
|
+
}
|
183
|
+
.project-title {
|
184
|
+
margin-bottom: 0.8rem;
|
185
|
+
}
|
186
|
+
.credits {
|
131
187
|
font-size: 0.8em;
|
188
|
+
color: var(--text);
|
189
|
+
margin: 8em auto -4em auto;
|
190
|
+
text-align: center;
|
191
|
+
a {
|
192
|
+
color: var(--text);
|
193
|
+
text-decoration: none;
|
194
|
+
font-weight: bold;
|
195
|
+
}
|
196
|
+
a:hover {
|
197
|
+
color: var(--links);
|
198
|
+
}
|
132
199
|
}
|
data/_sass/syntax.scss
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
.highlight .hll { background-color: #515151 }
|
2
|
+
/*.highlight { background: #2d2d2d; color: #f2f0ec }*/
|
3
|
+
.highlight { background: #1A1F35; color: #f2f0ec }
|
4
|
+
.highlight .c { color: #747369 } /* Comment */
|
5
|
+
.highlight .err { color: #f2777a } /* Error */
|
6
|
+
.highlight .k { color: #cc99cc } /* Keyword */
|
7
|
+
.highlight .l { color: #f99157 } /* Literal */
|
8
|
+
.highlight .n { color: #f2f0ec } /* Name */
|
9
|
+
.highlight .o { color: #66cccc } /* Operator */
|
10
|
+
.highlight .p { color: #f2f0ec } /* Punctuation */
|
11
|
+
.highlight .ch { color: #747369 } /* Comment.Hashbang */
|
12
|
+
.highlight .cm { color: #747369 } /* Comment.Multiline */
|
13
|
+
.highlight .cp { color: #747369 } /* Comment.Preproc */
|
14
|
+
.highlight .cpf { color: #747369 } /* Comment.PreprocFile */
|
15
|
+
.highlight .c1 { color: #747369 } /* Comment.Single */
|
16
|
+
.highlight .cs { color: #747369 } /* Comment.Special */
|
17
|
+
.highlight .gd { color: #f2777a } /* Generic.Deleted */
|
18
|
+
.highlight .ge { font-style: italic } /* Generic.Emph */
|
19
|
+
.highlight .gh { color: #f2f0ec; font-weight: bold } /* Generic.Heading */
|
20
|
+
.highlight .gi { color: #99cc99 } /* Generic.Inserted */
|
21
|
+
.highlight .gp { color: #747369; font-weight: bold } /* Generic.Prompt */
|
22
|
+
.highlight .gs { font-weight: bold } /* Generic.Strong */
|
23
|
+
.highlight .gu { color: #66cccc; font-weight: bold } /* Generic.Subheading */
|
24
|
+
.highlight .kc { color: #cc99cc } /* Keyword.Constant */
|
25
|
+
.highlight .kd { color: #cc99cc } /* Keyword.Declaration */
|
26
|
+
.highlight .kn { color: #66cccc } /* Keyword.Namespace */
|
27
|
+
.highlight .kp { color: #cc99cc } /* Keyword.Pseudo */
|
28
|
+
.highlight .kr { color: #cc99cc } /* Keyword.Reserved */
|
29
|
+
.highlight .kt { color: #ffcc66 } /* Keyword.Type */
|
30
|
+
.highlight .ld { color: #99cc99 } /* Literal.Date */
|
31
|
+
.highlight .m { color: #f99157 } /* Literal.Number */
|
32
|
+
.highlight .s { color: #99cc99 } /* Literal.String */
|
33
|
+
.highlight .na { color: #6699cc } /* Name.Attribute */
|
34
|
+
.highlight .nb { color: #f2f0ec } /* Name.Builtin */
|
35
|
+
.highlight .nc { color: #ffcc66 } /* Name.Class */
|
36
|
+
.highlight .no { color: #f2777a } /* Name.Constant */
|
37
|
+
.highlight .nd { color: #66cccc } /* Name.Decorator */
|
38
|
+
.highlight .ni { color: #f2f0ec } /* Name.Entity */
|
39
|
+
.highlight .ne { color: #f2777a } /* Name.Exception */
|
40
|
+
.highlight .nf { color: #6699cc } /* Name.Function */
|
41
|
+
.highlight .nl { color: #f2f0ec } /* Name.Label */
|
42
|
+
.highlight .nn { color: #ffcc66 } /* Name.Namespace */
|
43
|
+
.highlight .nx { color: #6699cc } /* Name.Other */
|
44
|
+
.highlight .py { color: #f2f0ec } /* Name.Property */
|
45
|
+
.highlight .nt { color: #66cccc } /* Name.Tag */
|
46
|
+
.highlight .nv { color: #f2777a } /* Name.Variable */
|
47
|
+
.highlight .ow { color: #66cccc } /* Operator.Word */
|
48
|
+
.highlight .w { color: #f2f0ec } /* Text.Whitespace */
|
49
|
+
.highlight .mb { color: #f99157 } /* Literal.Number.Bin */
|
50
|
+
.highlight .mf { color: #f99157 } /* Literal.Number.Float */
|
51
|
+
.highlight .mh { color: #f99157 } /* Literal.Number.Hex */
|
52
|
+
.highlight .mi { color: #f99157 } /* Literal.Number.Integer */
|
53
|
+
.highlight .mo { color: #f99157 } /* Literal.Number.Oct */
|
54
|
+
.highlight .sa { color: #99cc99 } /* Literal.String.Affix */
|
55
|
+
.highlight .sb { color: #99cc99 } /* Literal.String.Backtick */
|
56
|
+
.highlight .sc { color: #f2f0ec } /* Literal.String.Char */
|
57
|
+
.highlight .dl { color: #99cc99 } /* Literal.String.Delimiter */
|
58
|
+
.highlight .sd { color: #747369 } /* Literal.String.Doc */
|
59
|
+
.highlight .s2 { color: #99cc99 } /* Literal.String.Double */
|
60
|
+
.highlight .se { color: #f99157 } /* Literal.String.Escape */
|
61
|
+
.highlight .sh { color: #99cc99 } /* Literal.String.Heredoc */
|
62
|
+
.highlight .si { color: #f99157 } /* Literal.String.Interpol */
|
63
|
+
.highlight .sx { color: #99cc99 } /* Literal.String.Other */
|
64
|
+
.highlight .sr { color: #99cc99 } /* Literal.String.Regex */
|
65
|
+
.highlight .s1 { color: #99cc99 } /* Literal.String.Single */
|
66
|
+
.highlight .ss { color: #99cc99 } /* Literal.String.Symbol */
|
67
|
+
.highlight .bp { color: #f2f0ec } /* Name.Builtin.Pseudo */
|
68
|
+
.highlight .fm { color: #6699cc } /* Name.Function.Magic */
|
69
|
+
.highlight .vc { color: #f2777a } /* Name.Variable.Class */
|
70
|
+
.highlight .vg { color: #f2777a } /* Name.Variable.Global */
|
71
|
+
.highlight .vi { color: #f2777a } /* Name.Variable.Instance */
|
72
|
+
.highlight .vm { color: #f2777a } /* Name.Variable.Magic */
|
73
|
+
.highlight .il { color: #f99157 } /* Literal.Number.Integer.Long */
|
data/assets/css/main.scss
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moonwalk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abhinav Saxena
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.
|
19
|
+
version: 4.2.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 4.
|
26
|
+
version: 4.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: jekyll-feed
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,19 +39,33 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.15.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name: jekyll-seo-tag
|
42
|
+
name: jekyll-soopr-seo-tag
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 2.7.
|
47
|
+
version: 2.7.3
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 2.7.
|
54
|
+
version: 2.7.3
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rouge
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 3.23.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 3.23.0
|
55
69
|
description:
|
56
70
|
email:
|
57
71
|
- abhinav061@gmail.com
|
@@ -63,7 +77,8 @@ files:
|
|
63
77
|
- README.md
|
64
78
|
- _config.yml
|
65
79
|
- _includes/card_list.html
|
66
|
-
- _includes/
|
80
|
+
- _includes/custom_head.html
|
81
|
+
- _includes/date_and_social_share.html
|
67
82
|
- _includes/head.html
|
68
83
|
- _includes/horizontal_list.html
|
69
84
|
- _includes/post_list.html
|
@@ -76,8 +91,9 @@ files:
|
|
76
91
|
- _layouts/post.html
|
77
92
|
- _sass/list.scss
|
78
93
|
- _sass/moonwalk.scss
|
94
|
+
- _sass/syntax.scss
|
79
95
|
- assets/css/main.scss
|
80
|
-
homepage: https://github.com/abhinavs/
|
96
|
+
homepage: https://github.com/abhinavs/moonwalk
|
81
97
|
licenses:
|
82
98
|
- MIT
|
83
99
|
metadata: {}
|
@@ -96,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
112
|
- !ruby/object:Gem::Version
|
97
113
|
version: '0'
|
98
114
|
requirements: []
|
99
|
-
rubygems_version: 3.
|
115
|
+
rubygems_version: 3.2.15
|
100
116
|
signing_key:
|
101
117
|
specification_version: 4
|
102
118
|
summary: A fast and minimalist Jekyll theme with clean dark mode.
|
data/_includes/goat_counter.html
DELETED