blog-engine-sac
Advanced tools
Comparing version 7.11.0 to 7.12.0
# changelog | ||
## 7.12.0 | ||
* Receive webmention | ||
* add commentsEnabled option to force comments on non-indexed pages | ||
## 7.11.0 | ||
@@ -4,0 +10,0 @@ |
@@ -24,3 +24,3 @@ export { htmlListFromPosts }; | ||
${post.author} | ||
<time datetime=${post.creationDate.toJSON()}>${niceDateString(post.creationDate, lang)}</time> | ||
<time datetime="${post.creationDate.toJSON()}">${niceDateString(post.creationDate, lang)}</time> | ||
</p> | ||
@@ -27,0 +27,0 @@ </a>`; |
@@ -32,3 +32,3 @@ export {createPostHtml}; | ||
} else { | ||
lastEdit = `<p class="meta">${translate(lang, `Last edit`)} <time datetime=${options.modifiedDate.toJSON()}>${niceDateString(options.modifiedDate, lang)}</time></p>`; | ||
lastEdit = `<p class="meta">${translate(lang, `Last edit`)} <time datetime="${options.modifiedDate.toJSON()}">${niceDateString(options.modifiedDate, lang)}</time></p>`; | ||
} | ||
@@ -92,3 +92,3 @@ | ||
${author} | ||
<time datetime=${options.creationDate.toJSON()}>${niceDateString(options.creationDate, lang)}</time> | ||
<time datetime="${options.creationDate.toJSON()}">${niceDateString(options.creationDate, lang)}</time> | ||
</p>${lastEdit} | ||
@@ -126,4 +126,4 @@ </div> | ||
const createCommentSection = (options) => { | ||
const {commentSectionBaseUrl, base, commentsDisabled, commentsRulesUrl, indexed} = options; | ||
if (!commentSectionBaseUrl || commentsDisabled || !indexed) { | ||
const {commentSectionBaseUrl, base, commentsDisabled, commentsEnabled, commentsRulesUrl, indexed} = options; | ||
if (!commentSectionBaseUrl || !commentsEnabled && (commentsDisabled || !indexed)) { | ||
return Promise.resolve(``); | ||
@@ -130,0 +130,0 @@ } |
{ | ||
"name": "blog-engine-sac", | ||
"version": "7.11.0", | ||
"version": "7.13.0", | ||
"description": "static site generator, that uses markdown files as input and outputs web pages", | ||
@@ -5,0 +5,0 @@ "license": "CC0-1.0", |
@@ -27,2 +27,3 @@ # [Blog-engine-sac](https://gitlab.com/GrosSacASac/blog-engine-z) | ||
- Comment system | ||
- Partial Webmention support | ||
- Web hosting and domain setup, costs included | ||
@@ -29,0 +30,0 @@ - Help to set up and/or help to migrate from other CMS |
@@ -359,7 +359,10 @@ /* stats.birthtime, can be later than modified date | ||
body: JSON.stringify({ | ||
targets: indexedPosts.filter(({commentsDisabled}) => { | ||
return !commentsDisabled; | ||
targets: posts.filter((post) => { | ||
return !post.commentsDisabled && (post.indexed || post.commentsEnabled); | ||
}).map((post) => { | ||
// same as in post html .js | ||
return postStartName(post); | ||
return { | ||
slug: postStartName(post), | ||
url: `${commonOptions.url}${urls.posts}${postStartName(post)}${commonOptions.extensionLinks}`, | ||
}; | ||
}), | ||
@@ -373,3 +376,3 @@ password:commonOptions.commentsPassword, | ||
}).then(response => { | ||
if(!response.ok) { | ||
if (!response.ok) { | ||
throw response.statusText; | ||
@@ -376,0 +379,0 @@ } |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
552631
11180
294
6