change the distance between blog category buttons a bit
All checks were successful
Web/pipeline/head This commit looks good
All checks were successful
Web/pipeline/head This commit looks good
This commit is contained in:
parent
ea411c3599
commit
8e2dc6f2f4
2 changed files with 3 additions and 3 deletions
|
@ -23,14 +23,14 @@ function populateBlog(json, currCat) {
|
||||||
cats.html("");
|
cats.html("");
|
||||||
|
|
||||||
// force all and featured categories to be first
|
// force all and featured categories to be first
|
||||||
addCatButton(json, cats, "All", currCat);
|
addCatButton(json, cats, "All Posts", currCat);
|
||||||
addCatButton(json, cats, "Featured", currCat);
|
addCatButton(json, cats, "Featured", currCat);
|
||||||
|
|
||||||
for (let i = json.length - 1; i >= 0; i--) {
|
for (let i = json.length - 1; i >= 0; i--) {
|
||||||
let post = json[i];
|
let post = json[i];
|
||||||
for (let cat of post.cat)
|
for (let cat of post.cat)
|
||||||
addCatButton(json, cats, cat, currCat);
|
addCatButton(json, cats, cat, currCat);
|
||||||
if (currCat === "All" || post.cat.includes(currCat)) {
|
if (currCat === "All Posts" || post.cat.includes(currCat)) {
|
||||||
let p = /*html*/ `
|
let p = /*html*/ `
|
||||||
<div class="card bg-light blog-entry rounded-0">
|
<div class="card bg-light blog-entry rounded-0">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
|
|
|
@ -85,7 +85,7 @@ body {
|
||||||
|
|
||||||
.blog-cat-button {
|
.blog-cat-button {
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
margin-right: 10px;
|
margin-right: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#blog-archive-button {
|
#blog-archive-button {
|
||||||
|
|
Loading…
Reference in a new issue