removed tag pages where corresponding page is not published or deleted, fixed settings button overlay so its not blocking links

pull/32/head
Ro 4 years ago
parent 302147df57
commit 92dfe67391

@ -184,13 +184,19 @@ export default class Render {
let page = pages[i];
//TODO: filter for deleted and unpublished pages
if (_.includes(page.metadata.tags, tag.tag_name)) {
pageList.push({
title: page.metadata.title,
slug: page.metadata.slug
});
if (
page.metedata.deleted === false &&
page.metadata.published === true
) {
if (_.includes(page.metadata.tags, tag.tag_name)) {
pageList.push({
title: page.metadata.title,
slug: page.metadata.slug
});
}
}
}
console.log('TAG LIST', tag.tag_name + ' count:' + pageList.length);
renderList.push({ tag: tag.tag_name, tag_list: pageList, slug: tag.slug });
}
let response = [];

@ -11,7 +11,7 @@
"dev": "nodemon -r esm init.js --ignore node_modules/ -e js",
"debug": "nodemon inspect -r esm init.js --ignore node_modules/ -e js",
"prettier-watch": "npx onchange '**/*.js' -- npx prettier --write {{changed}}",
"watch-back": "stylus -w -m -o public/assets/css src/styles/dash.styl & parcel watch src/com/Start.js --out-dir public/assets/scripts --out-file dash.min.js --public-url /assets/scripts",
"watch": "stylus -w -m -o public/assets/css src/styles/dash.styl & parcel watch src/com/Start.js --out-dir public/assets/scripts --out-file dash.min.js --public-url /assets/scripts",
"build-back-kit": "uglifyjs src/libraries/highlight.pack.js node_modules/sortablejs/Sortable.min.js node_modules/scramble-text/dist/ScrambleText.min.js node_modules/reframe.js/dist/reframe.min.js -c -o public/assets/scripts/dashkit.min.js"
},
"engines": {
@ -65,4 +65,4 @@
"scramble-text": "0.0.8",
"stylus": "^0.54.7"
}
}
}

@ -1,7 +1,9 @@
#settings-actions
position fixed
width 100%
width 40%
margin-top -85px
left 50%
margin-left -20%
#buttons
width 155px
margin 0 auto

Loading…
Cancel
Save