Browse Source

first attempt at using IPFS for avatar

Closes #128

And as I didn't fix the tests...

[CI SKIP]
remotes/blesmrt/master
Mikaela Suomalainen 4 months ago
parent
commit
b07284f55c
Signed by: Mikaela Suomalainen <mikaela+git@mikaela.info> GPG Key ID: 0C207F07B2F32B67
3 changed files with 7 additions and 6 deletions
  1. 2
    1
      _config.yml
  2. 3
    3
      _includes/head.html
  3. BIN
      avatar.jpeg

+ 2
- 1
_config.yml View File

@@ -28,7 +28,8 @@ sitemap:
28 28
     file: "/sitemap.xml"
29 29
 include: [PGP, PHP, keybase.txt, robots.txt, avatar.jpeg]
30 30
 
31
-avatar: https://media.githubusercontent.com/media/Mikaela/mikaela.github.io/master/avatar.jpeg
31
+avatar: https://cloudflare-ipfs.com/ipfs/QmbRqyJteL8qyYefSMgVBWUEKoXRNQL7q61xhcJeoRr35h/250x250.jpg
32
+icon: https://cloudflare-ipfs.com/ipfs/Qma7jaHDBkGk6aEuJEbbCaqgykUrn1X8XhtZ2nMbrYgVKv/128x128.jpg
32 33
 
33 34
 # {{site.ipfs}}/IPFSHASHHERE to get ipfs link via gateway. Hopefully future
34 35
 # proof letting me simply swap the link here instead of changing it

+ 3
- 3
_includes/head.html View File

@@ -2,7 +2,7 @@
2 2
   <meta charset="utf-8">
3 3
   <meta http-equiv="X-UA-Compatible" content="IE=edge">
4 4
   <meta name="viewport" content="width=device-width, initial-scale=1">
5
-  <link rel="icon" href="{{site.avatar}}">
5
+  <link rel="icon" href="{{site.icon}}">
6 6
   <title>{% if page.title %}{{ page.title }} ~~ {{ site.title }}{% else %}{{ site.title }}{% endif %}</title>
7 7
   <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description | nstrip_html | strip_newlines }}{% endif %}">
8 8
 
@@ -19,11 +19,11 @@
19 19
  <!--  <meta name="twitter:site" content="@Inaneierase" /> -->
20 20
  <meta name="twitter:title" content="{% if page.title %}{{ page.title }} ~~ {{ site.title }}{% else %}{{ site.title }}{% endif %}" />
21 21
  <meta name="twitter:description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description | nstrip_html | strip_newlines }}{% endif %}" />
22
- <meta name="twitter:image" content="{{site.avatar}}"/>
22
+ <meta name="twitter:image" content="{{site.icon}}"/>
23 23
  <!-- OpenGraph -->
24 24
  <meta name="og:title" content="{% if page.title %}{{ page.title }} ~~ {{ site.title }}{% else %}{{ site.title }}{% endif %}" />
25 25
  <meta name="og:description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description | nstrip_html | strip_newlines }}{% endif %}" />
26 26
  <meta name="og:site_name" content="MikaelaDotInfo" />
27
- <meta name="og:image" content="{{site.avatar}}"/>
27
+ <meta name="og:image" content="{{site.icon}}"/>
28 28
  <meta name="flattr:id" content="7j1ne6">
29 29
 </head>

BIN
avatar.jpeg (Stored with Git LFS) View File

2
+oid sha256:b6e5bf10b6d549dc84771e3aeb702a9ddd3b3a0ecddb0be1fc2361245452ca09
3
+size 24439

Loading…
Cancel
Save