From 300c437e62ceb4451d7456479d456c68a394b668 Mon Sep 17 00:00:00 2001 From: victorbjelkholm Date: Tue, 31 Jul 2018 12:18:26 +0200 Subject: [PATCH] Abbreviete hashes License: MIT Signed-off-by: Victor Bjelkholm --- data/datasets.yml | 1 - src/layouts/partials/list.html | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/data/datasets.yml b/data/datasets.yml index b264b05..5f2c775 100644 --- a/data/datasets.yml +++ b/data/datasets.yml @@ -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 diff --git a/src/layouts/partials/list.html b/src/layouts/partials/list.html index 4c90b34..cee7c2c 100644 --- a/src/layouts/partials/list.html +++ b/src/layouts/partials/list.html @@ -44,7 +44,9 @@ {{- if isset .Params "hash" -}}
- {{ .Params.hash }} + + {{ substr .Params.hash 0 10 }}...{{ substr .Params.hash 47 5 }} +
{{- end -}}