Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conent optimizations #84

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conent optimizations #84

wants to merge 7 commits into from

Conversation

crycode-de
Copy link

@crycode-de crycode-de commented Apr 8, 2024

  • Added content options:
    • rendered - generated results use the rendered mainbody if available. (json only)
    • excerpt - generated results use the excerpts as content if available.
    • raw - generated results use the raw mainbody if available. (json only, also contains the front-matter)
  • Added strip_html option to strip out all html tags.
  • Added permalinks option to include permalinks for tags and categories in json output.
  • Removed tags and categories code for pages in json_generator since pages doesn't support tags/categories.
  • Always include tags and categories array in json output.
    If posts have no tags/categories the keys where omitted in the json output. If we always include them (even if empty) we get a more reliable json structure which is easier to parse.

This PR will close #54 and close #68.

Added strip_html option to strip out all html tags (json+xml)
Also fixed title issue for posts (json)
Pages don't support tags and categories.
Closes wzpan#54
If posts have no tags/categories the keys where omitted in the
json output. If we always include them (even if empty) we get
a more reliable json structure which is easier to parse.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option to include excerpt Page does not support tags and categories
1 participant