moonwalk 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_config.yml +15 -6
- data/_includes/custom_head.html +3 -0
- data/_includes/date_and_social_share.html +8 -11
- data/_includes/head.html +7 -3
- data/_includes/toggle_theme_js.html +25 -26
- data/_layouts/blog.html +1 -1
- data/_layouts/default.html +27 -10
- data/_layouts/home.html +11 -8
- data/_layouts/post.html +2 -2
- data/_sass/list.scss +2 -1
- data/_sass/moonwalk.scss +23 -5
- metadata +6 -6
- 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: 7e270dfe2fbc981a4e282452fe0e19234b064cbdf98f048df6b63ea07d8a785c
|
4
|
+
data.tar.gz: c189daf8b600ca2f7bcfeaa26619ab73727bb70abd069aa9f9c1b4c6b2a2b54f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d87fc734bad001a7ff65694bdf39de795462778bd2a2b890bbdb53b24601a311b9d8ccc152fe1397d5a9ee1d50cce1199bc42a898cff1a79ec123f1625dc9080
|
7
|
+
data.tar.gz: 9e47b40287b8f29f5b8f94e67c4f662d673e47a25a2a9bdbfe1640d010a91bfb528ceedbb48b8e065fcafc064d478b2e37355d78e57239016d1cba697db0efaa
|
data/_config.yml
CHANGED
@@ -7,24 +7,33 @@ description: > # description of the site (multiple lines allowed)
|
|
7
7
|
permalink: /:slug.html
|
8
8
|
|
9
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
10
|
|
12
11
|
#theme: moonwalk # if you are using GitHub Pages, change it to remote_theme: abhinavs/moonwalk
|
13
12
|
remote_theme: abhinavs/moonwalk
|
14
13
|
|
15
14
|
theme_config:
|
16
15
|
appearance: "dark" # can be "light", "dark" or "auto"
|
16
|
+
appearance_toggle: true # if appearance can be switched by user
|
17
17
|
back_home_text: "home.." # customize text for homepage link in post layout
|
18
18
|
date_format: "%Y-%m-%d" # customize how date is formatted
|
19
|
-
show_description: true # show blog description
|
20
|
-
show_navbar: true # show horizontal navbar
|
19
|
+
show_description: true # show blog description
|
20
|
+
show_navbar: true # show horizontal navbar
|
21
21
|
show_footer: true # show footer links in home page,add in _data/home.yml
|
22
|
+
show_copyright: true # show copyright notice in footer
|
23
|
+
# following keys are using to create home layout
|
22
24
|
show_projects: true # show projects as cards, add in _data/home.yml
|
25
|
+
show_blog: true # show blog posts added in _posts
|
23
26
|
show_old_projects: true # show old projects as cards, add in _data/home.yml
|
24
27
|
show_misc_list: false # show generic vertical list for misc details, add _data/home.yml
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
+
# options for "home" page
|
29
|
+
home:
|
30
|
+
title_projects: Portfolio
|
31
|
+
title_misc_list: Details
|
32
|
+
title_blog: Blog
|
33
|
+
title_old_projects: Old Projects
|
34
|
+
|
35
|
+
soopr:
|
36
|
+
publish_token: "" # sign up at https://www.soopr.co to get your publish token and personalize share and reaction options
|
28
37
|
|
29
38
|
highlighter: rouge
|
30
39
|
|
@@ -1,14 +1,11 @@
|
|
1
|
-
<p class="text-bold text-upcase">
|
1
|
+
<p class="post-date text-bold text-upcase">
|
2
2
|
{% if page.date %}
|
3
|
-
<span
|
4
|
-
{% endif %}
|
5
|
-
{% if site.theme_config.show_soopr %}
|
6
|
-
<span class="share">Share </span>
|
7
|
-
<span class="soopr-btn soopr-btn-sm"
|
8
|
-
data-twitter="abhinav"
|
9
|
-
data-facebook="abhinavs"
|
10
|
-
data-text="{{ page.title }}"
|
11
|
-
data-url="{{ site.url }}/{{ page.url }}">
|
12
|
-
</span>
|
3
|
+
<span>{{ page.date | date: "%B %Y"}}</span>
|
13
4
|
{% endif %}
|
14
5
|
</p>
|
6
|
+
|
7
|
+
<div class="soopr-btn"
|
8
|
+
data-twitter="abhinav"
|
9
|
+
data-facebook="abhinavs"
|
10
|
+
>
|
11
|
+
</div>
|
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>
|
@@ -1,32 +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
|
-
|
6
|
-
|
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);
|
7
6
|
|
8
|
-
|
9
|
-
|
7
|
+
function themeChange() {
|
8
|
+
let button = document.querySelector('.theme-toggle');
|
10
9
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
}
|
22
|
-
});
|
23
|
-
|
24
|
-
let transition = () =>{
|
25
|
-
document.documentElement.classList.add('transition');
|
26
|
-
window.setTimeout(()=>{
|
27
|
-
document.documentElement.classList.remove('transition');
|
28
|
-
}, 1000);
|
29
|
-
}
|
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');
|
30
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
|
+
}
|
31
30
|
</script>
|
32
31
|
|
data/_layouts/blog.html
CHANGED
data/_layouts/default.html
CHANGED
@@ -3,18 +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
|
-
|
16
|
-
|
17
|
-
|
18
|
-
{
|
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 -%}
|
19
36
|
</body>
|
20
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,7 +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
7
|
{% include date_and_social_share.html %}
|
8
8
|
{{ content }}
|
data/_sass/list.scss
CHANGED
@@ -21,12 +21,13 @@ ul.horizontal-list {
|
|
21
21
|
padding: 1em;
|
22
22
|
border: 1px var(--text) solid;
|
23
23
|
width: 11em;
|
24
|
-
height:
|
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
@@ -155,11 +155,9 @@ mark {
|
|
155
155
|
}
|
156
156
|
|
157
157
|
.post-date {
|
158
|
-
color: var(--
|
159
|
-
margin-
|
160
|
-
|
161
|
-
.share {
|
162
|
-
color: var(--share-text);
|
158
|
+
color: var(--secondary-text);
|
159
|
+
//margin-bottom: 1rem;
|
160
|
+
font-size: 0.8em;
|
163
161
|
}
|
164
162
|
.home-date {
|
165
163
|
font-family: monospace;
|
@@ -179,3 +177,23 @@ p code, li code {
|
|
179
177
|
color: var(--code-text);
|
180
178
|
font-weight: bold;
|
181
179
|
}
|
180
|
+
.post-title {
|
181
|
+
margin-bottom:-1.5rem;
|
182
|
+
}
|
183
|
+
.project-title {
|
184
|
+
margin-bottom: 0.8rem;
|
185
|
+
}
|
186
|
+
.credits {
|
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
|
+
}
|
199
|
+
}
|
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.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abhinav Saxena
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-21 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
|
@@ -77,8 +77,8 @@ files:
|
|
77
77
|
- README.md
|
78
78
|
- _config.yml
|
79
79
|
- _includes/card_list.html
|
80
|
+
- _includes/custom_head.html
|
80
81
|
- _includes/date_and_social_share.html
|
81
|
-
- _includes/goat_counter.html
|
82
82
|
- _includes/head.html
|
83
83
|
- _includes/horizontal_list.html
|
84
84
|
- _includes/post_list.html
|
@@ -93,7 +93,7 @@ files:
|
|
93
93
|
- _sass/moonwalk.scss
|
94
94
|
- _sass/syntax.scss
|
95
95
|
- assets/css/main.scss
|
96
|
-
homepage: https://github.com/abhinavs/
|
96
|
+
homepage: https://github.com/abhinavs/moonwalk
|
97
97
|
licenses:
|
98
98
|
- MIT
|
99
99
|
metadata: {}
|
data/_includes/goat_counter.html
DELETED