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

feat: tup 706 be able to serve blog markup raw #871

Merged
merged 41 commits into from
Sep 13, 2024

Conversation

wesleyboar
Copy link
Member

@wesleyboar wesleyboar commented Sep 12, 2024

Overview

Allow admin to serve a Blog app without styles, scripts, head, breadcrumbs, et cetera.

Related

Changes

  • added raw.html template

Testing

  1. Have a Blog installed.
  2. To settings_custom.py, add Raw template e.g.
    CMS_TEMPLATES = (
        ('standard.html', 'Standard'),
        ('fullwidth.html', 'Full Width'),
        ('raw.html', 'Raw'),              # ⬅
    )
  3. In "Advanced settings" of page that has the blog, set "Template" to "Raw".
  4. Verify blog content loads without header, styles, scripts, breadcrumbs, et cetera.

UI

view as standard template 2. set as raw template 3. view raw template
1 verify standard template 2 select raw template 3 see raw page

wesleyboar and others added 30 commits July 19, 2024 15:54
NOT WORKING! Fails with:

> NoReverseMatch at /feed/
> '' is not a registered namespace
Fails, because it renders nothing.
Load `/blog/remote`.

BREAKING CHANGE: Changed `/blog` to `/blog/local`
⚠️ Does NOT render feed items.
This reverts commit 6bece39.

This did not fix anything. `SESSION_COOKIE_SECURE=False` is still required locally.
- ✓ fix links to articles
- ✓ fix pagination links
@wesleyboar wesleyboar mentioned this pull request Sep 13, 2024
11 tasks
@wesleyboar wesleyboar force-pushed the feat/tup-706-serve-raw-blog-content branch from 12c02ea to ba50574 Compare September 13, 2024 19:28
@wesleyboar wesleyboar marked this pull request as ready for review September 13, 2024 20:43
@wesleyboar wesleyboar added feature A new feature or replacement of present feature effort S Small effort task (~½ a week) — does not include review time labels Sep 13, 2024
@wesleyboar wesleyboar merged commit 8490e4c into main Sep 13, 2024
@wesleyboar wesleyboar deleted the feat/tup-706-serve-raw-blog-content branch September 13, 2024 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort S Small effort task (~½ a week) — does not include review time feature A new feature or replacement of present feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant