Skip to content

Commit 1ec9a95

Browse files
committed
fix: new article for May 1
1 parent 481d3d2 commit 1ec9a95

4,627 files changed

Lines changed: 964 additions & 502759 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ _site
44
.jekyll-metadata
55
vendor
66
Gemfile.lock
7+
/node_modules

Gemfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ gem 'webrick'
55
gem 'jekyll-feed'
66
gem 'jekyll-postcss'
77
gem 'jekyll-seo-tag'
8-
gem 'jemoji'
8+
gem 'jemoji'
9+
gem 'jekyll-paginate-v2'

_config.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,66 @@ include:
2626
- _post
2727

2828
plugins:
29+
- jekyll-paginate-v2
2930
- jekyll-feed
3031
- jekyll-seo-tag
3132
- jekyll-postcss
3233
- jemoji
3334

3435
postcss:
3536
cache: false
37+
38+
pagination:
39+
40+
# Site-wide kill switch, disabled here it doesn't run at all
41+
enabled: true
42+
43+
# Set to 'true' to enable pagination debugging. This can be enabled in the site config or only for individual pagination pages
44+
debug: false
45+
46+
# The default document collection to paginate if nothing is specified ('posts' is default)
47+
collection: 'posts'
48+
49+
# How many objects per paginated page, used to be `paginate` (default: 0, means all)
50+
per_page: 9
51+
52+
# The permalink structure for the paginated pages (this can be any level deep)
53+
permalink: '/page/:num/' # Pages are index.html inside this folder (default)
54+
#permalink: '/page/:num.html' # Pages are simple html files
55+
#permalink: '/page/:num' # Pages are html files, linked jekyll extensionless permalink style.
56+
57+
# Optional the title format for the paginated pages (supports :title for original page title, :num for pagination page number, :max for total number of pages)
58+
title: ':title - page :num'
59+
60+
# Limit how many pagenated pages to create (default: 0, means all)
61+
limit: 0
62+
63+
# Optional, defines the field that the posts should be sorted on (omit to default to 'date')
64+
sort_field: 'date'
65+
66+
# Optional, sorts the posts in reverse order (omit to default decending or sort_reverse: true)
67+
sort_reverse: true
68+
69+
# Optional, the default category to use, omit or just leave this as 'posts' to get a backwards-compatible behavior (all posts)
70+
category: 'posts'
71+
72+
# Optional, the default tag to use, omit to disable
73+
tag: ''
74+
75+
# Optional, the default locale to use, omit to disable (depends on a field 'locale' to be specified in the posts,
76+
# in reality this can be any value, suggested are the Microsoft locale-codes (e.g. en_US, en_GB) or simply the ISO-639 language code )
77+
locale: ''
78+
79+
# Optional,omit or set both before and after to zero to disable.
80+
# Controls how the pagination trail for the paginated pages look like.
81+
trail:
82+
before: 2
83+
after: 2
84+
85+
# Optional, the default file extension for generated pages (e.g html, json, xml).
86+
# Internally this is set to html by default
87+
extension: html
88+
89+
# Optional, the default name of the index file for generated pages (e.g. 'index.html')
90+
# Without file extension
91+
indexpage: 'index'

_includes/comments.html

Lines changed: 450 additions & 187 deletions
Large diffs are not rendered by default.

_includes/head.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
{% else %}
6262
{% seo %}
6363
{% endif %}
64+
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
6465
<link href="{{ '/assets/main.css' | relative_url }}" rel="stylesheet" />
6566
<link href="{{ '/assets/lights.css?v=2' | relative_url }}" rel="stylesheet" />
6667
<script src="https://cdn.jsdelivr.net/npm/simple-jekyll-search@latest/dest/simple-jekyll-search.min.js"></script>

_includes/nav.html

Lines changed: 8 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{% include search.html %}
2-
<nav class="bg-transparent">
2+
<div class="sticky top-3 z-10 px-3 sm:px-6">
3+
<nav
4+
class="max-w-7xl mx-auto bg-white/80 dark:bg-neutral-800/80 backdrop-blur-md border border-neutral-200/70 dark:border-neutral-700/60 shadow-md shadow-neutral-900/5 dark:shadow-neutral-900/30 rounded-2xl"
5+
>
36
<div id="lights" class="hidden"></div>
4-
<div class="mx-auto max-w-7xl px-2 sm:px-6 lg:px-8">
5-
<div class="relative flex h-16 items-center justify-between">
7+
<div class="px-4 sm:px-6">
8+
<div class="relative flex h-14 items-center justify-between">
69
<div class="flex justify-center sm:items-stretch sm:justify-start">
710
<a href="{{ site.baseurl }}/" class="flex shrink-0 items-center">
811
<img
@@ -11,59 +14,6 @@
1114
/>
1215
<p class="ml-4 dark:text-gray-100 font-bold">Beaver Blog</p>
1316
</a>
14-
<div class="hidden sm:ml-6 sm:block">
15-
<div class="flex space-x-4">
16-
<a
17-
href="https://bsky.app/profile/beavernotes.com"
18-
class="group rounded-md dark:text-neutral-100 hover:bg-blue-400 hover:bg-opacity-20 p-2 text-sm font-medium dark:text-white"
19-
>
20-
<i
21-
class="fa-brands fa-bluesky fa-xl group-hover:text-blue-400"
22-
></i>
23-
</a>
24-
25-
<a
26-
href="https://mastodon.social/@Beavernotes"
27-
class="group rounded-md dark:text-neutral-100 hover:bg-[#6364FF] hover:bg-opacity-20 p-2 text-sm font-medium dark:text-white"
28-
>
29-
<i
30-
class="fa-brands fa-mastodon fa-xl group-hover:text-[#6364FF]"
31-
></i>
32-
</a>
33-
34-
<a
35-
href="https://www.reddit.com/r/BeaverNotes"
36-
class="group rounded-md dark:text-neutral-100 hover:bg-[#FF4500] hover:bg-opacity-20 p-2 text-sm font-medium dark:text-white"
37-
>
38-
<i
39-
class="fa-brands fa-reddit fa-xl group-hover:text-[#FF4500]"
40-
></i>
41-
</a>
42-
43-
<a
44-
href="https://x.com/BeaverNotes"
45-
class="group rounded-md dark:text-neutral-100 hover:bg-[#1DA1F5] hover:bg-opacity-20 p-2 text-sm font-medium dark:text-white"
46-
>
47-
<i
48-
class="fa-brands fa-twitter fa-xl group-hover:text-[#1DA1F2]"
49-
></i>
50-
</a>
51-
52-
<a
53-
href="https://docs.beavernotes.com"
54-
class="group rounded-md dark:text-neutral-100 hover:bg-amber-400 hover:bg-opacity-20 p-2 text-sm font-medium dark:text-white"
55-
>
56-
<i class="fa-solid fa-book fa-xl group-hover:text-amber-400"></i>
57-
</a>
58-
59-
<a
60-
href="{{site.url}}/feed.xml"
61-
class="group rounded-md dark:text-neutral-100 hover:bg-amber-400 hover:bg-opacity-20 p-2 text-sm font-medium dark:text-white"
62-
>
63-
<i class="fa-solid fa-rss fa-xl group-hover:text-amber-400"></i>
64-
</a>
65-
</div>
66-
</div>
6717
</div>
6818
<!-- Search Icon Button -->
6919
<button
@@ -87,60 +37,6 @@
8737
></i>
8838
</button>
8939
</div>
90-
91-
<!-- Share Buttons Container -->
92-
<div class="sm:hidden">
93-
<div class="flex justify-center">
94-
<a
95-
href="https://bsky.app/profile/beavernotes.com"
96-
class="group rounded-md dark:text-neutral-100 hover:bg-blue-400 hover:bg-opacity-20 p-2 text-sm font-medium dark:text-white"
97-
>
98-
<i class="fa-brands fa-bluesky fa-xl group-hover:text-blue-400"></i>
99-
</a>
100-
101-
<a
102-
href="https://mastodon.social/@Beavernotes"
103-
class="group rounded-md dark:text-neutral-100 hover:bg-[#6364FF] hover:bg-opacity-20 p-2 text-sm font-medium dark:text-white"
104-
>
105-
<i class="fa-brands fa-mastodon fa-xl group-hover:text-[#6364FF]"></i>
106-
</a>
107-
108-
<a
109-
href="https://www.reddit.com/r/BeaverNotes"
110-
class="group rounded-md dark:text-neutral-100 hover:bg-[#FF4500] hover:bg-opacity-20 p-2 text-sm font-medium dark:text-white"
111-
>
112-
<i class="fa-brands fa-reddit fa-xl group-hover:text-[#FF4500]"></i>
113-
</a>
114-
115-
<a
116-
href="https://x.com/BeaverNotes"
117-
class="group rounded-md dark:text-neutral-100 hover:bg-[#1DA1F5] hover:bg-opacity-20 p-2 text-sm font-medium dark:text-white"
118-
>
119-
<i class="fa-brands fa-twitter fa-xl group-hover:text-[#1DA1F2]"></i>
120-
</a>
121-
122-
<a
123-
href="https://docs.beavernotes.com"
124-
class="group rounded-md dark:text-neutral-100 hover:bg-amber-400 hover:bg-opacity-20 p-2 text-sm font-medium dark:text-white"
125-
>
126-
<i class="fa-solid fa-book fa-xl group-hover:text-amber-400"></i>
127-
</a>
128-
129-
<a
130-
href="{{site.url}}/feed.xml"
131-
class="group rounded-md dark:text-neutral-100 hover:bg-amber-400 hover:bg-opacity-20 p-2 text-sm font-medium dark:text-white"
132-
>
133-
<i class="fa-solid fa-rss fa-xl group-hover:text-amber-400"></i>
134-
</a>
135-
</div>
136-
</div>
137-
138-
<ul
139-
id="results-container"
140-
class="fixed right-0 z-40 w-80 bg-neutral-100 dark:bg-neutral-700 dark:text-neutral-100 rounded-xl overflow-auto"
141-
>
142-
<li></li>
143-
</ul>
14440
</div>
14541
<script>
14642
function toggleDarkMode() {
@@ -167,7 +63,7 @@
16763
const icon = document.getElementById("dark-mode-icon");
16864
const savedTheme = localStorage.getItem("theme");
16965
const systemPrefersDark = window.matchMedia(
170-
"(prefers-color-scheme: dark)"
66+
"(prefers-color-scheme: dark)",
17167
).matches;
17268

17369
if (savedTheme) {
@@ -230,3 +126,4 @@
230126
});
231127
</script>
232128
</nav>
129+
</div>

0 commit comments

Comments
 (0)