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

This commit is contained in:
Ro 2020-07-09 12:57:03 -07:00
parent 302147df57
commit 92dfe67391
3 changed files with 16 additions and 8 deletions

View file

@ -184,13 +184,19 @@ export default class Render {
let page = pages[i]; let page = pages[i];
//TODO: filter for deleted and unpublished pages //TODO: filter for deleted and unpublished pages
if (_.includes(page.metadata.tags, tag.tag_name)) { if (
pageList.push({ page.metedata.deleted === false &&
title: page.metadata.title, page.metadata.published === true
slug: page.metadata.slug ) {
}); 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 }); renderList.push({ tag: tag.tag_name, tag_list: pageList, slug: tag.slug });
} }
let response = []; let response = [];

View file

@ -11,7 +11,7 @@
"dev": "nodemon -r esm init.js --ignore node_modules/ -e js", "dev": "nodemon -r esm init.js --ignore node_modules/ -e js",
"debug": "nodemon inspect -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}}", "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" "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": { "engines": {
@ -65,4 +65,4 @@
"scramble-text": "0.0.8", "scramble-text": "0.0.8",
"stylus": "^0.54.7" "stylus": "^0.54.7"
} }
} }

View file

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