darkhack 1.0.5 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ed1d127acfa0c2adfc6febadcbf8df17d785149809451e9ebfd90da9cec6a79
4
- data.tar.gz: 51867dee0cd9a360de4a64a5b05875985e927d736a79e422345df8a439bea63c
3
+ metadata.gz: 158a8fec1524eb6690be1c8797ef4d0a6f9f291417d8db54e0de2ba6d494bbc4
4
+ data.tar.gz: 040e1075abef98156e0baefc4ce6da43d26cc7df2c903dcb7077725bd9a7897f
5
5
  SHA512:
6
- metadata.gz: a0f19073ce0abb254c493b232badc9e8747087f2d420d4d1c28c2f7f5787236f303e635894520315e48605426688e723e53746629f93ff30ebed4078b5666eaa
7
- data.tar.gz: 6fe19b7bc14f2a38fa5ed08731cae5414bacae120c52e89a2c348579b472676f61d6d1fa5e7de2e5e007f516942b7a21eca6af4b71a91b7d55fd5822763f07c7
6
+ metadata.gz: 297559bc58532449d33431202ddc3a8fbd97c5f96b7675dd6f2e03d2931be230b4411ef3a51fffd8869c2185df93c7d3b46911a0e6e72c864fa6132ececb074f
7
+ data.tar.gz: dfa9cacdb3ea7c277e13a4350af368cd85b48fa493183698f91d311d7964911bb26e0accc05853b40115c30756f4454938fbdec160c3e04cf1dcf943fd9b0f08
data/_config.yml CHANGED
@@ -15,3 +15,7 @@ darkhack:
15
15
  "%x"
16
16
 
17
17
  theme: darkhack
18
+
19
+ collections:
20
+ disclosures:
21
+ output: true
@@ -3,6 +3,8 @@
3
3
 
4
4
  {% include head.html %}
5
5
 
6
+ {% assign date_format = site.darkhack.date_format | default: "%x" %}
7
+
6
8
  <body>
7
9
  <header>
8
10
  {% include navbar.html %}
@@ -12,26 +14,42 @@
12
14
  <div class="post-list">
13
15
  <p>$ ls --pages</p>
14
16
  <ul>
15
- {% assign date_format = site.darkhack.date_format | default: "%x" %}
16
17
  {% for p in site.pages %}
17
- {% if p.title != nil and p.title != "home" %}
18
+ {% if p.title != nil and p.title != "home" and p.title != "404" %}
19
+ {% if p.layout == "page" %}
18
20
  <li><a href="{{ p.url | relative_url }}">
19
21
  -- {{ p.title }}
20
22
  </a></li>
21
23
  {% endif %}
24
+ {% endif %}
22
25
  {% endfor %}
23
26
  </ul>
24
27
  </div>
25
28
  <div class="post-list">
26
29
  <p>$ ls --posts</p>
27
30
  <ul>
28
- {% assign date_format = site.darkhack.date_format | default: "%x" %}
29
31
  {% for p in site.posts %}
30
32
  {% if p.title != nil and p.title != "home" %}
33
+ {% if p.layout == "post" %}
31
34
  <li><a href="{{ p.url | relative_url }}">
32
35
  ./ [{{ p.date | default: site.time | date: date_format }}] - {{ p.title }}
33
36
  </a></li>
34
37
  {% endif %}
38
+ {% endif %}
39
+ {% endfor %}
40
+ </ul>
41
+ </div>
42
+ <div class="post-list">
43
+ <p>$ ls --disclosures</p>
44
+ <ul>
45
+ {% for p in site.disclosures %}
46
+ {% if p.title != nil and p.title != "home" %}
47
+ {% if p.layout == "disclosure" %}
48
+ <li><a href="{{ p.url | relative_url }}">
49
+ ./ [{{ p.date | default: site.time | date: date_format }}] - {{ p.title }}
50
+ </a></li>
51
+ {% endif %}
52
+ {% endif %}
35
53
  {% endfor %}
36
54
  </ul>
37
55
  </div>
@@ -0,0 +1,18 @@
1
+ ---
2
+ layout: page
3
+ ---
4
+
5
+ {% assign date_format = site.darkhack.date_format | default: "%x" %}
6
+
7
+ <div class="ruler">==================================</div>
8
+ <div class="disclosure">
9
+ <ul>
10
+ <li>Release date: {{ page.date | default:site.time | date: date_format }}</li>
11
+ <li>Vulnerability type: {{ page.vuln_type }}</li>
12
+ <li>Severity: {{ page.severity }}</li>
13
+ <li>{{ page.cve }}</li>
14
+ </ul>
15
+ </div>
16
+ <div class="ruler">==================================</div>
17
+
18
+ {{ content }}
@@ -17,9 +17,16 @@
17
17
 
18
18
  padding-right: 1em;
19
19
 
20
+ overflow-x: hidden;
20
21
  overflow-wrap: break-word;
21
22
  }
22
23
 
24
+ .ruler {
25
+ margin: 0;
26
+ padding: 0;
27
+ overflow: hidden;
28
+ }
29
+
23
30
  body {
24
31
  background-color: $background-color;
25
32
  color: $text-color;
@@ -40,4 +47,20 @@ body {
40
47
  font-size: $h2-size;
41
48
  font-weight: bold;
42
49
  }
50
+
51
+ a {
52
+ color: $link-color;
53
+ }
54
+
55
+ img {
56
+ max-width: 95%;
57
+ overflow: hidden;
58
+ }
43
59
  }
60
+
61
+ mjx-container {
62
+ display: inline-grid;
63
+ overflow-x: auto;
64
+ overflow-y: hidden;
65
+ max-width: 100%;
66
+ }
@@ -5,7 +5,12 @@
5
5
  border-color: $border-color;
6
6
 
7
7
  margin: 0;
8
- padding: 0;
8
+
9
+ padding-right: 1em;
10
+
11
+ overflow-x: hidden;
12
+ overflow-wrap: break-word;
13
+
9
14
  }
10
15
 
11
16
  .post-list {
@@ -25,4 +30,25 @@
25
30
  color: $link-color;
26
31
  text-decoration: none;
27
32
  }
28
- }
33
+ }
34
+
35
+ .disclosure {
36
+ margin-left: 1.0em;
37
+ margin-top: 0.1em;
38
+ margin-bottom: 0.1em;
39
+
40
+ padding: 0;
41
+
42
+ ul {
43
+ margin-top: 0.2em;
44
+ margin-bottom: 0.2em;
45
+
46
+ padding: 0.2em;
47
+
48
+ list-style: symbols(cyclic "-");
49
+
50
+ li {
51
+ padding: 0.1em;
52
+ }
53
+ }
54
+ }
@@ -0,0 +1,8 @@
1
+ @import "_config";
2
+
3
+ mjx-container {
4
+ display: inline-grid;
5
+ overflow-x: auto;
6
+ overflow-y: hidden;
7
+ max-width: 100%;
8
+ }
@@ -1,6 +1,7 @@
1
1
  @import
2
2
  "_base",
3
3
  "_code",
4
+ "_math",
4
5
  "_navbar",
5
6
  "_listing"
6
7
  ;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: darkhack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul David
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-25 00:00:00.000000000 Z
11
+ date: 2022-01-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -38,12 +38,14 @@ files:
38
38
  - _includes/head.html
39
39
  - _includes/navbar.html
40
40
  - _layouts/default.html
41
+ - _layouts/disclosure.html
41
42
  - _layouts/page.html
42
43
  - _layouts/post.html
43
44
  - _sass/darkhack/_base.scss
44
45
  - _sass/darkhack/_code.scss
45
46
  - _sass/darkhack/_config.scss
46
47
  - _sass/darkhack/_listing.scss
48
+ - _sass/darkhack/_math.scss
47
49
  - _sass/darkhack/_navbar.scss
48
50
  - _sass/darkhack/main.scss
49
51
  - assets/css/style.scss