From 820a2f9c744c89ed7e2672ac6ab2c7417ac212f2 Mon Sep 17 00:00:00 2001 From: kor Date: Tue, 14 Aug 2018 03:29:24 +1200 Subject: [PATCH] Added support for author display. --- docs/asset/style.css | 4 +++- docs/logic/view.js | 10 ++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/asset/style.css b/docs/asset/style.css index 4138353..2c306f6 100644 --- a/docs/asset/style.css +++ b/docs/asset/style.css @@ -482,7 +482,7 @@ body { } /* LINK, NOTE, QUOTE, TERM, TAGS */ -.note, .quote, .term, .tags, .prog { +.note, .quote, .term, .tags, .auth, .prog { padding-top: var(--size-item-elem-padding); color: var(--color-content-item-i); font-size: var(--size-font-body); @@ -494,6 +494,7 @@ body { .grid-item:hover .quote, .grid-item:hover .term, .grid-item:hover .tags, +.grid-item:hover .auth, .grid-item:hover .prog { color: var(--color-content-item-e); } @@ -502,6 +503,7 @@ body { .grid-item-image .grid-item-lower-content .quote, .grid-item-image .grid-item-lower-content .term, .grid-item-image .grid-item-lower-content .tags, +.grid-item-image .grid-item-lower-content .auth, .grid-item-image .grid-item-lower-content .prog { color: var(--color-content-image-t); } diff --git a/docs/logic/view.js b/docs/logic/view.js index 6febf7c..79a336f 100644 --- a/docs/logic/view.js +++ b/docs/logic/view.js @@ -15,6 +15,7 @@ function View() GRIDITEMIDBASE: 'item', SHOWUPPER: true, SHOWTITLE: true, + SHOWAUTH: true, SHOWTYPE: true, SHOWLINK: true, SHOWLOWER: true, @@ -223,6 +224,15 @@ function View() { entry += `
`; + // AUTHOR + if (SETTINGS.SHOWAUTH) + { + if (typeof value.AUTH !== 'undefined') + { + entry += `
${value.AUTH}
`; + } + } + // TAGS if (SETTINGS.SHOWTAGS) {