Skip to content

feat(settings): TACC_BLOG_SHOW_ABSTRACT_TAG#592

Merged
wesleyboar merged 5 commits intotask/redirect-blog-articles-without-pluginfrom
task/setting-to-show-abstract-in-blog-article
Feb 6, 2023
Merged

feat(settings): TACC_BLOG_SHOW_ABSTRACT_TAG#592
wesleyboar merged 5 commits intotask/redirect-blog-articles-without-pluginfrom
task/setting-to-show-abstract-in-blog-article

Conversation

@wesleyboar
Copy link
Copy Markdown
Member

@wesleyboar wesleyboar commented Feb 4, 2023

Overview

If tag matches setting value, article page will show the abstract.

Use Cases

Actual: So that if a user navigates to a page that they were not intended to access, the abstract can be shown to show them to where they should have been redirected. (That redirection relied on abstract having a link to an external article, but relies on JavaScript which can fail. Also, user could have pieced together the URL or received it in full via RSS.)

Imagined: Scientific article whose abstract should be listed before the content so all content is available together.

Related

Changes

  • add setting TACC_BLOG_SHOW_ABSTRACT_TAG
  • change article list .blog-lead styles to only be for list
  • change article page .blog-content styles to also style .blog-lead
  • change template to show abstract if template_tag and setting verify that
  • add template_tag to set boolean after comparing given tag to article tags

Testing

  1. Add TACC_BLOG_SHOW_ABSTRACT_TAG setting with value show_abstract.
  2. Create article with:
    • abstract (some text, any text)
    • tag show_abstract
  3. Load article page.
  4. Verify article shows abstract.
  5. Add article content.
  6. Verify article content loads beneath abstract.
  7. Verify article abstract and article content text styles match.

UI

abstract content list page
abstract content list page

@wesleyboar wesleyboar changed the base branch from main to task/redirect-blog-articles-without-plugin February 6, 2023 02:25
@wesleyboar wesleyboar merged commit b0c48c8 into task/redirect-blog-articles-without-plugin Feb 6, 2023
@wesleyboar wesleyboar deleted the task/setting-to-show-abstract-in-blog-article branch February 6, 2023 02:55
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