darkhack 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.md +21 -0
- data/README.md +53 -0
- data/_config.yml +17 -0
- data/_includes/footer.html +19 -0
- data/_includes/head.html +32 -0
- data/_includes/navbar.html +24 -0
- data/_layouts/default.html +44 -0
- data/_layouts/page.html +17 -0
- data/_layouts/post.html +5 -0
- data/_sass/darkhack/_base.scss +40 -0
- data/_sass/darkhack/_code.scss +68 -0
- data/_sass/darkhack/_config.scss +12 -0
- data/_sass/darkhack/_listing.scss +28 -0
- data/_sass/darkhack/_navbar.scss +22 -0
- data/_sass/darkhack/main.scss +6 -0
- data/assets/css/style.scss +4 -0
- data/assets/scripts/highlight.min.js +1349 -0
- metadata +74 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e915b1f7302647ba2315d5e1f31e4d346eb3c4a3133c92166926a5a9191a1126
|
4
|
+
data.tar.gz: 3f22182a728616d9b2ffa774b7520b562acdcc9c63c0e620c781de805c343ebd
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 70c127b65353d383ee6b8bbe4903738c7297c80ae0cfeada4e070eebcafe46187ab4a4d4aaf072e0aa78c533766cb7f63e794ec3af72de71e671092ef1ce6424
|
7
|
+
data.tar.gz: 65264e9523bb8ae521b16c026671eaf984a79a2df91c086546e659da3680a1806b2c01d17f563db8d7c7c8586939153ddef8494c558a1a9a2bac30aed3d491ff
|
data/LICENSE.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2021 Paul David
|
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,53 @@
|
|
1
|
+
# darkhack
|
2
|
+
|
3
|
+
A simple dark theme with a focus on content and code.
|
4
|
+
|
5
|
+
![Screenshot of darkhack](screenshot.png)
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your Jekyll site's `Gemfile`:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem "darkhack"
|
13
|
+
```
|
14
|
+
|
15
|
+
And add this line to your Jekyll site's `_config.yml`:
|
16
|
+
|
17
|
+
```yaml
|
18
|
+
theme: darkhack
|
19
|
+
```
|
20
|
+
|
21
|
+
And then execute:
|
22
|
+
|
23
|
+
$ bundle
|
24
|
+
|
25
|
+
Or install it yourself as:
|
26
|
+
|
27
|
+
$ gem install darkhack
|
28
|
+
|
29
|
+
## License
|
30
|
+
|
31
|
+
```
|
32
|
+
The MIT License (MIT)
|
33
|
+
|
34
|
+
Copyright (c) 2021 Paul David
|
35
|
+
|
36
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
37
|
+
of this software and associated documentation files (the "Software"), to deal
|
38
|
+
in the Software without restriction, including without limitation the rights
|
39
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
40
|
+
copies of the Software, and to permit persons to whom the Software is
|
41
|
+
furnished to do so, subject to the following conditions:
|
42
|
+
|
43
|
+
The above copyright notice and this permission notice shall be included in
|
44
|
+
all copies or substantial portions of the Software.
|
45
|
+
|
46
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
47
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
48
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
49
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
50
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
51
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
52
|
+
THE SOFTWARE.
|
53
|
+
```
|
data/_config.yml
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
title: Dark Hacking Site
|
2
|
+
author:
|
3
|
+
name: root
|
4
|
+
email: root@sudo.net
|
5
|
+
twitter: daulpavid
|
6
|
+
github: daulpavid
|
7
|
+
linkedin: daulpavid
|
8
|
+
description:
|
9
|
+
Bullshit goes here.
|
10
|
+
tagline:
|
11
|
+
Hack the planet!
|
12
|
+
|
13
|
+
darkhack:
|
14
|
+
date_format:
|
15
|
+
"%x"
|
16
|
+
|
17
|
+
theme: darkhack
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<div class="container">
|
2
|
+
<nav>
|
3
|
+
<ul>
|
4
|
+
<li>$ socials: </li>
|
5
|
+
{% if site.author.github != nil %}
|
6
|
+
<li><a href="https://github.com/{{ site.author.github }}"
|
7
|
+
class="fa fa-github-square"></a></li>
|
8
|
+
{% endif %}
|
9
|
+
{% if site.author.twitter != nil %}
|
10
|
+
<li><a href="https://twitter.com/{{ site.author.twitter }}"
|
11
|
+
class="fa fa-twitter"></a></li>
|
12
|
+
{% endif %}
|
13
|
+
{% if site.author.linkedin != nil %}
|
14
|
+
<li><a href="https://linkedin.com/in/{{ site.author.linkedin }}"
|
15
|
+
class="fa fa-linkedin"></a></li>
|
16
|
+
{% endif %}
|
17
|
+
</ul>
|
18
|
+
</nav>
|
19
|
+
</div>
|
data/_includes/head.html
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
<head>
|
2
|
+
<meta charset="UTF-8">
|
3
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
4
|
+
<title>
|
5
|
+
{% if page.title == "home" %}
|
6
|
+
{{ site.title }} // {{ site.tagline }}
|
7
|
+
{% else %}
|
8
|
+
{{ page.title }} // {{ site.tagline }}
|
9
|
+
{% endif %}
|
10
|
+
</title>
|
11
|
+
|
12
|
+
<link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}">
|
13
|
+
{% assign page_type = page.type | split: ", " %}
|
14
|
+
{% if page_type contains "code" %}
|
15
|
+
<script src="{{ '/assets/scripts/highlight.min.js' | relative_url }}"></script>
|
16
|
+
<script>hljs.highlightAll();</script>
|
17
|
+
{% endif %}
|
18
|
+
{% if page_type contains "math" %}
|
19
|
+
<script>
|
20
|
+
MathJax = {
|
21
|
+
tex: {
|
22
|
+
inlineMath: [['$', '$'], ['\\(', '\\)']],
|
23
|
+
processEscapes: true
|
24
|
+
}
|
25
|
+
};
|
26
|
+
</script>
|
27
|
+
<script id="MathJax-script" async
|
28
|
+
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js">
|
29
|
+
</script>
|
30
|
+
{% endif %}
|
31
|
+
<script src="https://kit.fontawesome.com/357d91f838.js" crossorigin="anonymous"></script>
|
32
|
+
</head>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<div class="container">
|
2
|
+
<nav>
|
3
|
+
<ul>
|
4
|
+
<li>$</li>
|
5
|
+
<li>
|
6
|
+
<a href="{{ site.url }}">daulpav.id /</a>
|
7
|
+
</li>
|
8
|
+
{% if page.collection != nil %}
|
9
|
+
<li>
|
10
|
+
<a href="{{ site.url }}">{{ page.collection }} / </a>
|
11
|
+
</li>
|
12
|
+
{% endif %}
|
13
|
+
<li>
|
14
|
+
{% assign page_name = page.id | split: "/" | last %}
|
15
|
+
{% if page_name == nil %}
|
16
|
+
{% assign page_name = page.name %}
|
17
|
+
{% endif %}
|
18
|
+
<a href="{{ page.url | relative_url }}">
|
19
|
+
{{ page_name | split: "." | first }}
|
20
|
+
</a>
|
21
|
+
</li>
|
22
|
+
</ul>
|
23
|
+
</nav>
|
24
|
+
</div>
|
@@ -0,0 +1,44 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
|
3
|
+
|
4
|
+
{% include head.html %}
|
5
|
+
|
6
|
+
<body>
|
7
|
+
<header>
|
8
|
+
{% include navbar.html %}
|
9
|
+
</header>
|
10
|
+
<div class="container">
|
11
|
+
<div class="list-content">
|
12
|
+
<div class="post-list">
|
13
|
+
<p>$ ls --pages</p>
|
14
|
+
<ul>
|
15
|
+
{% assign date_format = site.darkhack.date_format | default: "%x" %}
|
16
|
+
{% for p in site.pages %}
|
17
|
+
{% if p.title != nil and p.title != "home" %}
|
18
|
+
<li><a href="{{ p.url | relative_url }}">
|
19
|
+
-- {{ p.title }}
|
20
|
+
</a></li>
|
21
|
+
{% endif %}
|
22
|
+
{% endfor %}
|
23
|
+
</ul>
|
24
|
+
</div>
|
25
|
+
<div class="post-list">
|
26
|
+
<p>$ ls --posts</p>
|
27
|
+
<ul>
|
28
|
+
{% assign date_format = site.darkhack.date_format | default: "%x" %}
|
29
|
+
{% for p in site.posts %}
|
30
|
+
{% if p.title != nil and p.title != "home" %}
|
31
|
+
<li><a href="{{ p.url | relative_url }}">
|
32
|
+
./ [{{ p.date | default: site.time | date: date_format }}] - {{ p.title }}
|
33
|
+
</a></li>
|
34
|
+
{% endif %}
|
35
|
+
{% endfor %}
|
36
|
+
</ul>
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
</div>
|
40
|
+
<footer>
|
41
|
+
{% include footer.html %}
|
42
|
+
</footer>
|
43
|
+
</body>
|
44
|
+
</html>
|
data/_layouts/page.html
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
|
3
|
+
|
4
|
+
{% include head.html %}
|
5
|
+
|
6
|
+
<body>
|
7
|
+
<header>
|
8
|
+
{% include navbar.html %}
|
9
|
+
</header>
|
10
|
+
<div class="container">
|
11
|
+
<div class="content">{{ content }}</div>
|
12
|
+
</div>
|
13
|
+
<footer>
|
14
|
+
{% include footer.html %}
|
15
|
+
</footer>
|
16
|
+
</body>
|
17
|
+
</html>
|
data/_layouts/post.html
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
@import "_config";
|
2
|
+
|
3
|
+
.container {
|
4
|
+
width: 70%;
|
5
|
+
margin-right: auto;
|
6
|
+
margin-left: auto;
|
7
|
+
}
|
8
|
+
|
9
|
+
.content {
|
10
|
+
border-right: $border-style-content $border-thick;
|
11
|
+
border-color: $border-color;
|
12
|
+
|
13
|
+
margin-left: 0.5em;
|
14
|
+
margin-top: 2em;
|
15
|
+
margin-bottom: 2em;
|
16
|
+
|
17
|
+
overflow-wrap: break-word;
|
18
|
+
}
|
19
|
+
|
20
|
+
body {
|
21
|
+
background-color: $background-color;
|
22
|
+
color: $text-color;
|
23
|
+
font-family: $font-family;
|
24
|
+
font-size: $font-size;
|
25
|
+
|
26
|
+
h1 {
|
27
|
+
font-size: $h1-size;
|
28
|
+
font-weight: bold;
|
29
|
+
}
|
30
|
+
|
31
|
+
h2 {
|
32
|
+
font-size: $h2-size;
|
33
|
+
font-weight: bold;
|
34
|
+
}
|
35
|
+
|
36
|
+
h3 {
|
37
|
+
font-size: $h2-size;
|
38
|
+
font-weight: bold;
|
39
|
+
}
|
40
|
+
}
|
@@ -0,0 +1,68 @@
|
|
1
|
+
$quote-color: #969869;
|
2
|
+
$variable-color: #d54e53;
|
3
|
+
$type-color: #e78c45;
|
4
|
+
$attr-color: #e7c547;
|
5
|
+
$symbol-color: #b9ca4a;
|
6
|
+
$title-color: #7aa6da;
|
7
|
+
$keyword-color: #c397d8;
|
8
|
+
$background-color: #000;
|
9
|
+
$text-color: #eaeaea;
|
10
|
+
|
11
|
+
pre code.hljs {
|
12
|
+
display: block;
|
13
|
+
overflow-x: auto;
|
14
|
+
padding: 1em;
|
15
|
+
}
|
16
|
+
code.hljs {
|
17
|
+
padding: 3px 5px;
|
18
|
+
}
|
19
|
+
.hljs-comment,
|
20
|
+
.hljs-quote {
|
21
|
+
color: $quote-color;
|
22
|
+
}
|
23
|
+
.hljs-deletion,
|
24
|
+
.hljs-name,
|
25
|
+
.hljs-regexp,
|
26
|
+
.hljs-selector-class,
|
27
|
+
.hljs-selector-id,
|
28
|
+
.hljs-tag,
|
29
|
+
.hljs-template-variable,
|
30
|
+
.hljs-variable {
|
31
|
+
color: $variable-color;
|
32
|
+
}
|
33
|
+
.hljs-built_in,
|
34
|
+
.hljs-link,
|
35
|
+
.hljs-literal,
|
36
|
+
.hljs-meta,
|
37
|
+
.hljs-number,
|
38
|
+
.hljs-params,
|
39
|
+
.hljs-type {
|
40
|
+
color: $type-color;
|
41
|
+
}
|
42
|
+
.hljs-attribute {
|
43
|
+
color: $attr-color;
|
44
|
+
}
|
45
|
+
.hljs-addition,
|
46
|
+
.hljs-bullet,
|
47
|
+
.hljs-string,
|
48
|
+
.hljs-symbol {
|
49
|
+
color: $symbol-color;
|
50
|
+
}
|
51
|
+
.hljs-section,
|
52
|
+
.hljs-title {
|
53
|
+
color: $title-color;
|
54
|
+
}
|
55
|
+
.hljs-keyword,
|
56
|
+
.hljs-selector-tag {
|
57
|
+
color: $keyword-color;
|
58
|
+
}
|
59
|
+
.hljs {
|
60
|
+
background: $background-color;
|
61
|
+
color: $text-color;
|
62
|
+
}
|
63
|
+
.hljs-emphasis {
|
64
|
+
font-style: italic;
|
65
|
+
}
|
66
|
+
.hljs-strong {
|
67
|
+
font-weight: 700;
|
68
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
$background-color: #000;
|
2
|
+
$text-color: rgb(182, 182, 182);
|
3
|
+
$link-color: rgb(228, 228, 228);
|
4
|
+
$border-color: #cacaca;
|
5
|
+
$border-style: dashed;
|
6
|
+
$border-style-content: double;
|
7
|
+
$border-thick: 0.1em;
|
8
|
+
$font-family: monospace;
|
9
|
+
$font-size: 1.2em;
|
10
|
+
$h1-size: 1.1em;
|
11
|
+
$h2-size: 1.1em;
|
12
|
+
$h3-size: 1.1em;
|
@@ -0,0 +1,28 @@
|
|
1
|
+
@import "_config";
|
2
|
+
|
3
|
+
.list-content {
|
4
|
+
border-right: $border-style-content $border-thick;
|
5
|
+
border-color: $border-color;
|
6
|
+
|
7
|
+
margin: 0;
|
8
|
+
padding: 0;
|
9
|
+
}
|
10
|
+
|
11
|
+
.post-list {
|
12
|
+
margin-left: 0.5em;
|
13
|
+
margin-top: 2em;
|
14
|
+
margin-bottom: 2em;
|
15
|
+
|
16
|
+
padding: 0;
|
17
|
+
|
18
|
+
ul {
|
19
|
+
margin: 0;
|
20
|
+
padding: 0;
|
21
|
+
list-style: none;
|
22
|
+
}
|
23
|
+
|
24
|
+
a {
|
25
|
+
color: $link-color;
|
26
|
+
text-decoration: none;
|
27
|
+
}
|
28
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
@import "_config";
|
2
|
+
|
3
|
+
nav {
|
4
|
+
border-left: $border-style $border-thick;
|
5
|
+
border-right: $border-style-content $border-thick;
|
6
|
+
border-color: $border-color;
|
7
|
+
|
8
|
+
ul {
|
9
|
+
margin-left: 0;
|
10
|
+
padding-left: 0.5em;
|
11
|
+
list-style: none;
|
12
|
+
}
|
13
|
+
|
14
|
+
li {
|
15
|
+
display: inline;
|
16
|
+
}
|
17
|
+
|
18
|
+
a {
|
19
|
+
color: $link-color;
|
20
|
+
text-decoration: none;
|
21
|
+
}
|
22
|
+
}
|