fixed numbering

This commit is contained in:
Alex Wolfe 2015-04-21 08:49:15 -07:00
parent 01a0745dfd
commit 6acdbb7597
2 changed files with 8 additions and 4 deletions

View File

@ -1,6 +1,10 @@
a(class="hover-card is-button has-icon" href="#{url}" md-button) a(class="hover-card is-button has-icon" href="#{url}" md-button)
span(class="hover-card-icon #{classes}") span(class="hover-card-icon #{classes}")
h3 #{name} if number
h3 #{number}. #{name}
else
h3 #{name}
if cta if cta
p #{cta} p #{cta}

View File

@ -1,10 +1,10 @@
number = 0; number = 1;
ul ul
for page, slug in public.docs[current.path[1]][current.path[2]].guide._data for page, slug in public.docs[current.path[1]][current.path[2]].guide._data
if slug != '_listtype' if slug != '_listtype'
url = "/docs/#{current.path[1]}/#{current.path[2]}/#{current.path[3]}/#{current.path[4]}/#{slug}.html" url = "/docs/#{current.path[1]}/#{current.path[2]}/#{current.path[3]}/#{current.path[4]}/#{slug}.html"
num = number++ num = number++
name = number + ' ' + page.title
li.c8 li.c8
!= partial("../../../_includes/_hover-card", { classes: 'icon', name: name, url: url }) != partial("../../../_includes/_hover-card", { number: num, name: page.title, url: url })