From fcb9d6c00ed2d9aa55d6993dbbcbd8747fda1516 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Sun, 28 Apr 2019 22:34:34 +0100 Subject: [PATCH] feat: add credits License: MIT Signed-off-by: Henrique Dias --- lib/html.js | 10 +++++++++- package.json | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/html.js b/lib/html.js index 26776fc..c8ac3b9 100644 --- a/lib/html.js +++ b/lib/html.js @@ -1,12 +1,16 @@ const { basename } = require('path') const { pad } = require('./helpers') +const credits = '

This work is licensed under a Creative Commons Attribution-NonCommercial 2.5 License.
Originally from xkcd.com.

' + const comicPage = ({ alt, title, transcript, num, img }) => { const btnClass = 'dib navy mh2 pa2 bg-light-blue hover-bg-lightest-blue br2 ba bw1 b--navy no-underline' return ` ${num} - ${title} + + @@ -20,6 +24,7 @@ const comicPage = ({ alt, title, transcript, num, img }) => { ${alt}

${transcript}

+ ${credits} ` } @@ -27,14 +32,17 @@ const comicPage = ({ alt, title, transcript, num, img }) => { const homePage = (list) => ` XKCD + +

XKCD

- + + ${credits} ` diff --git a/package.json b/package.json index 7fea6c7..df55bea 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "xkcd-clone", "version": "1.0.0", - "description": "", + "description": "Clone XKCD comics.", "main": "./lib/index.js", "bin": { "xkcd-clone": "./bin/index.js"