Skip to content

Commit 708ffa3

Browse files
committed
Update Jekyll and Ruby, sidebar
1 parent a8ddc09 commit 708ffa3

File tree

14 files changed

+90
-42
lines changed

14 files changed

+90
-42
lines changed

Gemfile.lock

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
addressable (2.8.4)
5-
public_suffix (>= 2.0.2, < 6.0)
4+
addressable (2.8.7)
5+
public_suffix (>= 2.0.2, < 7.0)
6+
bigdecimal (3.1.8)
67
colorator (1.1.0)
7-
concurrent-ruby (1.2.2)
8+
concurrent-ruby (1.3.4)
89
em-websocket (0.5.3)
910
eventmachine (>= 0.12.9)
1011
http_parser.rb (~> 0)
1112
eventmachine (1.2.7)
12-
ffi (1.15.5)
13+
ffi (1.17.0-x86_64-linux-gnu)
1314
forwardable-extended (2.6.0)
14-
google-protobuf (3.23.2-x86_64-linux)
15+
google-protobuf (4.28.3-x86_64-linux)
16+
bigdecimal
17+
rake (>= 13)
1518
http_parser.rb (0.8.0)
16-
i18n (1.13.0)
19+
i18n (1.14.6)
1720
concurrent-ruby (~> 1.0)
18-
jekyll (4.3.2)
21+
jekyll (4.3.4)
1922
addressable (~> 2.4)
2023
colorator (~> 1.0)
2124
em-websocket (~> 0.5)
@@ -44,29 +47,30 @@ GEM
4447
kramdown-parser-gfm (1.1.0)
4548
kramdown (~> 2.0)
4649
liquid (4.0.4)
47-
listen (3.8.0)
50+
listen (3.9.0)
4851
rb-fsevent (~> 0.10, >= 0.10.3)
4952
rb-inotify (~> 0.9, >= 0.9.10)
5053
mercenary (0.4.0)
51-
minima (2.5.1)
54+
minima (2.5.2)
5255
jekyll (>= 3.5, < 5.0)
5356
jekyll-feed (~> 0.9)
5457
jekyll-seo-tag (~> 2.1)
5558
pathutil (0.16.2)
5659
forwardable-extended (~> 2.6)
57-
public_suffix (5.0.1)
60+
public_suffix (6.0.1)
61+
rake (13.2.1)
5862
rb-fsevent (0.11.2)
59-
rb-inotify (0.10.1)
63+
rb-inotify (0.11.1)
6064
ffi (~> 1.0)
61-
rexml (3.2.5)
62-
rouge (4.1.1)
65+
rexml (3.3.9)
66+
rouge (4.4.0)
6367
safe_yaml (1.0.5)
64-
sass-embedded (1.62.1-x86_64-linux-gnu)
65-
google-protobuf (~> 3.21)
68+
sass-embedded (1.80.5-x86_64-linux-gnu)
69+
google-protobuf (~> 4.28)
6670
terminal-table (3.0.2)
6771
unicode-display_width (>= 1.1.1, < 3)
68-
unicode-display_width (2.4.2)
69-
webrick (1.8.1)
72+
unicode-display_width (2.6.0)
73+
webrick (1.9.0)
7074

7175
PLATFORMS
7276
x86_64-linux

_config.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ description: >- # this means to ignore newlines until "baseurl:"
2424
a work in progress
2525
baseurl: "" # the subpath of your site, e.g. /blog
2626
url: "https://svbnet.co" # the base hostname & protocol for your site, e.g. http://example.com
27-
twitter_username: svbnet
28-
github_username: svbnet
27+
permalink: /posts/:year/:month/:day/:title
2928

3029
# Build settings
3130
theme: minima

_includes/footer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
</svg><span>Subscribe</span>
1212
</a>
1313
</p>
14+
{{ site.email }}
1415
{%- if site.author %}
1516
<ul class="contact-list">
1617
{% if site.author.name -%}

_includes/header.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,18 @@ <h1>
1111

1212
{%- if titles_size > 0 -%}
1313
<nav class="site-nav">
14+
<a class="page-link bevelled" href="{{ "/" | relative_url }}"><img src="/assets/images/theme/home.gif">Home</a>
1415
{%- for path in page_paths -%}
1516
{%- assign my_page = site.pages | where: "path", path | first -%}
1617
{%- assign bull_file = my_page.bullet | default: 'bullet' -%}
1718
{%- if my_page.title -%}
18-
<a class="page-link" href="{{ my_page.url | relative_url }}"><img src="/assets/images/theme/{{ bull_file }}.gif">{{ my_page.title | escape }}</a>
19+
<a class="page-link bevelled" href="{{ my_page.url | relative_url }}"><img src="/assets/images/theme/{{ bull_file }}.gif">{{ my_page.title | escape }}</a>
1920
{%- endif -%}
2021
{%- endfor -%}
22+
<hr class="chain">
23+
<a class="page-link bevelled" target="_blank" href="https://github.com/svbnet">GitHub</a>
24+
<a class="page-link bevelled" target="_blank" href="https://www.youtube.com/@svbnet">YouTube</a>
25+
<a class="page-link bevelled" target="_blank" href="https://bsky.app/profile/svbnet.co">Bluesky</a>
2126
</nav>
2227
{%- endif -%}
2328
</header>

_layouts/home.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,13 @@ <h2 class="post-list-heading">{{ page.list_title }}</h2>
2626
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
2727
{%- for post in posts -%}
2828
<li>
29-
<span class="post-meta">{{ post.date | date: date_format }}</span>
29+
<time class="post-meta" datetime="{{ post.date }}">{{ post.date | date: date_format }}</time>
3030
<h3>
3131
<a class="post-link" href="{{ post.url | relative_url }}">
3232
{{ post.title | escape }}
3333
</a>
3434
</h3>
35-
{%- if site.show_excerpts -%}
36-
{{ post.excerpt }}
37-
{%- endif -%}
35+
<span class="post-excerpt">{{ post.excerpt }}</span>
3836
</li>
3937
{%- endfor -%}
4038
</ul>

_layouts/post.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,11 @@ <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}
2626
{%- endif -%}</p>
2727
</header>
2828

29+
<hr class="rainbow">
30+
2931
<div class="post-content e-content" itemprop="articleBody">
3032
{{ content }}
3133
</div>
3234

33-
{%- if site.disqus.shortname -%}
34-
{%- include disqus_comments.html -%}
35-
{%- endif -%}
36-
3735
<a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
3836
</article>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
layout: post
3+
title: "This is another post"
4+
date: 2023-05-29 21:33:38 +1200
5+
---
6+
You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated.
7+
8+
Jekyll requires blog post files to be named according to the following format:
9+
10+
`YEAR-MONTH-DAY-title.MARKUP`
11+
12+
Where `YEAR` is a four-digit number, `MONTH` and `DAY` are both two-digit numbers, and `MARKUP` is the file extension representing the format used in the file. After that, include the necessary front matter. Take a look at the source for this post to get an idea about how it works.
13+
14+
Jekyll also offers powerful support for code snippets:
15+
16+
{% highlight ruby %}
17+
def print_hi(name)
18+
puts "Hi, #{name}"
19+
end
20+
print_hi('Tom')
21+
#=> prints 'Hi, Tom' to STDOUT.
22+
{% endhighlight %}
23+
24+
Check out the [Jekyll docs][jekyll-docs] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll Talk][jekyll-talk].
25+
26+
[jekyll-docs]: https://jekyllrb.com/docs/home
27+
[jekyll-gh]: https://github.com/jekyll/jekyll
28+
[jekyll-talk]: https://talk.jekyllrb.com/

_sass/retro/_base.scss

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ hr {
7575
height: 27px;
7676
background-image: url('/assets/images/theme/colorsqu.gif');
7777
}
78+
79+
&.chain {
80+
@include image-hr();
81+
height: 17px;
82+
background-image: url('/assets/images/theme/chain.gif');
83+
}
7884
}
7985

8086
/**
@@ -304,3 +310,22 @@ table {
304310
-ms-overflow-style: -ms-autohiding-scrollbar;
305311
}
306312
}
313+
314+
.bevelled {
315+
color: #333;
316+
background: #ccc;
317+
$border-size: 3px;
318+
border: $border-size solid transparent;
319+
$top-left-color: #eee;
320+
$bottom-right-color: #444;
321+
border-color: $top-left-color $bottom-right-color $bottom-right-color $top-left-color;
322+
323+
&:active {
324+
border-color: $bottom-right-color $top-left-color $top-left-color $bottom-right-color;
325+
326+
}
327+
}
328+
329+
a.bevelled {
330+
color: #333;
331+
}

_sass/retro/_layout.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.aside-header {
22
grid-row: 1;
33
grid-column: 1;
4+
margin-left: 5px;
45
}
56

67
.site-footer {

_sass/retro/boot.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
$base-font-family: "Garamond", "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji", "Times New Roman", serif !default;
66
$code-font-family: "Menlo", "Inconsolata", "Consolas", "Roboto Mono", "Ubuntu Mono", "Liberation Mono", "Courier New", monospace;
7-
$base-font-size: 16px !default;
7+
$base-font-size: 18px !default;
88
$base-font-weight: 400 !default;
99
$small-font-size: $base-font-size * 0.875 !default;
1010
$med-font-size: $base-font-size * 1.5 !default;

0 commit comments

Comments
 (0)