Skip to content

Commit

Permalink
display websites on the state pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Natalia Kowalczyk committed Mar 16, 2024
1 parent 0666e41 commit 033504f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
8 changes: 3 additions & 5 deletions templates/byway.pug
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
extends layout

include mixins

mixin stateList(states)
ul.flat-list
for id in states
Expand Down Expand Up @@ -37,11 +39,7 @@ block body
)
script(src="https://cdn.furkot.com/scripts/furkot-tripshot.min.js", defer)

if websites
section.websites
ul.flat-list
for link in websites
li: a(href=link.url)= link.name
+websiteList(websites)

.widget-style.websites.hidden
a(style='font-size: 1.2em; text-align: left;')
Expand Down
6 changes: 6 additions & 0 deletions templates/mixins.pug
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
mixin websiteList(websites)
if websites
section.websites
ul.flat-list
for link in websites
li: a(href=link.url)= link.name
3 changes: 3 additions & 0 deletions templates/state.pug
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
extends layout

include mixins

append title
= "::" + name

Expand Down Expand Up @@ -33,3 +35,4 @@ block body
)
script(src="https://cdn.furkot.com/scripts/furkot-tripshot.min.js", defer)
+bywaysList(name, byways)
+websiteList(websites)

0 comments on commit 033504f

Please sign in to comment.