filtered out visited sites via pug page for index

This commit is contained in:
2020-01-07 13:55:05 -05:00
parent c260f206e0
commit eb9d8f78f7
4 changed files with 40 additions and 12 deletions

18
views/site-listing.pug Normal file
View File

@@ -0,0 +1,18 @@
extends layout
block content
h1= title
h2= "Sites: " + sites.length
each site in sites
h3= site.site
//- Commmand list of all the states
h5
- var states = site.states.split(',')
- for (var i = 0; i < states.length; i++)
| #{states[i]}
if (i + 1 < states.length)
| ,
include footer.pug