feat(css): upgrade fontawsome to v6, and self-host it

This commit is contained in:
2022-11-15 11:53:56 +00:00
parent c260b133a9
commit 9edd3b81a5
12 changed files with 33 additions and 12 deletions

View File

@@ -32,32 +32,32 @@ email:
links:
- name: github
url: https://github.com/jimeh
class: fab fa-github
class: fa-brands fa-github
- name: twitter
url: https://twitter.com/jimeh
class: fab fa-twitter
class: fa-brands fa-twitter
- name: blog
url: https://jimeh.io/
class: far fa-newspaper
class: fa-solid fa-newspaper
- name: linkedin
url: https://www.linkedin.com/in/jimeh
class: fab fa-linkedin-in
class: fa-brands fa-linkedin
- name: last.fm
url: https://www.last.fm/user/jimeh
class: fab fa-lastfm
class: fa-brands fa-square-lastfm
- name: flickr
url: https://flickr.com/photos/jimeh
class: fab fa-flickr
class: fa-brands fa-flickr
- name: vcard
id: vcard
type: download
url: https://assets.jimeh.me/jim-myhrberg.vcf
class: far fa-address-card
class: fa-solid fa-address-card
- name: cv (pdf)
id: resume
type: download
url: https://jimeh.me/cv
class: fas fa-file-alt
class: fa-solid fa-file-pdf
# additional stuff
exclude:

View File

@@ -9,9 +9,12 @@
{% seo title=false %}
<link rel="shortcut icon" href="/favicon.ico?{{ site.time | date: '%s%N' }}" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png?{{ site.time | date: '%s%N' }}" />
<link href='//fonts.googleapis.com/css?family=Open+Sans+Condensed:700,300|Open+Sans:400italic,700italic,400,700' rel='stylesheet' type='text/css'>
<script src="https://kit.fontawesome.com/dc60666aeb.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}?{{ site.time | date: '%s%N' }}">
<link href='//fonts.googleapis.com/css?family=Open+Sans+Condensed:700,300|Open+Sans:400italic,700italic,400,700'
rel='stylesheet' type='text/css'>
<link href="/fa/css/fontawesome.min.css" rel="stylesheet">
<link href="/fa/css/brands.min.css" rel="stylesheet">
<link href="/fa/css/solid.min.css" rel="stylesheet">
<link rel="stylesheet" href="{{ " /css/main.css" | prepend: site.baseurl }}?{{ site.time | date: '%s%N' }}">
</head>
<body>
{{ content }}

6
fa/css/brands.min.css vendored Normal file

File diff suppressed because one or more lines are too long

6
fa/css/fontawesome.min.css vendored Normal file

File diff suppressed because one or more lines are too long

6
fa/css/solid.min.css vendored Normal file
View File

@@ -0,0 +1,6 @@
/*!
* Font Awesome Free 6.2.0 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2022 Fonticons, Inc.
*/
:host,:root{--fa-style-family-classic:"Font Awesome 6 Free";--fa-font-solid:normal 900 1em/1 "Font Awesome 6 Free"}@font-face{font-family:"Font Awesome 6 Free";font-style:normal;font-weight:900;font-display:block;src:url(../webfonts/fa-solid-900.woff2) format("woff2"),url(../webfonts/fa-solid-900.ttf) format("truetype")}.fa-solid,.fas{font-weight:900}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -12,7 +12,7 @@ layout: default
</span>
<div class="site-links">
<script type="text/javascript">
document.write("<n uers=\"{{ site.email.href }}\" bapyvpx=\"_tnd\056chfu(['_genpxRirag', 'yvaxGb', 'rznvy', guvf\056uers]);\"><v pynff=\"sn sn-rairybcr\"><\057v><fcna pynff=\"yvax-grkg\">{{ site.email.title }}<\057fcna><\057n>".replace(/[a-zA-Z]/g, function(c){return String.fromCharCode((c<="Z"?90:122)>=(c=c.charCodeAt(0)+13)?c:c-26);}));
document.write("<n uers=\"{{ site.email.href }}\" bapyvpx=\"_tnd\056chfu(['_genpxRirag', 'yvaxGb', 'rznvy', guvf\056uers]);\"><v pynff=\"sn-fbyvq sn-rairybcr\"><\057v><fcna pynff=\"yvax-grkg\">{{ site.email.title }}<\057fcna><\057n>".replace(/[a-zA-Z]/g, function (c) { return String.fromCharCode((c <= "Z" ? 90 : 122) >= (c = c.charCodeAt(0) + 13) ? c : c - 26); }));
</script>
{% for item in site.links %}
<a href="{{ item.url }}"><i class="{{ item.class }}"></i><span class="link-text">{{ item.name }}</span></a>{% endfor %}