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

ECEP-113: News/Blog (Core, ECEP, Texascale) #466

Merged
merged 184 commits into from
May 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
184 commits
Select commit Hold shift + click to select a range
8ed59e4
ECEP-114: Floating Nav Pattern
wesleyboar Mar 8, 2022
d81b971
ECEP-114: Floating Nav Pattern: Boxed Modifier
wesleyboar Mar 8, 2022
97ce729
ECEP-114: Floating Nav → Nav (& Fully Working)
wesleyboar Mar 8, 2022
ea3b25b
ECEP-114: Nav Polish
wesleyboar Mar 8, 2022
d13c0c1
ECEP-114: Nav Fixes & Polish (Item Alignment)
wesleyboar Mar 8, 2022
7e9e0eb
ECEP-114: Nav Fixes (Unpolished) (List Padding)
wesleyboar Mar 8, 2022
f05ac60
ECEP-114: Polish List Pad Fixes from Last Commit
wesleyboar Mar 8, 2022
27f2610
ECEP-114: Noop: Nav Comment Polish
wesleyboar Mar 8, 2022
688d139
ECEP-114: Noop: Comment on DJANGOCMS_STYLE_CHOICES
wesleyboar Mar 8, 2022
369d0e1
Merge branch 'main' into task/ECEP-114-states-members-page-patterns
wesleyboar Mar 8, 2022
4469f6a
Merge branch 'main' into site/ecep/main
wesleyboar Mar 8, 2022
45ab869
Merge branch 'main' into task/ECEP-114-states-members-page-patterns
wesleyboar Mar 9, 2022
8f9f750
ECEP-113: WIP: Cleanup News & Metadata App Support
wesleyboar Mar 9, 2022
bcb8f6e
ECEP-113: Submod: Merge main
wesleyboar Mar 10, 2022
4991f64
Merge branch 'main' into task/ECEP-114-states-members-page-patterns
wesleyboar Mar 11, 2022
396210c
Merge branch 'task/ECEP-114-states-members-page-patterns' of github.c…
wesleyboar Mar 11, 2022
38ccde2
ECEP-114: Simple Typography Changes
wesleyboar Mar 11, 2022
584ebf1
Merge branch 'main' into task/ECEP-114-states-members-page-patterns
wesleyboar Mar 11, 2022
9db9f4e
ECEP-114: Heading Typography Changes
wesleyboar Mar 11, 2022
e3d3ff3
Merge branch 'task/ECEP-114-states-members-page-patterns' into task/E…
wesleyboar Mar 11, 2022
8b9e325
ECEP-114: Updates to Support ECEP States/Members Page (#459)
wesleyboar Mar 11, 2022
ace4310
Merge branch 'main' into task/ECEP-113-support-news
wesleyboar Mar 14, 2022
8b06368
ECEP-113: Submod: Merge Main
wesleyboar Mar 15, 2022
42cb803
Merge branch 'main' into task/ECEP-113-support-news
wesleyboar Mar 15, 2022
6819782
Merge branch 'main' into task/ECEP-114-members-page-and-supporting-co…
wesleyboar Mar 15, 2022
fe2d7d5
chore(ECEP-113): remove blog CSS include and file
wesleyboar Mar 15, 2022
3a2afc4
fix(ECEP-113): ecep: blog url setting
wesleyboar Mar 15, 2022
4a4096d
fix(ECEP-113): auto blog setup improvments
wesleyboar Mar 17, 2022
bcb93d4
doc(ECEP-113): comment on bootstrap class in django.cms.css
wesleyboar Mar 17, 2022
d08e9ca
doc(ECEP-114): explain switch from hidden to clip
wesleyboar Mar 17, 2022
ac8830d
Merge branch 'task/ECEP-114-members-page-and-supporting-core-changes'…
wesleyboar Mar 17, 2022
1064238
Merge branch 'task/ECEP-113-support-news' into site/ecep/main
wesleyboar Mar 17, 2022
bbf11f4
Merge branch 'site/ecep/main' of github.com:TACC/Core-CMS into site/e…
wesleyboar Mar 17, 2022
249b0a8
Merge branch 'main' into site/ecep/main
wesleyboar Mar 22, 2022
04f82d4
Merge branch 'main' into site/ecep/main
wesleyboar Mar 22, 2022
29e174c
Merge branch 'main' into site/ecep/main
wesleyboar Mar 24, 2022
7b66cd7
Merge branch 'main' into task/ECEP-113-support-news
wesleyboar Mar 28, 2022
11ca7fd
Merge branch 'main' into task/ECEP-113-support-news
wesleyboar Mar 28, 2022
4a1adee
Merge branch 'main' into site/ecep/main
wesleyboar Mar 28, 2022
f789d60
doc(blog): clean up and update links
wesleyboar Mar 29, 2022
18478c5
feat(blog): disable comments by default
wesleyboar Mar 29, 2022
21c3e36
feat(blog): remove custom plugin path
wesleyboar Mar 29, 2022
f10dacc
Merge branch 'task/ECEP-113-support-news' into site/ecep/main
wesleyboar Mar 29, 2022
57d94bf
feat(blog): default custom plugin path
wesleyboar Mar 29, 2022
287a01a
Merge branch 'task/ECEP-113-support-news' into site/ecep/main
wesleyboar Mar 29, 2022
944c5c3
fix(ECEP-114): consistent <hr> space
wesleyboar Mar 29, 2022
408dae9
Merge branch 'task/ECEP-114-members-page-and-supporting-core-changes'…
wesleyboar Mar 29, 2022
27f9b8b
Merge branch 'main' into task/ECEP-114-members-page-and-supporting-co…
wesleyboar Mar 29, 2022
3f10937
chore(submod): update to latest main
wesleyboar Mar 29, 2022
8d4ff9b
Merge branch 'task/ECEP-113-support-news' into site/ecep/main
wesleyboar Mar 29, 2022
41d7ac6
(a merge of ECEP-114 branch)
wesleyboar Mar 29, 2022
deb9971
Merge branch 'task/ECEP-114-members-page-and-supporting-core-changes'…
wesleyboar Mar 29, 2022
d169d32
feat(css): support djangocms picture alignment
wesleyboar Mar 30, 2022
8687b04
feat(css): add space between ordered list items
wesleyboar Mar 30, 2022
261d16f
Merge branch 'bug/ECEP-113-support-djangocms-picture-align-classes' i…
wesleyboar Mar 30, 2022
c367b76
Merge branch 'task/ECEP-113-support-news' into site/ecep/main
wesleyboar Mar 30, 2022
62b95c5
fix(css): load djangocms picture alignment
wesleyboar Mar 30, 2022
72c5ac4
Merge branch 'task/ECEP-113-support-news' into site/ecep/main
wesleyboar Mar 30, 2022
fc61645
fix(css): add space between all list items
wesleyboar Mar 30, 2022
3c6af57
fix(css): isolate list spacing in blog CSS
wesleyboar Mar 30, 2022
540a783
Merge branch 'task/ECEP-113-support-news' into site/ecep/main
wesleyboar Mar 30, 2022
d2604d0
feat(postcss): add custom selectors — ⚠️ no test
wesleyboar Mar 30, 2022
81cb67c
feat(blog): article page styles — ⚠️ incomplete
wesleyboar Mar 30, 2022
d21001a
Merge branch 'task/ECEP-113-support-news' into site/ecep/main
wesleyboar Mar 30, 2022
72ede07
feat(css): support djangocms picture offset
wesleyboar Mar 30, 2022
114bd83
Merge branch 'task/ECEP-113-support-news' into site/ecep/main
wesleyboar Mar 30, 2022
5dd0e47
feat(css): improve djangocms picture alignment
wesleyboar Mar 31, 2022
71a71d9
chore(css): variable for o-offset-… space
wesleyboar Mar 31, 2022
c069c69
feat(css): support djangocms picture offset+align
wesleyboar Mar 31, 2022
32ffaa1
feat(css): drop djangocms picture offset+align
wesleyboar Mar 31, 2022
66fad60
feat(blog): tweak article text
wesleyboar Apr 1, 2022
d8bba63
feat(blog): wrap article page in container
wesleyboar Apr 1, 2022
63c6e9b
feat(css): core o-offset-content & figure styles
wesleyboar Apr 1, 2022
7f153f4
feat(css): drop djangocms picture offset+align
wesleyboar Apr 1, 2022
2ef4680
doc(admin): warn adding caption changes img align
wesleyboar Apr 1, 2022
c2d4002
feat(css): --o-offset-content custom selector
wesleyboar Apr 1, 2022
3c305ca
feat(texascale): --o-offset-content custom select…
wesleyboar Apr 1, 2022
b880765
feat(css): offset-content figure caption padding
wesleyboar Apr 1, 2022
cab772d
fix(blog): article page header css bugs
wesleyboar Apr 1, 2022
6f067ed
Merge branch 'task/ECEP-113-support-news' into site/ecep/main
wesleyboar Apr 1, 2022
301b507
Merge branch 'main' into task/ECEP-113-support-news
wesleyboar Apr 1, 2022
1710f49
fix(blog): more CSS classes, simpler selectors
wesleyboar Apr 1, 2022
b1ce7fc
feat(blog): article item content styles
wesleyboar Apr 2, 2022
c16c778
fix(blog): article item spacing
wesleyboar Apr 4, 2022
4d7633e
chore(blog): link to original blog_meta.html
wesleyboar Apr 4, 2022
dad3d2c
doc(blog): article image thumbnail hints for admin
wesleyboar Apr 4, 2022
0cfbd96
fix(blog): article item: add image gap
wesleyboar Apr 4, 2022
c3aafad
fix(blog): lower css specificity for byline & date
wesleyboar Apr 4, 2022
72fbac7
feat(blog): add contianer around article list
wesleyboar Apr 4, 2022
0904b17
fix(blog): example install before tacc cms
wesleyboar Apr 5, 2022
eb0e01b
feat(blog): breadcrumbs for list & article pages
wesleyboar Apr 5, 2022
c31b6f7
noop: add missing newline in css file
wesleyboar Apr 5, 2022
3fbaefd
fix(blog): custom selector drop pseudo selector
wesleyboar Apr 5, 2022
d9e4306
feat(article-link): support --outline-offset var
wesleyboar Apr 5, 2022
c085b75
feat(blog): article list link covers full item
wesleyboar Apr 5, 2022
0a4189d
Merge branch 'task/ECEP-113-support-news' into site/ecep/main
wesleyboar Apr 5, 2022
7a5fa12
chore(ECEP-113): add missing submod commit
wesleyboar Apr 5, 2022
ad82728
Merge branch 'task/ECEP-113-support-news' into site/ecep/main
wesleyboar Apr 5, 2022
931349b
fix(blog): hide read more link
wesleyboar Apr 5, 2022
daa8043
fix(blog): article page line-height
wesleyboar Apr 5, 2022
bbe6e15
feat(blog): %x-article-link-text
wesleyboar Apr 5, 2022
4a363ba
chore(blog): clean up article footer css syntax
wesleyboar Apr 5, 2022
9b907fb
feat(css): global custom selectors (for cms state)
wesleyboar Apr 5, 2022
860b9ee
feat(blog): read more link text only while editing
wesleyboar Apr 6, 2022
38e0c51
feat(blog): inaccessible tooltip for dates
wesleyboar Apr 6, 2022
e43e98b
fix(blog): cats and tags overlapped
wesleyboar Apr 6, 2022
9c12020
fix(blog): category link had bad content
wesleyboar Apr 6, 2022
9276050
doc(blog): links to heavily-modified tempaltes
wesleyboar Apr 6, 2022
c14ce0a
feat(blog): add title to base news list
wesleyboar Apr 6, 2022
1d28303
Merge branch 'main' into task/ECEP-113-support-news
wesleyboar Apr 6, 2022
081b9d4
Merge branch 'main' into task/ECEP-113-support-news
wesleyboar Apr 6, 2022
b284226
chore(post-merge): install relevant styles branch
wesleyboar Apr 6, 2022
e0a2257
feat(ecep): hide branding bar
wesleyboar Apr 7, 2022
401db5c
Merge branch 'main' into task/ECEP-113-support-news
wesleyboar Apr 7, 2022
decda25
Merge branch 'main' into task/ECEP-113-support-news
wesleyboar Apr 7, 2022
6edf18b
style(ECEP-113): purple header and links
wesleyboar Apr 7, 2022
81e57db
style(ECEP-113): purple header and links
wesleyboar Apr 7, 2022
57a8472
Merge branch 'main' into task/ECEP-113-support-news
wesleyboar Apr 7, 2022
9e4e8b6
style(ecep): reduce logo width
wesleyboar Apr 7, 2022
93872b6
feat(ECEP-113): search placeholder matches bkgd
wesleyboar Apr 8, 2022
5e6f9bb
feat(ecep): update core-styles to branch head
wesleyboar Apr 8, 2022
6c9602b
chore(po): add missing new line (noop)
wesleyboar Apr 11, 2022
93e1bf7
fix(po): ensure any translation will work
wesleyboar Apr 11, 2022
e0dce39
feat(blog): pagination styles
wesleyboar Apr 11, 2022
d8fbf98
chore(core-styles): main (merge: c-page… c-button)
wesleyboar Apr 11, 2022
d768091
Merge branch 'main' into task/ECEP-113-support-news
wesleyboar Apr 11, 2022
a342b3e
feat(blog): hide tags & categories
wesleyboar Apr 12, 2022
bf03c6f
Merge branch 'main' into task/ECEP-113-support-news
wesleyboar Apr 12, 2022
9bbfb69
feat(core-styles): load tag/category hiding css
wesleyboar Apr 12, 2022
73bb3e4
fix(blog): revert "chore … more legible selector"
wesleyboar Apr 12, 2022
b540891
feat(blog): give list media only just enough space
wesleyboar Apr 13, 2022
fadc3f3
feat(blog/ecep): per-project blog styles to ecep
wesleyboar Apr 14, 2022
cd69142
fix(core-styles): blog article title width bad css
wesleyboar Apr 15, 2022
b16b4e6
fix(ecep): load blog css custom selectors
wesleyboar Apr 15, 2022
d6bb7a6
feat(core-styles): some ecep-114/3 css to share
wesleyboar Apr 15, 2022
67e833a
chore(ecep): taccsite_custom merge main
wesleyboar Apr 18, 2022
763f5d7
Merge branch 'main' into task/ECEP-113-support-news
wesleyboar Apr 18, 2022
f73d3b0
fix(core-styles): specific blog h2, h3 selectors
wesleyboar Apr 18, 2022
d32c867
fix(core-styles): more space under h3
wesleyboar Apr 18, 2022
39268b0
feat(plugins): undeprecate bootstrap picture
wesleyboar Apr 18, 2022
c1b4a5d
feat(blog): hide image via snippet
wesleyboar Apr 19, 2022
47f5605
feat(core-styles): blog main image text wrap
wesleyboar Apr 19, 2022
d2f3cad
feat(core-styles): blog article content drop-caps
wesleyboar Apr 19, 2022
34607d4
fix(core-styles): remove blog content drop-cap
wesleyboar Apr 19, 2022
4c4ca93
chore(core-styles): update since merging main
wesleyboar Apr 24, 2022
0a04d44
chore(core-styles): update since merging main
wesleyboar Apr 24, 2022
2701cd3
Merge branch 'main' into task/ECEP-113-support-news
wesleyboar Apr 24, 2022
5facd71
chore(submod): update w/ latest merge of main
wesleyboar Apr 24, 2022
edaa33b
Merge branch 'main' into task/ECEP-113-support-news
wesleyboar Apr 25, 2022
e0673a7
Merge branch 'main' into task/ECEP-113-support-news
wesleyboar Apr 25, 2022
2e78f01
Merge branch 'main' into task/ECEP-113-support-news
wesleyboar Apr 26, 2022
663b717
Merge branch 'main' into task/ECEP-113-support-news
wesleyboar Apr 26, 2022
c997130
Merge branch 'task/ECEP-113-support-news' of github.com:TACC/Core-CMS…
wesleyboar Apr 26, 2022
85896d8
feat(ECEP-113): post thumbnail box width required
wesleyboar Apr 26, 2022
10ddcf8
chore(ECEP-113): core-styles branch change
wesleyboar Apr 26, 2022
5716226
fix(ECEP-113): core-styles blog CSS correction
wesleyboar Apr 26, 2022
33675b9
fix(ECEP-113): snippet CSS not specific enough
wesleyboar Apr 26, 2022
4fee344
docs(ECEP-113): explain blog stylesheet location
wesleyboar Apr 26, 2022
8dedf35
fix(ECEP-113): thumbnail must not show if empty
wesleyboar Apr 26, 2022
e611c46
fix(ecep-113): move no-tags/cats from ecep to core
wesleyboar Apr 26, 2022
8d6ef48
fix(ecep-113): better article spacing & font size
wesleyboar Apr 27, 2022
3c1f718
fix(ecep-113): hide « / » of "« Previous / Next »"
wesleyboar Apr 27, 2022
119c318
fix(ecep-113): replace « / » with < / > via JS
wesleyboar Apr 27, 2022
081120c
Merge branch 'main' into task/ECEP-113-support-news
wesleyboar Apr 28, 2022
77da5d3
chore(ecep-113): merge submod main
wesleyboar Apr 29, 2022
d280ec7
chore(ecep-113): remove unused cms.picture classes
wesleyboar Apr 29, 2022
504e150
chore(ecep-113): move miscategorized cms.picture
wesleyboar Apr 29, 2022
7518a71
docs(ecep-113): clearer python comment (submod)
wesleyboar Apr 29, 2022
394f861
fix(ecep-113): move cms-specific styles to cms
wesleyboar Apr 29, 2022
2578ba2
feat(ecep-113): load renamed figure stylesheets
wesleyboar Apr 29, 2022
be3137d
docs(ecep-113): fix comment typos
wesleyboar Apr 29, 2022
191f94e
docs(ecep-113): fix comment typos (submod)
wesleyboar Apr 29, 2022
b5f75f0
refactor(ecep-113): blog stylesheets
wesleyboar Apr 29, 2022
79b6119
chore(ecep-113): save latest core-styles
wesleyboar Apr 29, 2022
86a2361
chore(ecep-113): noop core-styles update
wesleyboar Apr 29, 2022
9c80fb9
chore(ecep-113): noop core-styles update #2
wesleyboar Apr 29, 2022
72e393d
chore(ecep-113): blog CSS app pages v site plugins
wesleyboar Apr 29, 2022
63d7f2a
refactor(ecep-113): blog.app CSS
wesleyboar Apr 29, 2022
230ab2c
feat(ecep-113): better read more link during edit
wesleyboar Apr 29, 2022
03cf714
chore(ecep-113): improve blog text for editors
wesleyboar Apr 29, 2022
966fc39
chore(ecep-113): unload blog.plugins.css, tell why
wesleyboar Apr 29, 2022
94a879b
docs(blog): update outdated comment
wesleyboar May 2, 2022
4d5c11c
fix(ecep-113): blog list title first article space
wesleyboar May 3, 2022
c33b90f
chore(ecep-113): update submod and core-styles
wesleyboar May 3, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added taccsite_cms/locale/en/LC_MESSAGES/django.mo
Binary file not shown.
84 changes: 84 additions & 0 deletions taccsite_cms/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# The "Plural-Forms" fixes a bug (https://stackoverflow.com/a/64525866/11817077)
#
#, fuzzy
msgid ""
msgstr ""
"Last-Translator: Wesley B\n"
"Language-Team: TACC-ACI-WMA <wma_prtl@tacc.utexas.edu>\n"
"Language: en\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"



#: djangocms-blog
#: templates/djangocms_blog/includes/blog_meta.html:6
msgid "by"
msgstr "by:"

#: djangocms-blog
#: cms_appconfig.py:39
msgid ""
"If left empty the image size will have to be set for every newly created "
"post."
msgstr ""
"If left empty the image size must be set for every newly created "
"post. "
"And any post that unsets its image size will use this setting value."

#: djangocms-blog
#: cms_appconfig.py:45
msgid ""
"If left empty the thumbnail image size will have to be set for every newly "
"created post."
msgstr ""
"If left empty the thumbnail image size must be set for every newly "
"created post. "
"And any post that unsets its thumbnail image size will use this setting value."

#: djangocms-blog
#: templates/djangocms_blog/includes/blog_item.html:24
# this link text only appears for a CMS editor
msgid "read more"
msgstr "open article"

#: djangocms-blog
#: templates/djangocms_blog/post_list.html:29
msgid "previous"
msgstr "Previous"

#: djangocms-blog
#: templates/djangocms_blog/post_list.html:35
msgid "next"
msgstr "Next"



#: djangocms-picture
#: models.py:117
msgid "Aligns the image according to the selected option."
msgstr "Aligns the image according to the selected option. WARNING: Alignment behavior changes if \"Caption text\" is added."

#: djangocms-picture
#: models.py:123
msgid "Provide a description, attribution, copyright or other information."
msgstr "Provide a description, attribution, copyright or other information. WARNING: Adding caption text will change the behavior of \"Alignment\"."



#: site-cms(djangocms-blog)
#: templates/djangocms_blog/includes/blog_meta.html:6
msgid "Published"
msgstr "Published:"

#: site-cms(djangocms-blog)
#: templates/djangocms_blog/post_list.html:6
msgid "News"
msgstr ""
34 changes: 30 additions & 4 deletions taccsite_cms/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
import ldap
from django_auth_ldap.config import LDAPSearch, GroupOfNamesType

from django.utils.translation import gettext_lazy as _

SECRET_KEY = 'CHANGE_ME'
def gettext(s): return s

Expand Down Expand Up @@ -193,6 +195,13 @@ def gettext(s): return s
# for example, CEP_AUTH_VERIFICATION_ENDPOINT=https://dev.cep.tacc.utexas.edu
CEP_AUTH_VERIFICATION_ENDPOINT = 'http://django:6000'

########################
# TACC: NEWS/BLOG
########################

TACC_BLOG_SHOW_CATEGORIES = True
TACC_BLOG_SHOW_TAGS = True

########################
# CLIENT BUILD SETTINGS
########################
Expand Down Expand Up @@ -255,6 +264,10 @@ def gettext(s): return s
},
]

LOCALE_PATHS = [
os.path.join(BASE_DIR, 'taccsite_cms', 'locale'),
]
Comment on lines +267 to +269
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note. This is also added in #467 but with documentation about how to use .po files.


MIDDLEWARE = [
'cms.middleware.utils.ApphookReloadMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
Expand Down Expand Up @@ -289,7 +302,9 @@ def gettext(s): return s
'treebeard', # Replaces mptt.
'djangocms_text_ckeditor',
'filer',
'meta',
'easy_thumbnails',
'djangocms_page_meta',
'djangocms_column',
'djangocms_file',
'djangocms_link',
Expand Down Expand Up @@ -404,6 +419,11 @@ def get_subdirs_as_module_names(path):
576, 768, 992, 1200, 1400, 1680, 1920
]
DJANGOCMS_PICTURE_RATIO = 1.618
DJANGOCMS_PICTURE_ALIGN = [
('left', _('Align left')),
('right', _('Align right')),
('center', _('Align center')),
]
Comment on lines +422 to +426
Copy link
Member Author

@wesleyboar wesleyboar Apr 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note. These are the default setting values, but this offers a Python paper trail for devs to learn how the .article-left|right|center classes are created, because those .article-… classes have zero default styles (thus no CSS paper trail).1

Footnotes

  1. djangocms_picture's alignment option—by default—is available to users but does not do anything! So, I made them functional by adding the styles in taccsite_cms/static/site_cms/css/src/_imports/components/django.cms.picture.css.


# FILE UPLOAD VALUES MUST BE SET!
# Set in correlation with the `client_max_body_size 20m;` value in /etc/nginx/proxy.conf.
Expand Down Expand Up @@ -443,8 +463,6 @@ def get_subdirs_as_module_names(path):

SETTINGS_EXPORT_VARIABLE_NAME = 'settings'

FEATURES = ''

########################
# PLUGIN SETTINGS
########################
Expand Down Expand Up @@ -476,6 +494,13 @@ def get_subdirs_as_module_names(path):
'h1', 'h2', 'h3', 'h4', 'h5', 'h6'
]

# https://github.com/nephila/django-meta
META_SITE_PROTOCOL = 'http'
META_USE_SITES = True
META_USE_OG_PROPERTIES = True
META_USE_TWITTER_PROPERTIES = True
META_USE_SCHEMAORG_PROPERTIES = True

########################
# IMPORT & EXPORT
########################
Expand All @@ -500,12 +525,13 @@ def get_subdirs_as_module_names(path):

SETTINGS_EXPORT = [
'DEBUG',
'FEATURES',
'THEME',
'BRANDING',
'LOGO',
'FAVICON',
'INCLUDES_CORE_PORTAL',
'GOOGLE_ANALYTICS_PROPERTY_ID',
'GOOGLE_ANALYTICS_PRELOAD'
'GOOGLE_ANALYTICS_PRELOAD',
'TACC_BLOG_SHOW_CATEGORIES',
'TACC_BLOG_SHOW_TAGS'
]
47 changes: 23 additions & 24 deletions taccsite_cms/settings_custom.example.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,49 +79,48 @@
}
Copy link
Member Author

@wesleyboar wesleyboar Apr 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note. The changes on this page are all just example settings. In related PR TACC/Core-CMS-Resources#127, near identical changes were made to Texascale settings, and the new content is used almost verbatim in ECEP settings.


########################
# BLOG & SOCIAL METADATA
# NEWS / BLOG
########################

# Install required apps
INSTALLED_APPS += [
# Blog/News
# 'filer', # already added
# 'easy_thumbnails', # already added
tacc_app_index = INSTALLED_APPS.index('taccsite_cms')
INSTALLED_APPS[tacc_app_index:tacc_app_index] = [
# 'filer', # already in Core
# 'easy_thumbnails', # already in Core
'parler',
'taggit',
'taggit_autosuggest',
'meta', # also supports `djangocms_page_meta`
# 'meta', # already in Core
'sortedm2m',
'djangocms_blog',

# Metadata
'djangocms_page_meta',
]
# CAVEAT: 'taggit_autosuggest' requires the following is added to `urls.py`
# REQ: 'taggit_autosuggest' requires the following is added to `urls.py`
"""
urlpatterns += [
# Support `taggit_autosuggest` (from `djangocms-blog`)
url(r'^taggit_autosuggest/', include('taggit_autosuggest.urls')),
]
"""

# Metadata: Configure
META_SITE_PROTOCOL = 'http'
META_USE_SITES = True
META_USE_OG_PROPERTIES = True
META_USE_TWITTER_PROPERTIES = True
META_USE_GOOGLEPLUS_PROPERTIES = True # django-meta 1.x+
# META_USE_SCHEMAORG_PROPERTIES=True # django-meta 2.x+

# Blog/News: Set custom paths for templates
# Paths for alternate templates that user can choose for blog-specific plugin
# - Devs can customize core templates at `templates/djangocms_blog/`.
# - Users can choose alt. templates from `templates/djangocms_blog/plugins/*`.
# - Devs can customize alt. templates at `templates/djangocms_blog/plugins/*`.
BLOG_PLUGIN_TEMPLATE_FOLDERS = (
('plugins/default', 'Default template'), # i.e. `templates/djangocms_blog/plugins/default/`
('plugins/default-clone', 'Clone of default template'), # i.e. `templates/djangocms_blog/plugins/default-clone/`
('plugins', 'Default'),
# ('plugins/alternate', 'Alternate'),
)

# Blog/News: Change default values for the auto-setup of one `BlogConfig`
# Change default values for the auto-setup of one `BlogConfig`
# SEE: https://github.com/nephila/djangocms-blog/issues/629
BLOG_AUTO_SETUP = True
BLOG_AUTO_SETUP = True # Set to False after setup (minimize overhead)
BLOG_AUTO_HOME_TITLE ='Home'
BLOG_AUTO_BLOG_TITLE = 'News'
BLOG_AUTO_APP_TITLE = 'News'
BLOG_AUTO_NAMESPACE = 'News'

# Miscellaneous settings
BLOG_ENABLE_COMMENTS = False

# TACC settings
TACC_BLOG_SHOW_CATEGORIES = True
TACC_BLOG_SHOW_TAGS = True
3 changes: 3 additions & 0 deletions taccsite_cms/static/djangocms_blog/css/djangocms_blog.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/* SEE: ../../site_cms/css/src/app.blog.css */
/* FAQ: We uses future syntax that must be processed to work in the present;
and the process does not support outputting files to this directory */
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
/*
Django CMS Blog App Components

These styles are only for the blog app pages (list pages, article pages).

Reference:

- [Django CMS Blog App Templates](https://github.com/nephila/djangocms-blog/tree/1.1.1/djangocms_blog/templates/djangocms_blog)

Styleguide Components.DjangoCMS.Blog.App
*/
@import url("@tacc/core-styles/source/_imports/components/bootstrap.pagination.css");
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hint: The imported stylesheet comes from related PR TACC/Core-Styles#16.


@import url("./django.cms.blog.app.page.css");
@import url("./django.cms.blog.app.item.css");





/* Variables */

.app-blog {
--blog-item-buffer: 20px;
}



/* Selectors */

/* To make these selectors easier to remember (rather than add classnames) */
/* FAQ: Avoiding changing blog templates to limit app upgrade maintenance */
@custom-selector :--article article;
@custom-selector :--article-page article.post-detail;
@custom-selector :--article-item .blog-list article;



/* Header */

.blog-list > header {
margin-bottom: var(--blog-item-buffer);
}

ul.post-detail {
list-style: none;

padding-left: 0; /* overwrite html-elements.css */
margin-bottom: 0; /* overwrite Bootstrap `reboot.css` */

font-size: var(--global-font-size--medium);
}



/* Metadata */

/* To (optionally) hide tags & categories */
.app-blog.no-tags :--article .tags,
.app-blog.no-categories :--article .categories {
display: none;
}




/* Pagination */

.pagination {
margin-block: calc( var(--blog-item-buffer) * 2 );
}
Loading