question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Document how to display content outside component (e.g., RSS)

See original GitHub issue

Users will want to display their content outside of components, such as in an RSS feed. Currently, the displaying content page only discusses using a component to render content. The document object does not include HTML or a plaintext summary that could be used for this.

Describe the solution you’d like

On the Displaying content page, document how to include content programmatically, such as in an RSS feed.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
lukeocodescommented, Jun 5, 2020

Here’s me building integration with nuxtjs/feed and you merge a PR showing how to do it 😄

Bu, #93 still uses summary, without a good way to take the JSON AST and turn it into a string of HTML.

Besides storing text against the object and running it through a parser, any suggestions on how to achieve this?

2reactions
rclementcommented, Jun 3, 2020

@philipithomas Yes that’s right, this is common practice so that potential readers are still coming back to your site (so you can obtain some more meaningful analytics metrics if you’re into this stuff). And using @nuxt/content you do not have access to a textual version of the body directly, only the JSON AST.

However you have access to the text field containing the raw body during the hook file:beforeInsert according to: https://content.nuxtjs.org/advanced#contentfilebeforeinsert You could copy it and/or process it in some way to extract a plain-text body to be injected afterwards in feeds content section.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add RSS feeds from external sites to your site
Under Categories, select Content Rollup. Under Web Parts, select the RSS Viewer web part, and then select Add (Find the button over to...
Read more >
Display element outside of iframe - javascript - Stack Overflow
This is not possible. An iFrame is in essence a separate browser window inside document that references other pages.
Read more >
Working With Web Feeds: It's More Than RSS | CSS-Tricks
With Atom and RSS, you do this by declaring the namespace on the root element. One example of this is on podcast feeds...
Read more >
Create an RSS Feed from Nuxt Content with Full Body HTML
This article will present a way to add the whole document to the RSS feed by adding a simple drop-in module. The problem...
Read more >
Creating An Outside Focus And Click Handler React Component
In this article, we'll look at how to create an outside focus and click handler with React. We will recreate an open source...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found