Abbreviete hashes

License: MIT
Signed-off-by: Victor Bjelkholm <git@victor.earth>
This commit is contained in:
victorbjelkholm 2018-07-31 12:18:26 +02:00
parent a1195e75b8
commit 300c437e62
No known key found for this signature in database
GPG Key ID: 2C7BE98EF82CECB6
2 changed files with 3 additions and 2 deletions

View File

@ -7,7 +7,6 @@ content:
hash: /ipfs/QmNvTjdqEPjZVWCvRWsFJA1vK7TTw1g9JP6we1WBJTRADM
website: https://ipfs.io/ipfs/QmNvTjdqEPjZVWCvRWsFJA1vK7TTw1g9JP6we1WBJTRADM
source: https://github.com/ipfs/archives/issues/18
description:
size: 500MB
- title: Presidental Daily Briefs
hash: /ipfs/Qme6epvZDj3vzHcFKdF1nZhbixjw8Bn4imGcKnbUyBJL89

View File

@ -44,7 +44,9 @@
{{- if isset .Params "hash" -}}
<div>
<a href="https://ipfs.io{{ .Params.hash }}" target="_blank" alt="Website" title="Website" class="aqua hover-teal">
<code>{{ .Params.hash }}</code>
<abbr title="{{ .Params.hash }}">
<code>{{ substr .Params.hash 0 10 }}...{{ substr .Params.hash 47 5 }}</code>
</abbr>
</a>
</div>
{{- end -}}