bug fix RSS and ATOM using func.render_md instead of showdown

This commit is contained in:
2025-08-27 16:36:21 +01:00
parent 9b5d3f3f73
commit b3ea048244
6 changed files with 100 additions and 4 deletions

View File

@@ -10,7 +10,7 @@
<entry> <entry>
<title><%= posts[postID]["title"] %></title> <title><%= posts[postID]["title"] %></title>
<link><%= config.site_url %>/post/<%= postID %></link> <link><%= config.site_url %>/post/<%= postID %></link>
<summary><![CDATA[<%- converter.makeHtml(posts[postID]["content"]) %>]]></summary> <summary><![CDATA[<%- func.render_md(posts[postID]["content"]) %>]]></summary>
<guid isPermaLink="true"><%= config.site_url %>/post/<%= postID %></guid> <guid isPermaLink="true"><%= config.site_url %>/post/<%= postID %></guid>
<pubDate><%# func.unix_time_to_atom_date(posts[postID]['pubdate']) %></pubDate> <pubDate><%# func.unix_time_to_atom_date(posts[postID]['pubdate']) %></pubDate>
<% for (let tag_index = 0; tag_index < posts[postID]['tags'].length; tag_index++) { %> <% for (let tag_index = 0; tag_index < posts[postID]['tags'].length; tag_index++) { %>

View File

@@ -9,7 +9,7 @@
<item> <item>
<title><%= posts[postID]["title"] %></title> <title><%= posts[postID]["title"] %></title>
<link><%= config.site_url %>/post/<%= postID %></link> <link><%= config.site_url %>/post/<%= postID %></link>
<description><![CDATA[<%- converter.makeHtml(posts[postID]["content"]) %>]]></description> <description><![CDATA[<%- func.render_md(posts[postID]["content"]) %>]]></description>
<guid isPermaLink="true"><%= config.site_url %>/post/<%= postID %></guid> <guid isPermaLink="true"><%= config.site_url %>/post/<%= postID %></guid>
<pubDate><%= func.unix_time_to_rss_date(posts[postID]['pubdate']) %></pubDate> <pubDate><%= func.unix_time_to_rss_date(posts[postID]['pubdate']) %></pubDate>
<% for (let tag_index = 0; tag_index < posts[postID]['tags'].length; tag_index++) { %> <% for (let tag_index = 0; tag_index < posts[postID]['tags'].length; tag_index++) { %>

View File

@@ -11,7 +11,7 @@
<entry> <entry>
<title><%= posts[postID]["title"] %></title> <title><%= posts[postID]["title"] %></title>
<link><%= config.site_url %>/post/<%= postID %></link> <link><%= config.site_url %>/post/<%= postID %></link>
<summary><![CDATA[<%- converter.makeHtml(posts[postID]["content"]) %>]]></summary> <summary><![CDATA[<%- func.render_md(posts[postID]["content"]) %>]]></summary>
<guid isPermaLink="true"><%= config.site_url %>/post/<%= postID %></guid> <guid isPermaLink="true"><%= config.site_url %>/post/<%= postID %></guid>
<pubDate><%# func.unix_time_to_atom_date(posts[postID]['pubdate']) %></pubDate> <pubDate><%# func.unix_time_to_atom_date(posts[postID]['pubdate']) %></pubDate>
<% for (let tag_index = 0; tag_index < posts[postID]['tags'].length; tag_index++) { %> <% for (let tag_index = 0; tag_index < posts[postID]['tags'].length; tag_index++) { %>

View File

@@ -10,7 +10,7 @@
<item> <item>
<title><%= posts[postID]["title"] %></title> <title><%= posts[postID]["title"] %></title>
<link><%= config.site_url %>/post/<%= postID %></link> <link><%= config.site_url %>/post/<%= postID %></link>
<description><![CDATA[<%- converter.makeHtml(posts[postID]["content"]) %>]]></description> <description><![CDATA[<%- func.render_md(posts[postID]["content"]) %>]]></description>
<guid isPermaLink="true"><%= config.site_url %>/post/<%= postID %></guid> <guid isPermaLink="true"><%= config.site_url %>/post/<%= postID %></guid>
<pubDate><%= func.unix_time_to_rss_date(posts[postID]['pubdate']) %></pubDate> <pubDate><%= func.unix_time_to_rss_date(posts[postID]['pubdate']) %></pubDate>
<% for (let tag_index = 0; tag_index < posts[postID]['tags'].length; tag_index++) { %> <% for (let tag_index = 0; tag_index < posts[postID]['tags'].length; tag_index++) { %>

0
webroot/custom.css Normal file
View File

96
webroot/robots.txt Normal file
View File

@@ -0,0 +1,96 @@
User-agent: AddSearchBot
User-agent: AI2Bot
User-agent: Ai2Bot-Dolma
User-agent: aiHitBot
User-agent: Amazonbot
User-agent: Andibot
User-agent: anthropic-ai
User-agent: Applebot
User-agent: Applebot-Extended
User-agent: Awario
User-agent: bedrockbot
User-agent: bigsur.ai
User-agent: Brightbot 1.0
User-agent: Bytespider
User-agent: CCBot
User-agent: ChatGPT Agent
User-agent: ChatGPT-User
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: Claude-Web
User-agent: ClaudeBot
User-agent: CloudVertexBot
User-agent: cohere-ai
User-agent: cohere-training-data-crawler
User-agent: Cotoyogi
User-agent: Crawlspace
User-agent: Datenbank Crawler
User-agent: Devin
User-agent: Diffbot
User-agent: DuckAssistBot
User-agent: Echobot Bot
User-agent: EchoboxBot
User-agent: FacebookBot
User-agent: facebookexternalhit
User-agent: Factset_spyderbot
User-agent: FirecrawlAgent
User-agent: FriendlyCrawler
User-agent: Gemini-Deep-Research
User-agent: Google-CloudVertexBot
User-agent: Google-Extended
User-agent: Google-Firebase
User-agent: GoogleAgent-Mariner
User-agent: GoogleOther
User-agent: GoogleOther-Image
User-agent: GoogleOther-Video
User-agent: GPTBot
User-agent: iaskspider/2.0
User-agent: ICC-Crawler
User-agent: ImagesiftBot
User-agent: img2dataset
User-agent: ISSCyberRiskCrawler
User-agent: Kangaroo Bot
User-agent: LinerBot
User-agent: meta-externalagent
User-agent: Meta-ExternalAgent
User-agent: meta-externalfetcher
User-agent: Meta-ExternalFetcher
User-agent: MistralAI-User
User-agent: MistralAI-User/1.0
User-agent: MyCentralAIScraperBot
User-agent: netEstate Imprint Crawler
User-agent: NovaAct
User-agent: OAI-SearchBot
User-agent: omgili
User-agent: omgilibot
User-agent: OpenAI
User-agent: Operator
User-agent: PanguBot
User-agent: Panscient
User-agent: panscient.com
User-agent: Perplexity-User
User-agent: PerplexityBot
User-agent: PetalBot
User-agent: PhindBot
User-agent: Poseidon Research Crawler
User-agent: QualifiedBot
User-agent: QuillBot
User-agent: quillbot.com
User-agent: SBIntuitionsBot
User-agent: Scrapy
User-agent: SemrushBot-OCOB
User-agent: SemrushBot-SWA
User-agent: ShapBot
User-agent: Sidetrade indexer bot
User-agent: Thinkbot
User-agent: TikTokSpider
User-agent: Timpibot
User-agent: VelenPublicWebCrawler
User-agent: WARDBot
User-agent: Webzio-Extended
User-agent: wpbot
User-agent: YaK
User-agent: YandexAdditional
User-agent: YandexAdditionalBot
User-agent: YouBot
Disallow: /