Skip to content

Commit 09ca4c0

Browse files
0x7C2f0x7C2f
authored andcommitted
push
1 parent 9f8f855 commit 09ca4c0

22 files changed

+246
-102
lines changed

.github/workflows/build-jekyll.yml

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,33 @@
1-
name: Build and Deploy to Github Pages
1+
name: Build and Deploy
22

33
on:
44
push:
5-
branches:
6-
- main
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
10+
711
jobs:
812
build_and_deploy:
913
runs-on: ubuntu-latest
1014
steps:
11-
- uses: actions/checkout@v3
12-
- uses: actions/cache@v2
15+
- uses: actions/checkout@v4
16+
17+
- uses: ruby/setup-ruby@v1
1318
with:
14-
path: vendor/bundle
15-
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
16-
restore-keys: |
17-
${{ runner.os }}-gems-
18-
- uses: jeffreytse/[email protected]
19+
ruby-version: "3.2"
20+
bundler-cache: true
21+
22+
- name: Build Jekyll
23+
run: bundle exec jekyll build
24+
env:
25+
JEKYLL_ENV: production
26+
27+
- name: Deploy
28+
uses: peaceiris/actions-gh-pages@v4
1929
with:
20-
provider: 'github'
21-
token: ${{ secrets.GITHUB_TOKEN }}
22-
repository: ''
23-
branch: 'gh-pages'
24-
jekyll_src: './'
25-
jekyll_cfg: '_config.yml'
26-
jekyll_baseurl: ''
27-
bundler_ver: '>=0'
28-
cname: ''
29-
actor: ''
30-
pre_build_commands: ''
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
31+
publish_dir: ./_site
32+
publish_branch: gh-pages
33+
force_orphan: true

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ group :jekyll_plugins do
99
gem 'jekyll-mentions'
1010
gem 'jekyll-compose'
1111
gem 'jekyll-redirect-from'
12+
gem 'jekyll-seo-tag'
13+
gem 'jekyll-minifier'
1214
gem 'git'
1315
end
1416

_config.yml

Lines changed: 38 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,45 @@
11
plugins:
2-
- jekyll-feed
3-
- jekyll-tagging-related_posts
4-
- jekyll-mentions
5-
- jekyll-compose
6-
- jekyll-redirect-from
2+
- jekyll-feed
3+
- jekyll-tagging-related_posts
4+
- jekyll-mentions
5+
- jekyll-compose
6+
- jekyll-redirect-from
7+
- jekyll-seo-tag # Add for better SEO
8+
- jekyll-minifier
9+
10+
incremental: true
11+
sass:
12+
style: compressed
13+
defaults:
14+
- scope:
15+
path: ''
16+
type: 'posts'
17+
values:
18+
layout: 'post'
19+
robots: 'index, follow'
720

821
header_pages:
9-
- index.md
10-
- pages/bookmarks.md
11-
- pages/files.md
12-
- pages/about.md
22+
- index.md
23+
- pages/search.md
24+
- pages/files.md
25+
- pages/about.md
26+
- index.md
27+
- pages/bookmarks.md
28+
- pages/files.md
29+
- pages/about.md
1330

1431
include:
15-
- "files"
16-
32+
- 'files'
33+
1734
exclude:
18-
- "update.sh"
19-
- "jekyll-theme-console.gemspec"
20-
- "Rakefile"
21-
- "vendor/bundle"
35+
- 'update.sh'
36+
- 'jekyll-theme-console.gemspec'
37+
- 'Rakefile'
38+
- 'vendor/bundle'
2239

23-
footer:
24-
- 'follow on <a href="https://twitter.com/0x7C2f">Twitter</a>'
25-
- '|'
26-
- '<a href="feed.xml">RSS Feed</a>'
27-
- '|'
28-
- '<a href="https://0x7c2f.github.io/startpage/">Startpage</a>'
40+
footer:
41+
- 'follow on <a href="https://twitter.com/0x7C2f">Twitter</a>'
42+
- '|'
43+
- '<a href="feed.xml">RSS Feed</a>'
44+
- '|'
45+
- '<a href="https://0x7c2f.github.io/startpage/">Startpage</a>'

_includes/footer.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<footer>
22
{{ site.footer }}
33
<marquee scrollamount="3" loop="infinite" onmouseover="this.stop();" onmouseout="this.start();" id="webring_marquee">
4-
<a rel="nofollow" href="" target="_blank"><img src="/images/webring/decentralize.png"></a>
5-
<a rel="nofollow" href="" target="_blank"><img src="/images/webring/digdeeper.png"></a>
6-
<a rel="nofollow" href="" target="_blank"><img src="/images/webring/paranoid.gif"></a>
7-
<a rel="nofollow" href="" target="_blank"><img src="/images/webring/protonmail.png"></a>
8-
<a rel="nofollow" href="" target="_blank"><img src="/images/webring/shadow-wiki.png"></a>
9-
<a rel="nofollow" href="" target="_blank"><img src="/images/webring/sizeofcat.png"></a>
10-
<a rel="nofollow" href="" target="_blank"><img src="/images/webring/yesterweb.png"></a>
4+
<a rel="nofollow" href="" target="_blank"><img src="/images/webring/decentralize.png" alt="Decentralize webring link"></a>
5+
<a rel="nofollow" href="" target="_blank"><img src="/images/webring/digdeeper.png" alt="Dig Deeper webring link"></a>
6+
<a rel="nofollow" href="" target="_blank"><img src="/images/webring/paranoid.gif" alt="Paranoid webring link"></a>
7+
<a rel="nofollow" href="" target="_blank"><img src="/images/webring/protonmail.png" alt="ProtonMail webring link"></a>
8+
<a rel="nofollow" href="" target="_blank"><img src="/images/webring/shadow-wiki.png" alt="Shadow Wiki webring link"></a>
9+
<a rel="nofollow" href="" target="_blank"><img src="/images/webring/sizeofcat.png" alt="Size of Cat webring link"></a>
10+
<a rel="nofollow" href="" target="_blank"><img src="/images/webring/yesterweb.png" alt="Yesterweb webring link"></a>
1111
</marquee>
1212
</footer>

_includes/head.html

Lines changed: 68 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,70 @@
11
<head>
2-
3-
<meta charset="utf-8">
4-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
6-
<link rel="stylesheet" type="text/css" href="{{ "/assets/main-dark.css" | relative_url }}">
7-
<title>{{ page.title }}</title>
8-
{% if page.robots %}
9-
<meta name="robots" content="{{page.robots}}" />
10-
{% endif %}
2+
<meta charset="utf-8" />
3+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
4+
<meta
5+
name="viewport"
6+
content="width=device-width, initial-scale=1.0, maximum-scale=5.0"
7+
/>
8+
<meta http-equiv="X-Content-Type-Options" content="nosniff" />
9+
<meta http-equiv="X-Frame-Options" content="DENY" />
10+
<meta http-equiv="X-XSS-Protection" content="1; mode=block" />
11+
<meta name="referrer" content="no-referrer" />
12+
<!-- CSP here -->
13+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
14+
<link rel="stylesheet" href="{{ "/assets/main-dark.css" | relative_url }}">
15+
<link rel="preload" href="{{ "/assets/header-search.js" | relative_url }}" as="script">
16+
<title>{{ page.title | default: site.title }}</title>
17+
{% if page.robots %}
18+
<meta name="robots" content="{{ page.robots }}" />
19+
{% endif %}
20+
{% if page.description %}
21+
<meta name="description" content="{{ page.description }}" />
22+
{% endif %}
23+
<meta property="og:image" content="{{ page.image | default: '/images/profile_picture.jpg' | absolute_url }}" />
24+
<meta name="twitter:image" content="{{ page.image | default: '/images/profile_picture.jpg' | absolute_url }}" />
25+
{% if page.layout == 'post' %}
26+
<script type="application/ld+json">
27+
{
28+
"@context": "https://schema.org",
29+
"@type": "Article",
30+
"headline": "{{ page.title }}",
31+
"author": {
32+
"@type": "Person",
33+
"name": "{{ site.author | default: '0x7C2f' }}"
34+
},
35+
"datePublished": "{{ page.date | date_to_xmlschema }}",
36+
"dateModified": "{{ page.lastmod | default: page.date | date_to_xmlschema }}",
37+
"mainEntityOfPage": {
38+
"@type": "WebPage",
39+
"@id": "{{ page.url | absolute_url }}"
40+
},
41+
"publisher": {
42+
"@type": "Organization",
43+
"name": "{{ site.title | default: '0x7C2f' }}",
44+
"logo": {
45+
"@type": "ImageObject",
46+
"url": "{{ '/images/profile_picture.jpg' | absolute_url }}"
47+
}
48+
}
49+
}
50+
</script>
51+
{% else %}
52+
<script type="application/ld+json">
53+
{
54+
"@context": "https://schema.org",
55+
"@type": "WebSite",
56+
"name": "{{ site.title | default: '0x7C2f' }}",
57+
"url": "{{ site.url | default: 'https://0x7c2f.github.io' }}",
58+
"publisher": {
59+
"@type": "Organization",
60+
"name": "{{ site.title | default: '0x7C2f' }}",
61+
"logo": {
62+
"@type": "ImageObject",
63+
"url": "{{ '/images/profile_picture.jpg' | absolute_url }}"
64+
}
65+
}
66+
}
67+
</script>
68+
{% endif %}
69+
{% seo %}
1170
</head>

_includes/header.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{%- assign page_paths = site.header_pages | default: default_paths -%}
2+
<a href="#main-content" class="skip-link">Skip to main content</a>
23
<header>
34
<div class="menu">
45
<ul>
@@ -8,6 +9,7 @@
89
<li><a href="{{ my_page.url | relative_url }}">{{ my_page.title | escape}}</a> |</li>
910
{%- endif -%}
1011
{%- endfor -%}
12+
<li><input type="text" id="search-input" placeholder="Search..." aria-label="Search site content" /></li>
1113
</ul>
1214
</div>
1315
</header>

_layouts/default.html

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,35 @@
11
<!DOCTYPE html>
22
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
3-
<meta http-equiv="Content-Security-Policy" content="default-src 'none';
4-
script-src 'self' https://unpkg.com/;
5-
style-src 'self' https://fonts.googleapis.com;
6-
img-src 'self' https://unpkg.com/;
7-
font-src 'self' https://fonts.gstatic.com;
8-
connect-src 'self';
9-
media-src 'self';
10-
object-src 'self';
11-
child-src 'self';
12-
form-action 'none';
3+
<meta http-equiv="Content-Security-Policy" content="default-src 'none';
4+
script-src 'self' https://unpkg.com/;
5+
style-src 'self' https://fonts.googleapis.com;
6+
img-src 'self' https://unpkg.com/;
7+
font-src 'self' https://fonts.gstatic.com;
8+
X-Content-Type-Options: nosniff
9+
connect-src 'self';
10+
media-src 'self';
11+
object-src 'self';
12+
child-src 'self';
13+
form-action 'none';
1314
base-uri 'self'" />
1415

1516
<meta http-equiv="X-XSS-Protection" content="1;mode=block" always>
16-
<meta http-equiv="Referrer-Policy" content="no-referrer, strict-origin-when-cross-origin">
17+
<meta http-equiv="Referrer-Policy" content="no-referrer, no-referrer">
1718
{%- include head.html -%}
1819
<body>
1920
{%- include header.html -%}
2021
<div class="container">
2122
<div class="container-left">
2223
</div>
23-
<div class="container-center">
24-
<main>
24+
<div class="container-center">
25+
<main id="main-content">
2526
{{ content }}
2627
</main>
2728
<div class="container-right">
2829
</div>
2930
</div>
30-
{%- include footer.html -%}
31-
</div>
32-
</body>
31+
{%- include footer.html -%}
32+
</div>
33+
<script src="/assets/header-search.js"></script>
34+
</body>
3335
</html>

_layouts/videos.html

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
1-
<!DOCTYPE html>
2-
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
3-
<meta http-equiv="X-XSS-Protection" content="1;mode=block" always>
4-
<meta http-equiv="Referrer-Policy" content="no-referrer, strict-origin-when-cross-origin">
5-
<link rel="stylesheet" type="text/css" href="{{ "/assets/videos.css" | relative_url }}">
6-
{%- include head.html -%}
7-
<body>
8-
<div class="container">
9-
{%- include header.html -%}
10-
<main>
11-
{{ title }}
12-
<div class="videos">
13-
{% for video in site.data.videos %}
14-
<ul>
15-
<iframe src="https://www.youtube.com/embed/{{video.link}}"></iframe>
16-
</ul>
17-
{% endfor %}
18-
</div>
19-
</main>
20-
{%- include footer.html -%}
21-
</div>
22-
</body>
23-
</html>
1+
---
2+
layout: default
3+
---
4+
<link rel="stylesheet" href="{{ "/assets/videos.css" | relative_url }}">
5+
{{ content }}
6+
<div class="videos">
7+
{% for video in site.data.videos %}
8+
<iframe
9+
src="https://www.youtube-nocookie.com/embed/{{ video.link }}"
10+
title="{{ video.title | default: 'Video' }}"
11+
frameborder="0"
12+
allow="accelerometer; encrypted-media; gyroscope; picture-in-picture"
13+
allowfullscreen
14+
loading="lazy">
15+
</iframe>
16+
{% endfor %}
17+
</div>

_posts/2022-09-13-dead-children-currency.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: Dead Children Currency
33
layout: post
44
permalink: /dead-children-currency/
55
lastmod: 2022-09-14T19:44:00.317Z
6+
description: A satirical proposal for a currency based on the cost of saving children's lives, highlighting opportunity costs in spending.
67
---
78

89
# Dead children currency

0 commit comments

Comments
 (0)