ninetyeight 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c124d29879dd6f460ae3378485a59e4f6b09152cd06b43f231a0d4e2f1582f52
4
- data.tar.gz: b707dbf6c381d676993a12e0468c8fb885b33af1aa7ee17337ba830aae70f5ed
3
+ metadata.gz: a09bd945faf980688f81801aa2b4f2392f2368672826822d833c048c5ab25d86
4
+ data.tar.gz: b52ccaf0e8d2dd5356b2065588b47055747309a6b0d378bf204deefb39f2d508
5
5
  SHA512:
6
- metadata.gz: 38076f526fd4ce908f289141bd9b11b83e65bf03470e969f1d84bd9039c803fdceee5fd8b5c61468a77dcb5c351968bc7a93a194d6a88ae6fba3a69bab00c994
7
- data.tar.gz: f36898392fb1a2304c0cd9ebba47b28207653e47f953d7fbb8ab88a336caab03c9274c043b8338af47549584a8cd88423c96ac9ed4ca7775defbb4a281bda099
6
+ metadata.gz: edc657f3a1f9ca6d9fc28533adeb5b5778e4028f7736431869c2bccd759340281b38e95cafeb19b30b3e3f496f219a365fbc81a8ad1e37e5305eefba74f64b89
7
+ data.tar.gz: ff15cb88060643a0b0aaeb335f5931b63244ccb23ad125caa00819559336bacd492178adf7aeb46511de4c53836f00479a9e96adfe159d51e9247d37fef01185
data/_config.yml ADDED
@@ -0,0 +1,3 @@
1
+ plugins:
2
+ - jekyll-feed
3
+ - jekyll-seo-tag
@@ -1,23 +1,31 @@
1
1
  <!doctype html>
2
2
  <html>
3
3
  <head>
4
+
4
5
  {% if page.layout == "post" %}
5
6
  <title>Nate Stream Incubator - {{ page.title }}</title>
6
7
  {% else %}
7
8
  <title>Nate Stream Incubator</title>
8
9
  {% endif %}
10
+
9
11
  <meta charset="UTF-8" />
10
12
  <meta name="viewport" content="width=device-width, initial-scale=1">
13
+
11
14
  <link rel="preload" as="style" href="/assets/css/main.css" type="text/css" />
12
15
  <link rel="preload" as="style" href="/assets/98/98.css" type="text/css" />
13
16
  <script src="/assets/js/htmx.min.js"></script>
17
+ <script src="/assets/js/preload.min.js"></script>
14
18
 
15
19
  <link rel="stylesheet" href="/assets/css/main.css" />
16
20
  <link rel="stylesheet" href="/assets/98/98.css" />
17
21
  <link rel="icon" type="image/x-icon" href="/assets/favicon.ico">
22
+
23
+ {% seo %}
24
+ {% feed_meta %}
25
+
18
26
  </head>
19
27
 
20
- <body>
28
+ <body hx-ext="preload">
21
29
  <div class="container">
22
30
  <div class="window main">
23
31
 
@@ -32,13 +40,13 @@
32
40
 
33
41
  <div class="menu-bar">
34
42
  <div>
35
- <u>F</u>ile
43
+ <button hx-get="/" hx-target="body" hx-push-url="true" preload="preload:init"><u>H</u>ome</button>
36
44
  </div>
37
45
  <div>
38
- <u>E</u>dit
46
+ <button hx-get="/projects" hx-target="body" hx-push-url="true" preload="preload:init"><u>P</u>rojects</button>
39
47
  </div>
40
48
  <div>
41
- <u>H</u>elp
49
+ <button hx-get="/about" hx-target="body" hx-push-url="true" preload="preload:init"><u>A</u>bout</button>
42
50
  </div>
43
51
  </div>
44
52
 
data/_layouts/home.html CHANGED
@@ -2,7 +2,9 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
- <h5>Welcome to the Nate Stream Incubator!</h5>
5
+ <center>
6
+ <h4>Welcome to the Nate Stream Incubator!</h4>
7
+ </center>
6
8
 
7
9
 
8
10
  <p>⭐ Recent Posts ⭐:</p>
@@ -13,40 +15,49 @@ layout: default
13
15
  {% assign posts = site.posts %}
14
16
  {% endif %}
15
17
 
16
- {%- if posts.size > 0 -%}
17
- {%- if page.list_title -%}
18
+ {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
19
+
20
+ {% if posts.size > 0 %}
21
+ {% if page.list_title %}
18
22
  <h5 class="post-list-heading">{{ page.list_title }}</h5>
19
- {%- endif -%}
20
- <ul class="post-list">
21
- {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
22
- {%- for post in posts -%}
23
- <li>
24
- <span class="post-meta">{{ post.date | date: date_format }} -</span>
25
- <a class="post-link" href="{{ post.url | relative_url }}" hx-boost="true">
26
- {{ post.title | escape }}
27
- </a>
28
- {%- if site.show_excerpts -%}
29
- {{ post.excerpt }}
30
- {%- endif -%}
31
- </li>
32
- {%- endfor -%}
33
- </ul>
23
+ {% endif %}
34
24
 
35
- {% if site.paginate %}
36
- <div class="pager">
37
- <ul class="pagination">
38
- {%- if paginator.previous_page %}
39
- <li><a href="{{ paginator.previous_page_path | relative_url }}" class="previous-page" hx-boost="true">{{ paginator.previous_page }}</a></li>
40
- {%- else %}
41
- <li><div class="pager-edge">•</div></li>
42
- {%- endif %}
43
- <li><div class="current-page">{{ paginator.page }}</div></li>
44
- {%- if paginator.next_page %}
45
- <li><a href="{{ paginator.next_page_path | relative_url }}" class="next-page" hx-boost="true">{{ paginator.next_page }}</a></li>
46
- {%- else %}
47
- <li><div class="pager-edge">•</div></li>
48
- {%- endif %}
49
- </ul>
25
+ <div class="sunken-panel" style="min-height: 30vh;overflow: scroll;">
26
+ <table class="interactive" style="width: 100%">
27
+ <thead>
28
+ <tr>
29
+ <th>Date</th>
30
+ <th>Title</th>
31
+ <th>Author</th>
32
+ </tr>
33
+ </thead>
34
+ <tbody>
35
+ {% for post in posts %}
36
+ <tr hx-get="{{ post.url | relative_url }}" hx-target="body" hx-push-url="true" preload="preload:init">
37
+ <td>{{ post.date | date: date_format }}</td>
38
+ <td>{{ post.title | escape }}</td>
39
+ <td>{{ post.author | escape }}</td>
40
+ </tr>
41
+ {% endfor %}
42
+ </tbody>
43
+ </table>
50
44
  </div>
51
- {%- endif %}
52
- {%- endif -%}
45
+ {% endif %}
46
+
47
+ {% if site.paginate %}
48
+ <div class="pager">
49
+ <ul class="pagination">
50
+ {%- if paginator.previous_page %}
51
+ <li><a href="{{ paginator.previous_page_path | relative_url }}" class="previous-page" hx-boost="true" preload="preload:init">{{ paginator.previous_page }}</a></li>
52
+ {%- else %}
53
+ <li><div class="pager-edge">•</div></li>
54
+ {%- endif %}
55
+ <li><div class="current-page">{{ paginator.page }}</div></li>
56
+ {%- if paginator.next_page %}
57
+ <li><a href="{{ paginator.next_page_path | relative_url }}" class="next-page" hx-boost="true" preload="preload:init">{{ paginator.next_page }}</a></li>
58
+ {%- else %}
59
+ <li><div class="pager-edge">•</div></li>
60
+ {%- endif %}
61
+ </ul>
62
+ </div>
63
+ {%- endif %}
data/_layouts/page.html CHANGED
@@ -4,4 +4,4 @@ layout: default
4
4
 
5
5
  {{ content }}
6
6
 
7
- <a hx-on:click="window.history.back()" hx-boost><button>⬅️ Back</button></a>
7
+ <a hx-get="/" hx-target="body" hx-push-url="true" preload="preload:init"><button>↩ Back</button></a>
data/_layouts/post.html CHANGED
@@ -32,4 +32,4 @@ layout: default
32
32
  </tr>
33
33
  </table>
34
34
 
35
- <a hx-on:click="window.history.back()" hx-boost="true"><button>↩ Back</button></a>
35
+ <a hx-get="/" hx-target="body" hx-push-url="true"><button>↩ Back</button></a>
Binary file
Binary file
Binary file
@@ -0,0 +1 @@
1
+ htmx.defineExtension("preload",{onEvent:function(e,t){if(e!=="htmx:afterProcessNode")return;var s=function(e,t){return e==null?void 0:e.getAttribute(t)||e.getAttribute("data-"+t)||s(e.parentElement,t)},n=function(e){var t=function(t){e.preloadAlways||(e.preloadState="DONE"),s(e,"preload-images")=="true"&&(document.createElement("div").innerHTML=t)};return function(){if(e.preloadState!=="READY")return;var n,s=e.getAttribute("hx-get")||e.getAttribute("data-hx-get");if(s){htmx.ajax("GET",s,{source:e,handler:function(e,n){t(n.xhr.responseText)}});return}if(e.getAttribute("href")){n=new XMLHttpRequest,n.open("GET",e.getAttribute("href")),n.onload=function(){t(n.responseText)},n.send();return}}},o=function(e){if(e.getAttribute("href")+e.getAttribute("hx-get")+e.getAttribute("data-hx-get")=="")return;if(e.preloadState!==void 0)return;var t=s(e,"preload")||"mousedown";const o=t.indexOf("always")!==-1;switch(o&&(t=t.replace("always","").trim()),e.addEventListener(t,function(){e.preloadState==="PAUSE"&&(e.preloadState="READY",t==="mouseover"?window.setTimeout(n(e),100):n(e)())}),t){case"mouseover":e.addEventListener("touchstart",n(e)),e.addEventListener("mouseout",function(t){t.target===e&&e.preloadState==="READY"&&(e.preloadState="PAUSE")});break;case"mousedown":e.addEventListener("touchstart",n(e));break}e.preloadState="PAUSE",e.preloadAlways=o,htmx.trigger(e,"preload:init")};t.target.querySelectorAll("[preload]").forEach(function(e){o(e),e.querySelectorAll("a,[hx-get],[data-hx-get]").forEach(o)})}})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ninetyeight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bucky Wolfe
@@ -24,6 +24,34 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4.3'
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.17.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.17.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.8'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.8'
27
55
  description:
28
56
  email:
29
57
  - bucky@sonant.vn
@@ -33,6 +61,7 @@ extra_rdoc_files: []
33
61
  files:
34
62
  - LICENSE.txt
35
63
  - README.md
64
+ - _config.yml
36
65
  - _layouts/default.html
37
66
  - _layouts/home.html
38
67
  - _layouts/page.html
@@ -51,8 +80,12 @@ files:
51
80
  - assets/favicon.ico
52
81
  - assets/img/404.gif
53
82
  - assets/img/404_orig.gif
83
+ - assets/img/discord-mark-blue.png
54
84
  - assets/img/nate_retro_tile.png
85
+ - assets/img/old-fat-nate.png
86
+ - assets/img/under_construction.gif
55
87
  - assets/js/htmx.min.js
88
+ - assets/js/preload.min.js
56
89
  - assets/site.webmanifest
57
90
  homepage: https://github.com/Nate-Incubator/ninetyeight
58
91
  licenses: