Skip to content

Commit fda5320

Browse files
committed
🧹
1 parent 2296d50 commit fda5320

File tree

16 files changed

+41
-294
lines changed

16 files changed

+41
-294
lines changed

404.html

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@
22
permalink: /404.html
33
title: Page Not Found
44
robots: noindex
5+
class: error
56
---
6-
<div id="error">
7-
<div>
8-
<h1>
9-
<i class="far fa-frown"></i><br />
10-
{{ page.title }}
11-
</h1>
12-
<a href="/">Click here to get to the home page</a>
13-
</div>
14-
</div>
7+
<main class="error">
8+
<section>
9+
<a href="{{ '/' | relative_url }}">Click here to get to the start page</a>
10+
</section>
11+
</main>

_config.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,6 @@ defaults:
5454
path: assets/**/*.*
5555
values:
5656
sitemap: false
57-
- scope:
58-
path: contact.html
59-
values:
60-
sitemap: false
61-
- scope:
62-
path: swatch.html
63-
values:
64-
sitemap: false
6557

6658
readme_index:
6759
enabled: false

_data/formats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
url: /assets/henrik-becker.docx
44
- name: Markdown
55
mime_type: text/markdown
6-
url: /assets/henrik-becker.txt
6+
url: /assets/henrik-becker.md
77
- name: JSON
88
mime_type: application/json
99
url: /assets/henrik-becker.json

_includes/footer.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ <h5>{{ company.name }}</h5>
2323
</address>
2424
{% comment %}<div>Org.nr: 559120-2147</div>
2525
<div>VAT: {{ company.vatId }}</div>{% endcomment %}
26-
{% comment %}<div class="no-print">{% for social in profile['same_as'] %}<a href="{{ social.url }}" title="{{ social.network }}"><i class="fab fa-{{ social.network | downcase }}"></i></a>{% endfor %}</div>{% endcomment %}
2726
</section>
2827
<section id="about" data-source="{{ page.url | absolute_url }}#about" class="no-print">
2928
<h5>About {{ person.givenName }}</h5>

_includes/header.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
</picture>
88
</div>
99
<div>
10-
<h1><a href="{{ '/' | relative_url }}">Henrik Becker</a></h1>
11-
<p>Senior Software Engineer</p>
10+
<h1><a href="{{ '/' | relative_url }}">{% unless page.title %}Henrik Becker{% else %}{{ page.title }}{% endunless %}</a></h1>
11+
{% unless page.title %}<p>Senior Software Engineer</p>{% endunless %}
1212
<section class="print" id="social" data-source="{{ page.url | absolute_url }}#education">
1313
<h2 class="hidden">Social</h2>
1414
<ul>

_layouts/page.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: null
33
---
4-
<!DOCTYPE html>{% assign company = site.data['organization'] %}{% assign person = site.data['person'] %}{% assign profile = site.data['profile'] %}{% assign page_class = page.name | lcase | split: "." | slice: 0, 1 | first %}
4+
<!DOCTYPE html>{% assign company = site.data['organization'] %}{% assign person = site.data['person'] %}{% assign profile = site.data['profile'] %}{% assign page_name = page.name | lcase | split: "." | slice: 0, 1 | first %}
55
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
66
<head>
77
<meta charset="utf-8" />
@@ -11,21 +11,21 @@
1111
{% endfor %}
1212
<link rel="apple-touch-icon" href="{{ '/favicon.png' | absolute_url }}">
1313
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.9.0/css/all.min.css" integrity="sha512-q3eWabyZPc1XTCmF+8/LuE1ozpg5xxn7iO89yfSOd5/oKvyqLngoNGsx8jq92Y8eXJ/IRxQbEC+FGSYxtk2oiw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
14-
<link rel="preconnect" href="https://fonts.gstatic.com" />
15-
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&display=swap" />
16-
{% comment %}<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet">{% endcomment %}
14+
<link rel="preconnect" href="https://fonts.googleapis.com">
15+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
16+
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700" rel="stylesheet">
1717
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/handiman/henrikbecker.net.chat.ui@0.0.23/dist/collection/cv-chat.css" />
1818
<link rel="stylesheet" href="{{ '/assets/main.css' | absolute_url }}" />
1919
<script type="module">
2020
import { defineCustomElements } from 'https://cdn.jsdelivr.net/gh/handiman/henrikbecker.net.chat.ui@0.0.23/dist/esm/loader.js';
2121
defineCustomElements();
2222
</script>
2323
</head>
24-
<body class="{{ page_class }} {{ page.layout }}">
24+
<body class="{{ page_name }} {{ page.layout }} {{ page.class}}">
2525
{% include header.html %}
2626
{{ content }}
2727
{% include footer.html %}
2828
<button class="theme-toggle" title="Toggle dark mode">.</button>
29-
<script src="{{ '/assets/main.js' | relative_url }}"></script>
29+
<script src="{{ '/assets/main.js' | absolute_url }}"></script>
3030
</body>
3131
</html>

_sass/_layout-default.scss

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,4 +193,23 @@ body>header, body>footer, nav.sticky {
193193
}
194194
}
195195
}
196-
}
196+
}
197+
198+
/* Hacks */
199+
body.error {
200+
a {
201+
color: var(--color-footer-text);
202+
}
203+
background: radial-gradient(
204+
circle at center,
205+
var(--gradient) 40%,
206+
var(--gradient-alt) 90%
207+
);
208+
> header, > footer, nav.sticky {
209+
background: transparent;
210+
}
211+
picture img {
212+
filter: grayscale(1) brightness(1) invert(0.85);
213+
opacity: 0.85;
214+
}
215+
}

0 commit comments

Comments
 (0)