MCPcopy
hub / github.com/writefreely/writefreely / augmentReadingDestination

Method augmentReadingDestination

postrender.go:116–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114}
115
116func (p *PublicPost) augmentReadingDestination() {
117 if p.IsPaid {
118 p.HTMLContent += template.HTML("\n\n" + `<p><a class="read-more" href="` + p.Collection.CanonicalURL() + p.Slug.String + `">` + localStr("Read more...", p.Language.String) + `</a> ($)</p>`)
119 }
120}
121
122func applyMarkdown(data []byte, baseURL string, cfg *config.Config) string {
123 return applyMarkdownSpecial(data, baseURL, cfg, cfg.App.SingleUser)

Callers 3

ActivityObjectMethod · 0.95
ViewFeedFunction · 0.80
emailPostFunction · 0.80

Calls 2

localStrFunction · 0.85
CanonicalURLMethod · 0.45

Tested by

no test coverage detected