Skip to content

Commit

Permalink
Merge pull request #57 from btcpayserver/rss
Browse files Browse the repository at this point in the history
Add RSS/Atom/Json post feed
  • Loading branch information
Kukks authored Jun 21, 2024
2 parents 1b87743 + 8f16d85 commit 841392d
Show file tree
Hide file tree
Showing 3 changed files with 2,731 additions and 5 deletions.
13 changes: 9 additions & 4 deletions blog/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { capitalize } = require('./filters')
const { resolve } = require('path')
const {capitalize} = require('./filters')
const {resolve} = require('path')
const implicitFigures = require('markdown-it-implicit-figures')
const slugify = require('./slugify')
const preprocessMarkdown = resolve(__dirname, 'preprocessMarkdown')
Expand All @@ -21,8 +21,8 @@ module.exports = {
title,
description: 'Official BTCPay Server Blog',
head: [
['link', { rel: 'stylesheet', href: '/styles/btcpayserver-variables.css' }],
['link', { rel: 'shortcut icon', href: '/favicon.ico' }],
['link', {rel: 'stylesheet', href: '/styles/btcpayserver-variables.css'}],
['link', {rel: 'shortcut icon', href: '/favicon.ico'}],
],
chainWebpack(config) {
config.module
Expand Down Expand Up @@ -110,6 +110,11 @@ module.exports = {
],
},
],
['feed', {
canonical_base: baseUrl,
count:6969,
sort: entries => entries.sort((a, b) => new Date(b.date) - new Date(a.date)),
}]
],
markdown: {
extendMarkdown(md) {
Expand Down
Loading

0 comments on commit 841392d

Please sign in to comment.