first attempt at using IPFS for avatar

Closes #128

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

[CI SKIP]
This commit is contained in:
Aminda Suomalainen 2019-02-11 21:21:45 +02:00
parent efdfe3618f
commit b07284f55c
No known key found for this signature in database
GPG Key ID: 0C207F07B2F32B67
3 changed files with 7 additions and 6 deletions

View File

@ -28,7 +28,8 @@ sitemap:
file: "/sitemap.xml" file: "/sitemap.xml"
include: [PGP, PHP, keybase.txt, robots.txt, avatar.jpeg] 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 # {{site.ipfs}}/IPFSHASHHERE to get ipfs link via gateway. Hopefully future
# proof letting me simply swap the link here instead of changing it # proof letting me simply swap the link here instead of changing it

View File

@ -2,7 +2,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1"> <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> <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 %}"> <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:site" content="@Inaneierase" /> -->
<meta name="twitter:title" content="{% if page.title %}{{ page.title }} ~~ {{ site.title }}{% else %}{{ site.title }}{% endif %}" /> <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: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 --> <!-- OpenGraph -->
<meta name="og:title" content="{% if page.title %}{{ page.title }} ~~ {{ site.title }}{% else %}{{ site.title }}{% endif %}" /> <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: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:site_name" content="MikaelaDotInfo" />
<meta name="og:image" content="{{site.avatar}}"/> <meta name="og:image" content="{{site.icon}}"/>
<meta name="flattr:id" content="7j1ne6"> <meta name="flattr:id" content="7j1ne6">
</head> </head>

BIN
avatar.jpeg (Stored with Git LFS)

Binary file not shown.