Browse Source

first attempt at using IPFS for avatar

Closes #128

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

[CI SKIP]
master
Mikaela Suomalainen 9 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:
file: "/sitemap.xml"
include: [PGP, PHP, keybase.txt, robots.txt, avatar.jpeg]

avatar: https://media.githubusercontent.com/media/Mikaela/mikaela.github.io/master/avatar.jpeg
avatar: https://cloudflare-ipfs.com/ipfs/QmbRqyJteL8qyYefSMgVBWUEKoXRNQL7q61xhcJeoRr35h/250x250.jpg
icon: https://cloudflare-ipfs.com/ipfs/Qma7jaHDBkGk6aEuJEbbCaqgykUrn1X8XhtZ2nMbrYgVKv/128x128.jpg

# {{site.ipfs}}/IPFSHASHHERE to get ipfs link via gateway. Hopefully future
# proof letting me simply swap the link here instead of changing it

+ 3
- 3
_includes/head.html View File

@@ -2,7 +2,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="{{site.avatar}}">
<link rel="icon" href="{{site.icon}}">
<title>{% if page.title %}{{ page.title }} ~~ {{ site.title }}{% else %}{{ site.title }}{% endif %}</title>
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description | nstrip_html | strip_newlines }}{% endif %}">

@@ -19,11 +19,11 @@
<!-- <meta name="twitter:site" content="@Inaneierase" /> -->
<meta name="twitter:title" content="{% if page.title %}{{ page.title }} ~~ {{ site.title }}{% else %}{{ site.title }}{% endif %}" />
<meta name="twitter:description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description | nstrip_html | strip_newlines }}{% endif %}" />
<meta name="twitter:image" content="{{site.avatar}}"/>
<meta name="twitter:image" content="{{site.icon}}"/>
<!-- OpenGraph -->
<meta name="og:title" content="{% if page.title %}{{ page.title }} ~~ {{ site.title }}{% else %}{{ site.title }}{% endif %}" />
<meta name="og:description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description | nstrip_html | strip_newlines }}{% endif %}" />
<meta name="og:site_name" content="MikaelaDotInfo" />
<meta name="og:image" content="{{site.avatar}}"/>
<meta name="og:image" content="{{site.icon}}"/>
<meta name="flattr:id" content="7j1ne6">
</head>

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

oid sha256:b6e5bf10b6d549dc84771e3aeb702a9ddd3b3a0ecddb0be1fc2361245452ca09
size 24439

Loading…
Cancel
Save