From 489c0f488f73f6dc1d28731cef30044f4d1b8020 Mon Sep 17 00:00:00 2001
From: "Claudio Maggioni (maggicl)"
Date: Wed, 3 Feb 2021 13:03:48 +0100
Subject: [PATCH] Code cleanup and made external assets self-hosted
---
.gitignore | 1 +
404.html | 17 +-
README.md | 6 +-
_config.yml | 8 +
_includes/footer.html | 34 +-
_includes/head.html | 77 +-
_includes/header.html | 8 +-
_layouts/main.html | 6 +-
_layouts/page.html | 3 +-
_layouts/portfolio.html | 32 +-
_layouts/post.html | 14 +-
_portfolio/drbf.md | 3 +-
_portfolio/smarthut.md | 2 -
_portfolio/vimtok.md | 7 +-
...t-a-bluetooth-keyboard-work-with-arch.html | 94 +-
...-installing-gentoo-on-a-thinkpad-x60s.html | 105 +-
...people-launching-rm-rf-on-your-system.html | 107 +-
_sass/_base.scss | 47 +-
_sass/_layout.scss | 55 +-
_sass/_syntax-highlighting.scss | 275 +-
blog.html | 25 +-
css/font-awesome.css | 6143 +++++++++++++++++
css/ibm-plex-mono.css | 44 +
css/main.scss | 31 +-
hooks/pre-commit | 4 +
index.html | 72 +-
manifest.json | 80 +-
package-lock.json | 11 +
portfolio.html | 21 +-
webfonts/fa-brands-400.eot | Bin 0 -> 136822 bytes
webfonts/fa-brands-400.svg | 3717 ++++++++++
webfonts/fa-brands-400.ttf | Bin 0 -> 136516 bytes
webfonts/fa-brands-400.woff | Bin 0 -> 92136 bytes
webfonts/fa-brands-400.woff2 | Bin 0 -> 78472 bytes
webfonts/fa-regular-400.eot | Bin 0 -> 34350 bytes
webfonts/fa-regular-400.svg | 801 +++
webfonts/fa-regular-400.ttf | Bin 0 -> 34052 bytes
webfonts/fa-regular-400.woff | Bin 0 -> 16776 bytes
webfonts/fa-regular-400.woff2 | Bin 0 -> 13588 bytes
webfonts/fa-solid-900.eot | Bin 0 -> 204814 bytes
webfonts/fa-solid-900.svg | 5028 ++++++++++++++
webfonts/fa-solid-900.ttf | Bin 0 -> 204528 bytes
webfonts/fa-solid-900.woff | Bin 0 -> 104280 bytes
webfonts/fa-solid-900.woff2 | Bin 0 -> 80252 bytes
webfonts/ibm-plex-mono-latin-400.woff2 | Bin 0 -> 13652 bytes
webfonts/ibm-plex-mono-latin-700.woff2 | Bin 0 -> 13900 bytes
webfonts/ibm-plex-mono-latin-ext-400.woff2 | Bin 0 -> 12312 bytes
webfonts/ibm-plex-mono-latin-ext-700.woff2 | Bin 0 -> 12400 bytes
48 files changed, 16423 insertions(+), 455 deletions(-)
create mode 100644 css/font-awesome.css
create mode 100644 css/ibm-plex-mono.css
create mode 100755 hooks/pre-commit
create mode 100644 package-lock.json
create mode 100644 webfonts/fa-brands-400.eot
create mode 100644 webfonts/fa-brands-400.svg
create mode 100644 webfonts/fa-brands-400.ttf
create mode 100644 webfonts/fa-brands-400.woff
create mode 100644 webfonts/fa-brands-400.woff2
create mode 100644 webfonts/fa-regular-400.eot
create mode 100644 webfonts/fa-regular-400.svg
create mode 100644 webfonts/fa-regular-400.ttf
create mode 100644 webfonts/fa-regular-400.woff
create mode 100644 webfonts/fa-regular-400.woff2
create mode 100644 webfonts/fa-solid-900.eot
create mode 100644 webfonts/fa-solid-900.svg
create mode 100644 webfonts/fa-solid-900.ttf
create mode 100644 webfonts/fa-solid-900.woff
create mode 100644 webfonts/fa-solid-900.woff2
create mode 100644 webfonts/ibm-plex-mono-latin-400.woff2
create mode 100644 webfonts/ibm-plex-mono-latin-700.woff2
create mode 100644 webfonts/ibm-plex-mono-latin-ext-400.woff2
create mode 100644 webfonts/ibm-plex-mono-latin-ext-700.woff2
diff --git a/.gitignore b/.gitignore
index c947b0a..b5b7450 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@
.sass-cache/
_site/
.jekyll-metadata
+node_modules/
diff --git a/404.html b/404.html
index f3914aa..9f7bc92 100644
--- a/404.html
+++ b/404.html
@@ -2,17 +2,24 @@
layout: main
permalink: /404.html
---
+
404 - page not found
-If you didn't come on purpose I apologise, but the page you are searching doesn't exist.
-If you came on purpose enjoy this minimal gif
of a dancing Rick Astley.
+ If you didn't come on purpose I apologise, but the page you are searching
+ doesn't exist. If you came on purpose enjoy this minimal gif
of a
+ dancing Rick Astley.
-
+
-Thanks to Giorgio Croci
- for the gif
!
+ Thanks to Giorgio Croci for
+ the gif
!
+
diff --git a/README.md b/README.md
index b0f455e..9a798fd 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,11 @@
-
+
# maggioni.xyz
Jekyll source of website https://maggioni.xyz.
-## Licensing
+## Licensing
Content of articles is licensed under
-[CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/). HTML code is
+[CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/). HTML code is
licensed under the MIT license.
diff --git a/_config.yml b/_config.yml
index 10efff5..4fdc1b0 100644
--- a/_config.yml
+++ b/_config.yml
@@ -16,6 +16,14 @@ github_username: maggicl
future: true
# Build settings
markdown: kramdown
+exclude:
+ - hooks/
+ - node_modules/
+ - package.json
+ - package-lock.json
+ - .gitignore
collections:
portfolio:
output: true
+gems:
+ - jekyll-tidy
diff --git a/_includes/footer.html b/_includes/footer.html
index ef722c3..caed195 100644
--- a/_includes/footer.html
+++ b/_includes/footer.html
@@ -2,27 +2,31 @@
-
- Claudio Maggioni
-
-
2021
+
+ by Claudio Maggioni (last updated on {{ site.time | date: '%Y-%m-%d'
+ }})
Content under
- CC BY-NC-SA 4.0
+ CC BY-NC-SA 4.0
-{% comment %}
-vim: set ts=2 sw=2 et tw=80:{% endcomment %}
+{% comment %} vim: set ts=2 sw=2 et tw=80: {% endcomment %}
diff --git a/_includes/head.html b/_includes/head.html
index ed1386d..3cf22b7 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -1,33 +1,52 @@
-
-
-
+
+
+
- {% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}
-
+
+ {% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape
+ }}{% endif %}
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/_includes/header.html b/_includes/header.html
index 3f7607f..3c84f5a 100644
--- a/_includes/header.html
+++ b/_includes/header.html
@@ -1,12 +1,10 @@
-
- {% for my_page in site.pages %}
- {% if my_page.title %}
+ {% for my_page in site.pages %} {% if my_page.title %}
{{ my_page.title }}
- {% endif %}
- {% endfor %}
+ {% endif %} {% endfor %}
RSS
CV
Git
Cloud
+{% comment %} vim: set ts=2 sw=2 et tw=80: {% endcomment %}
diff --git a/_layouts/main.html b/_layouts/main.html
index b6e85ca..2812a9f 100644
--- a/_layouts/main.html
+++ b/_layouts/main.html
@@ -1,5 +1,3 @@
-
-
{% include head.html %}
@@ -8,7 +6,7 @@
{% include header.html %}
-
+
{{ content }}
@@ -16,3 +14,5 @@
{% include footer.html %}