diff --git a/data/authors/mttwdevelops.json.~1~ b/data/authors/mttwdevelops.json.~1~ new file mode 100644 index 0000000..c5a0229 --- /dev/null +++ b/data/authors/mttwdevelops.json.~1~ @@ -0,0 +1,5 @@ +{ + "name": "mttwdevelops", + "website": "https://github.com/mttwdevelops", + "xmr": "46ZkjzFHDFZfys75kQ1dYw52rZPG2a1amAmV39itnRuSfoqGg3bWXdtWRs5EDzq2z1giqNiK971dQBz216C2PywJRNB1rz8" +} diff --git a/layouts/partials/contributor.html b/layouts/partials/contributor.html index 607b703..55267c5 100644 --- a/layouts/partials/contributor.html +++ b/layouts/partials/contributor.html @@ -1,31 +1,25 @@ -{{ with .Params.author }} -{{ $author := index hugo.Data.authors . }} +{{ $author := index hugo.Data.authors (.Params.author | default "default") }} +{{- if $author -}}
{{ $author.xmr }}{{ $author.btc }}{{ $author.eth }}{{ $author.xmr }}{{ $author.btc }}{{ $author.eth }}