-
Notifications
You must be signed in to change notification settings - Fork 1
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
Changes from all commits
8ed59e4
d81b971
97ce729
ea3b25b
d13c0c1
7e9e0eb
f05ac60
27f2610
688d139
369d0e1
4469f6a
45ab869
8f9f750
bcb8f6e
4991f64
396210c
38ccde2
584ebf1
9db9f4e
e3d3ff3
8b9e325
ace4310
8b06368
42cb803
6819782
fe2d7d5
3a2afc4
4a4096d
bcb93d4
d08e9ca
ac8830d
1064238
bbf11f4
249b0a8
04f82d4
29e174c
7b66cd7
11ca7fd
4a1adee
f789d60
18478c5
21c3e36
f10dacc
57d94bf
287a01a
944c5c3
408dae9
27f9b8b
3f10937
8d4ff9b
41d7ac6
deb9971
d169d32
8687b04
261d16f
c367b76
62b95c5
72c5ac4
fc61645
3c6af57
540a783
d2604d0
81cb67c
d21001a
72ede07
114bd83
5dd0e47
71a71d9
c069c69
32ffaa1
66fad60
d8bba63
63c6e9b
7f153f4
2ef4680
c2d4002
3c305ca
b880765
cab772d
6f067ed
301b507
1710f49
b1ce7fc
c16c778
4d7633e
dad3d2c
0cfbd96
c3aafad
72fbac7
0904b17
eb0e01b
c31b6f7
3fbaefd
d9e4306
c085b75
0a4189d
7a5fa12
ad82728
931349b
daa8043
bbe6e15
4a363ba
9b907fb
860b9ee
38e0c51
e43e98b
9c12020
9276050
c14ce0a
1d28303
081b9d4
b284226
e0a2257
401db5c
decda25
6edf18b
81e57db
57a8472
9e4e8b6
93872b6
5e6f9bb
6c9602b
93e1bf7
e0dce39
d8fbf98
d768091
a342b3e
bf03c6f
9bbfb69
73bb3e4
b540891
fadc3f3
cd69142
b16b4e6
d6bb7a6
67e833a
763f5d7
f73d3b0
d32c867
39268b0
c1b4a5d
47f5605
d2f3cad
34607d4
4c4ca93
0a04d44
2701cd3
5facd71
edaa33b
e0673a7
2e78f01
663b717
c997130
85896d8
10ddcf8
5716226
33675b9
4fee344
8dedf35
e611c46
8d6ef48
3c1f718
119c318
081120c
77da5d3
d280ec7
504e150
7518a71
394f861
2578ba2
be3137d
191f94e
b5f75f0
79b6119
86a2361
9c80fb9
72e393d
63d7f2a
230ab2c
03cf714
966fc39
94a879b
4d5c11c
c33b90f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 "" |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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 | ||
######################## | ||
|
@@ -255,6 +264,10 @@ def gettext(s): return s | |
}, | ||
] | ||
|
||
LOCALE_PATHS = [ | ||
os.path.join(BASE_DIR, 'taccsite_cms', 'locale'), | ||
] | ||
|
||
MIDDLEWARE = [ | ||
'cms.middleware.utils.ApphookReloadMiddleware', | ||
'django.contrib.sessions.middleware.SessionMiddleware', | ||
|
@@ -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', | ||
|
@@ -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
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 Footnotes
|
||
|
||
# FILE UPLOAD VALUES MUST BE SET! | ||
# Set in correlation with the `client_max_body_size 20m;` value in /etc/nginx/proxy.conf. | ||
|
@@ -443,8 +463,6 @@ def get_subdirs_as_module_names(path): | |
|
||
SETTINGS_EXPORT_VARIABLE_NAME = 'settings' | ||
|
||
FEATURES = '' | ||
|
||
######################## | ||
# PLUGIN SETTINGS | ||
######################## | ||
|
@@ -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 | ||
######################## | ||
|
@@ -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' | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,49 +79,48 @@ | |
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
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"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 ); | ||
} |
There was a problem hiding this comment.
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.