Pārlūkot izejas kodu

Use HTMLContent field in RSS feed

This re-uses the HTMLContent feed for the full HTML content in the RSS
feed, instead of again generating HTML from Markdown.

This keeps things more consistent throughout the application and reduces
work when rendering the feed.
pull/418/head
Matt Baer pirms 3 gadiem
vecāks
revīzija
f31e4d650d
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      feed.go

+ 2
- 2
feed.go Parādīt failu

@@ -1,5 +1,5 @@
/*
* Copyright © 2018-2019 A Bunch Tell LLC.
* Copyright © 2018-2020 A Bunch Tell LLC.
*
* This file is part of WriteFreely.
*
@@ -104,7 +104,7 @@ func ViewFeed(app *App, w http.ResponseWriter, req *http.Request) error {
Title: title,
Link: &Link{Href: permalink},
Description: "<![CDATA[" + stripmd.Strip(p.Content) + "]]>",
Content: applyMarkdown([]byte(p.Content), "", app.cfg),
Content: string(p.HTMLContent),
Author: &Author{author, ""},
Created: p.Created,
Updated: p.Updated,


Notiek ielāde…
Atcelt
Saglabāt