Skip to content

refactor: blog styles & features#1037

Merged
wesleyboar merged 39 commits into
stablefrom
refactor/blog-styles-via-mixins
Dec 1, 2025
Merged

refactor: blog styles & features#1037
wesleyboar merged 39 commits into
stablefrom
refactor/blog-styles-via-mixins

Conversation

@wesleyboar

@wesleyboar wesleyboar commented Nov 25, 2025

Copy link
Copy Markdown
Member

Overview

  • Style plugins:
    • "Latest Blog Entries"
    • "Author Blog Articles List"
  • Delete unused features.
  • Refactor template tags.
  • Update Core-Styles.
  • Construct blog styles via mixins.
    (so reuse within plugins does not duplicate and tweak code)

Related

Changes

  • deletes PORTAL_BLOG_CUSTOM_MEDIA_POST_CATEGORY
  • changes example settings
  • changes blog news to use mixins
  • deletes unused custom selector :--article
  • adds news- mixins
  • adds blog plugin styles for "Latest Blog Entries"
  • adds templatetag blog_is_installed
  • renames templates:
    • blog_cats_organizedblog_cats_sorted
  • fixes troublesome whitespace in markup for .blog-visual
  • renames templatetags:
    • blog_post_use_custom_mediablog_post_has_category
    • blog_post_is_show_abstractblog_post_has_tag
  • renames custom blog class from links to socials
  • deletes custom media logic
  • deletes snippets/news/hide-article-main-image.html
    Sites can instead hide with CSS globally.
  • refactors blog templatetags into one file

Testing & UI

Blog App

Article Feed

  1. Create blog feed with several articles.
List Layout
  1. Verify layout is a list.
    This is the default and familiar layout.
  2. View at different screen sizes.
  3. Verify no change compared to TACC.
  4. Verify:
    • thumbnail image:
      • maintains ratio
      • if big enough, fills grid cell
      • if absent, space is usurped by text content
      • is atop text at narrow screen width
    • list:
      • is 1 articles wide maximum (all screen widths)
      • has space and border between articles
      • has space at the bottom of it
list.layout.mov
Grid Layout
  1. Change layout to grid.
    Inspect elements. Find <form … hidden>. Remove hidden attribute. Click grid icon/option.
  2. View at different screen sizes.
  3. Verify:
    • thumbnail image:
      • maintains ratio
      • if big enough, fills grid cell
      • if absent, space is usurped by text content
    • list:
      • is 4 articles wide maximum (wide screen)
      • is 1 article wide minimum (narrow screen)
      • has space but no border between articles
        double check narrow screen sizes
      • fits successively more articles as screen widens
      • has space at the bottom of it
    • list title:
      • has same position and width as in list layout
        double check narrow screen sizes
      • has same space between it and articles as in list layout
        double check narrow screen sizes
grid.layout.mov

Article Page

  1. Create blog feed with several articles.

Blog Plugins

Feed: Latest Blog Articles

  1. Add/View "Latest Blog Articles" plugin.
  2. View at different screen sizes.
  3. Verify:
    • list:
      • is 3 articles wide maximum (wide screen)
      • is never 2 articles wide (any screen width)
      • is 1 article wide minimum (narrow screen)
      • has space but no border between articles
      • space between articles matches Bootstrap col/rows (30px)
      • has space at the bottom of it
latest.blog.articles.mov

Feed: Author Blog Articles List

  1. Add/View "Author Blog Articles List" plugin.
  2. View at different screen sizes.
  3. Verify article list matches "Latest Blog Articles".
    style, layout, responsiveness, flexibility
author blog articles list

- many sites manually hide .blog-visual, because of margin when no image
- image should become smaller sooner
No one uses this setting as opportunity to add custom media.

Category set is only used semantically, never functionally.
These tags can be more generic than I have named them.
Put all tgs in one place.

Name them like Django CMS ("cms_tags")
Remove django.cms.blog.app.page.multimedia.css.

Origin: #572

Was for Texascale. Texascale still does not use blog.

PR says use on `multimedia` articles, but code assumes `large-media`.
@wesleyboar wesleyboar changed the title refactor: blog styles via mixins refactor: blog styles & features Nov 25, 2025
wesleyboar added a commit to TACC/Core-CMS-Custom that referenced this pull request Nov 27, 2025
wesleyboar added a commit to TACC/Core-CMS-Custom that referenced this pull request Nov 27, 2025
@wesleyboar
wesleyboar marked this pull request as ready for review December 1, 2025 00:58
@wesleyboar
wesleyboar merged commit 5976f58 into stable Dec 1, 2025
@wesleyboar
wesleyboar deleted the refactor/blog-styles-via-mixins branch December 1, 2025 19:16
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.

1 participant