Add microformats, sending of webmentions
This commit is contained in:
parent
4741f4f65b
commit
ad55411e21
8 changed files with 813 additions and 9 deletions
|
|
@ -47,6 +47,10 @@ module.exports = function(eleventyConfig) {
|
|||
}).format(dt);
|
||||
return formattedDt;
|
||||
});
|
||||
eleventyConfig.addFilter("formatDateForRobots", function(value) {
|
||||
const dt = new Date(value);
|
||||
return dt.toISOString();
|
||||
});
|
||||
eleventyConfig.addFilter("convertYouTubeURLsToEmbeds", function(value) {
|
||||
const youtubeUrlRegex = /<p>\s*(?:https?:\/\/)?(?:www\.)?(?:youtube\.com|youtu\.be)\/(?!channel\/|@)([^\s&<>"']*)\s*<\/p>/gim;
|
||||
return value.replace(youtubeUrlRegex, function(match, videoId) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue