From 6acdbb7597b000bf18f30a3019204a452b386a8a Mon Sep 17 00:00:00 2001 From: Alex Wolfe Date: Tue, 21 Apr 2015 08:49:15 -0700 Subject: [PATCH] fixed numbering --- public/_includes/_hover-card.jade | 6 +++++- public/docs/js/latest/guide.jade | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/public/_includes/_hover-card.jade b/public/_includes/_hover-card.jade index f89df10520..ea218a8c24 100644 --- a/public/_includes/_hover-card.jade +++ b/public/_includes/_hover-card.jade @@ -1,6 +1,10 @@ a(class="hover-card is-button has-icon" href="#{url}" md-button) span(class="hover-card-icon #{classes}") - h3 #{name} + if number + h3 #{number}. #{name} + + else + h3 #{name} if cta p #{cta} diff --git a/public/docs/js/latest/guide.jade b/public/docs/js/latest/guide.jade index ede761c8d0..7aa4985793 100644 --- a/public/docs/js/latest/guide.jade +++ b/public/docs/js/latest/guide.jade @@ -1,10 +1,10 @@ -number = 0; +number = 1; ul for page, slug in public.docs[current.path[1]][current.path[2]].guide._data + if slug != '_listtype' url = "/docs/#{current.path[1]}/#{current.path[2]}/#{current.path[3]}/#{current.path[4]}/#{slug}.html" num = number++ - name = number + ' ' + page.title li.c8 - != partial("../../../_includes/_hover-card", { classes: 'icon', name: name, url: url }) + != partial("../../../_includes/_hover-card", { number: num, name: page.title, url: url })