Feed and tag/category map

Added feed plugin; ensured tag/category URLs were right; ready to go
live
This commit is contained in:
Daniel J. Summers 2017-09-02 16:25:30 -05:00
parent 4f22d455d8
commit 7f090b03ea
6 changed files with 26 additions and 22 deletions

View File

@ -55,7 +55,12 @@ index_generator:
# Category & Tag # Category & Tag
default_category: uncategorized default_category: uncategorized
category_map: category_map:
C++: c-plus-plus
C#: c-sharp
.NET: dot-net
tag_map: tag_map:
c#: c-sharp
.net: dot-net
category_generator: category_generator:
per_page: 6 per_page: 6
@ -80,6 +85,13 @@ pagination_dir: page
## Themes: https://hexo.io/themes/ ## Themes: https://hexo.io/themes/
theme: mantraish theme: mantraish
# Feed
feed:
type: rss2
path: feed.xml
limit: 10
content: true
# Deployment # Deployment
## Docs: https://hexo.io/docs/deployment.html ## Docs: https://hexo.io/docs/deployment.html
deploy: deploy:

25
package-lock.json generated
View File

@ -1015,22 +1015,6 @@
"graceful-fs": "4.1.11" "graceful-fs": "4.1.11"
} }
}, },
"hexo-generator-archive": {
"version": "0.1.4",
"resolved": "https://registry.npmjs.org/hexo-generator-archive/-/hexo-generator-archive-0.1.4.tgz",
"integrity": "sha1-Ft927JGH5RDf9sGSIEsPf3xQYGk=",
"requires": {
"hexo-pagination": "0.0.2",
"object-assign": "2.1.1"
},
"dependencies": {
"object-assign": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-2.1.1.tgz",
"integrity": "sha1-Q8NuXVaf+OSBbE76i+AtJpZ8GKo="
}
}
},
"hexo-generator-category": { "hexo-generator-category": {
"version": "0.1.3", "version": "0.1.3",
"resolved": "https://registry.npmjs.org/hexo-generator-category/-/hexo-generator-category-0.1.3.tgz", "resolved": "https://registry.npmjs.org/hexo-generator-category/-/hexo-generator-category-0.1.3.tgz",
@ -1047,6 +1031,15 @@
} }
} }
}, },
"hexo-generator-feed": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/hexo-generator-feed/-/hexo-generator-feed-1.2.0.tgz",
"integrity": "sha1-PXz2BYE4n4jI2CBWDyK+Fn4Jeb8=",
"requires": {
"nunjucks": "2.5.2",
"object-assign": "4.1.1"
}
},
"hexo-generator-index": { "hexo-generator-index": {
"version": "0.2.1", "version": "0.2.1",
"resolved": "https://registry.npmjs.org/hexo-generator-index/-/hexo-generator-index-0.2.1.tgz", "resolved": "https://registry.npmjs.org/hexo-generator-index/-/hexo-generator-index-0.2.1.tgz",

View File

@ -7,8 +7,8 @@
}, },
"dependencies": { "dependencies": {
"hexo": "^3.2.0", "hexo": "^3.2.0",
"hexo-generator-archive": "^0.1.4",
"hexo-generator-category": "^0.1.3", "hexo-generator-category": "^0.1.3",
"hexo-generator-feed": "^1.2.0",
"hexo-generator-index": "^0.2.0", "hexo-generator-index": "^0.2.0",
"hexo-generator-tag": "^0.2.0", "hexo-generator-tag": "^0.2.0",
"hexo-renderer-ejs": "^0.3.0", "hexo-renderer-ejs": "^0.3.0",

View File

@ -10,7 +10,7 @@ tags:
- api - api
- hoffmantown - hoffmantown
- english - english
- español - español
- html - html
- json - json
- prayer - prayer

View File

@ -7,7 +7,7 @@ date: 2005-09-01 00:00:00
aside { aside {
float: right; float: right;
width: auto; width: auto;
border: solid 2px darkgray; border: dashed 1px #ddd;
border-right: none; border-right: none;
padding: 5px; padding: 5px;
border-radius: 10px; border-radius: 10px;
@ -21,8 +21,7 @@ aside p {
} }
</style> </style>
<aside> <aside>**Topics:**
**Topics:**
[What Do I Have?](#what) [What Do I Have?](#what)
[Partitioning](#partitioning) [Partitioning](#partitioning)
[Installation](#installing) [Installation](#installing)

View File

@ -1,7 +1,7 @@
- var it = post || page - var it = post || page
if it.tags && it.tags.length > 0 if it.tags && it.tags.length > 0
= 'Tagged ' = 'Tagged '
- var tags = it.tags.toArray() - var tags = it.tags.toArray().sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0)
for tag in tags for tag in tags
a(href=url_for(tag.path) title='Posts tagged "' + tag.name + '"' rel='tag')= tag.name a(href=url_for(tag.path) title='Posts tagged "' + tag.name + '"' rel='tag')= tag.name
if tags.indexOf(tag) < (tags.length - 1) if tags.indexOf(tag) < (tags.length - 1)