From bbaaeb423e463933a1ab700eb578f10dd893b14f Mon Sep 17 00:00:00 2001 From: Paul Schaefer Date: Fri, 12 May 2017 11:38:36 -0400 Subject: [PATCH] Tweaked index page, header, and footer; fixed #2 --- public/_partials/_footer.jade | 2 +- public/_partials/_header.jade | 17 +++++++++-------- public/index.jade | 2 +- public/js/app.coffee | 2 +- 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/public/_partials/_footer.jade b/public/_partials/_footer.jade index 0fd1cb4..9c23222 100644 --- a/public/_partials/_footer.jade +++ b/public/_partials/_footer.jade @@ -5,6 +5,6 @@ footer p Edit on a(href="#{githubURL}") GitHub. .col-xs-4 - p.text-center Please drink responsibly. + p.text-center Drink responsibly. .col-xs-4 p.text-right © #{new Date().getFullYear()} diff --git a/public/_partials/_header.jade b/public/_partials/_header.jade index 4684d29..e09fca6 100644 --- a/public/_partials/_header.jade +++ b/public/_partials/_header.jade @@ -1,8 +1,9 @@ -nav.navbar.navbar-default.navbar-fixed-top - .container - .row - .col-xs-8 - h1 #{title} - if title != 'Drinking Games' - .col-xs-4.text-center - h2#total Total: 0 +header + nav.navbar.navbar-default.navbar-fixed-top + .container + .row + .col-xs-8 + h1 #{title} + if title != 'Drinking Games' + .col-xs-4.text-center + h2#total Total: 0 diff --git a/public/index.jade b/public/index.jade index c6b14e3..86ebce7 100644 --- a/public/index.jade +++ b/public/index.jade @@ -3,4 +3,4 @@ .col-sm-6.col-xs-12 a(href=(environment == "production" ? "/drink/articles/#{slug}.html" : "/articles/#{slug}.html")) h1 #{article.title} - h4 Posted #{article.date} + h4.text-muted #{article.date} diff --git a/public/js/app.coffee b/public/js/app.coffee index 10feaba..3a09c82 100644 --- a/public/js/app.coffee +++ b/public/js/app.coffee @@ -1,7 +1,7 @@ li = document.getElementsByTagName('li') total = 0 for drink in li - drink.dataset.count = '' + drink.dataset.count = '0' do (drink) -> counter = 0 drink.addEventListener('click', (event) ->