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"