Skip to content

Commit

Permalink
Remove Uncategorized category
Browse files Browse the repository at this point in the history
  • Loading branch information
bstopp committed Mar 26, 2024
1 parent b03e404 commit ca61396
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 34 deletions.
7 changes: 0 additions & 7 deletions cigaradvisor/docs/create-category.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ In here you just need to copy one of the existing category indices and replace a
+ exclude: *excludes
+ target: /cigaradvisor/index/article-index-cuban-cigar-guides.json
+ properties: *articles_properties
uncategorized:
include:
- /cigaradvisor/uncategorized/*
```

The `pages`, `categories`, `authors` and `article` indices also contain a list of all the category paths in either their `includes` or `excludes`. Add the path of the new category (matching the structure of the other categories) to all of these lists.
Expand All @@ -42,10 +39,6 @@ In here you just need to copy one of the existing category indices and replace a
+ source: /cigaradvisor/index/article-index-<new-category>.json
+ destination: /cigaradvisor/article-sitemap-<new-category>.xml
+ lastmod: YYYY-MM-DD hh:mm:ss
uncategorized:
origin: https://www.famous-smoke.com
source: /cigaradvisor/index/article-index-uncategorized.json

```

## Step 3: Apply the configuration changes
Expand Down
1 change: 0 additions & 1 deletion cigaradvisor/scripts/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const categories = [
'cigars-101',
'cocktail',
'cuban-cigar-guides',
'uncategorized',
];

// Function to create ellipsis
Expand Down
21 changes: 9 additions & 12 deletions cigaradvisor/sitemap_index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,30 @@
<loc>https://www.famous-smoke.com/cigaradvisor/author-sitemap.xml</loc>
</sitemap>
<sitemap>
<loc>https://www.famous-smoke.com/cigaradvisor/article-sitemap--buying-guides.xml</loc>
<loc>https://www.famous-smoke.com/cigaradvisor/article-sitemap-buying-guides.xml</loc>
</sitemap>
<sitemap>
<loc>https://www.famous-smoke.com/cigaradvisor/article-sitemap--cigar-humidification.xml</loc>
<loc>https://www.famous-smoke.com/cigaradvisor/article-sitemap-cigar-humidification.xml</loc>
</sitemap>
<sitemap>
<loc>https://www.famous-smoke.com/cigaradvisor/article-sitemap--cigar-lifestyle.xml</loc>
<loc>https://www.famous-smoke.com/cigaradvisor/article-sitemap-cigar-lifestyle.xml</loc>
</sitemap>
<sitemap>
<loc>https://www.famous-smoke.com/cigaradvisor/article-sitemap--cigar-makers.xml</loc>
<loc>https://www.famous-smoke.com/cigaradvisor/article-sitemap-cigar-makers.xml</loc>
</sitemap>
<sitemap>
<loc>https://www.famous-smoke.com/cigaradvisor/article-sitemap--industry-news.xml</loc>
<loc>https://www.famous-smoke.com/cigaradvisor/article-sitemap-industry-news.xml</loc>
</sitemap>
<sitemap>
<loc>https://www.famous-smoke.com/cigaradvisor/article-sitemap--cigar-reviews.xml</loc>
<loc>https://www.famous-smoke.com/cigaradvisor/article-sitemap-cigar-reviews.xml</loc>
</sitemap>
<sitemap>
<loc>https://www.famous-smoke.com/cigaradvisor/article-sitemap--cigars-101.xml</loc>
<loc>https://www.famous-smoke.com/cigaradvisor/article-sitemap-cigars-101.xml</loc>
</sitemap>
<sitemap>
<loc>https://www.famous-smoke.com/cigaradvisor/article-sitemap--cocktail.xml</loc>
<loc>https://www.famous-smoke.com/cigaradvisor/article-sitemap-cocktail.xml</loc>
</sitemap>
<sitemap>
<loc>https://www.famous-smoke.com/cigaradvisor/article-sitemap--cuban-cigar-guides.xml</loc>
</sitemap>
<sitemap>
<loc>https://www.famous-smoke.com/cigaradvisor/article-sitemap--uncategorized.xml</loc>
<loc>https://www.famous-smoke.com/cigaradvisor/article-sitemap-cuban-cigar-guides.xml</loc>
</sitemap>
</sitemapindex>
3 changes: 0 additions & 3 deletions fstab.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
mountpoints:
/: https://famoussmokeshop.sharepoint.com/:f:/r/sites/AEM/webroot/www/cigaradvisor

folders:
/cigaradvisor/posts/: /cigaradvisor/posts
6 changes: 0 additions & 6 deletions helix-query.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,3 @@ indices:
exclude: *excludes
target: /cigaradvisor/index/article-index-cuban-cigar-guides.json
properties: *articles_properties
uncategorized:
include:
- /cigaradvisor/uncategorized/*
exclude: *excludes
target: /cigaradvisor/index/article-index-uncategorized.json
properties: *articles_properties
5 changes: 0 additions & 5 deletions helix-sitemap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,3 @@ sitemaps:
source: /cigaradvisor/index/article-index-cuban-cigar-guides.json
destination: /cigaradvisor/article-sitemap-cuban-cigar-guides.xml
lastmod: YYYY-MM-DD hh:mm:ss
uncategorized:
origin: https://www.famous-smoke.com
source: /cigaradvisor/index/article-index-uncategorized.json
destination: /cigaradvisor/article-sitemap-uncategorized.xml
lastmod: YYYY-MM-DD hh:mm:ss

0 comments on commit ca61396

Please sign in to comment.