forked from projects/fipamo
28 lines
1.1 KiB
Text
28 lines
1.1 KiB
Text
#dash-recent
|
|
#recent-list
|
|
.recent-header
|
|
h3 Recent
|
|
.index-menu
|
|
a(href='/@/dashboard/page/list') View Pages
|
|
| .
|
|
a(href='/@/dashboard/page/add/new') Create Page
|
|
br
|
|
- var index = 0;
|
|
- var cap = 5; // number of posts to display, get rid of this and put it in the config
|
|
if(pages.length == 0)
|
|
label this is empty
|
|
else
|
|
- for ( index; index < pages.length; index++)
|
|
a.post-link(href="/@/dashboard/page/edit/"+pages[index].page.metadata.uuid id=pages[index].page.metadata.uuid style="background:url("+pages[index].page.metadata.feature+") no-repeat center center / cover")
|
|
div
|
|
span= pages[index].date
|
|
label= pages[index].page.metadata.title
|
|
#options
|
|
- var menu = String(pages[index].page.metadata.menu)
|
|
- var published = String(pages[index].page.metadata.published)
|
|
- var featured = String(pages[index].page.metadata.featured)
|
|
span.item-options(data-active=menu) MENU ITEM
|
|
span.item-options(data-active=published) PUBLISHED
|
|
span.item-options(data-active=featured) FEATURED
|
|
|