forked from Princeton-CDH/cdh-web
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #97 from springload/feature/blog-page-bed
blog page and blog landing page
- Loading branch information
Showing
18 changed files
with
402 additions
and
154 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
cdhweb/blog/migrations/0013_rename_featured_image_blogpost_image.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 5.0.5 on 2024-06-11 21:08 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("blog", "0012_alter_blogpost_body"), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name="blogpost", | ||
old_name="featured_image", | ||
new_name="image", | ||
), | ||
] |
38 changes: 38 additions & 0 deletions
38
cdhweb/blog/migrations/0014_blogpost_alt_text_blogpost_caption_blogpost_credit.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Generated by Django 5.0.5 on 2024-06-11 21:17 | ||
|
||
import wagtail.fields | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("blog", "0013_rename_featured_image_blogpost_image"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="blogpost", | ||
name="alt_text", | ||
field=models.CharField( | ||
blank=True, | ||
help_text="Describe the image for screen readers", | ||
max_length=80, | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="blogpost", | ||
name="caption", | ||
field=wagtail.fields.RichTextField( | ||
blank=True, help_text="A short caption for the image.", max_length=180 | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="blogpost", | ||
name="credit", | ||
field=wagtail.fields.RichTextField( | ||
blank=True, | ||
help_text="A credit line or attribution for the image.", | ||
max_length=80, | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Generated by Django 5.0.5 on 2024-06-11 21:21 | ||
|
||
import wagtail.fields | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("blog", "0014_blogpost_alt_text_blogpost_caption_blogpost_credit"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="blogpost", | ||
name="description", | ||
field=wagtail.fields.RichTextField( | ||
blank=True, | ||
help_text="Short introduction to the page, aim for max two clear sentences (max. 200 chars).", | ||
max_length=200, | ||
null=True, | ||
verbose_name="Blog description", | ||
), | ||
), | ||
] |
33 changes: 33 additions & 0 deletions
33
cdhweb/blog/migrations/0016_blogpost_short_description_blogpost_short_title.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Generated by Django 5.0.5 on 2024-06-11 21:50 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("blog", "0015_alter_blogpost_description"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="blogpost", | ||
name="short_description", | ||
field=models.TextField( | ||
blank=True, | ||
help_text="A short description of the content for promotional or navigation purposes. Displayed on tiles, not on page itself.", | ||
max_length=130, | ||
verbose_name="Short description", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="blogpost", | ||
name="short_title", | ||
field=models.CharField( | ||
blank=True, | ||
default="", | ||
help_text="Displayed on tiles, breadcrumbs etc., not on page itself. ", | ||
max_length=80, | ||
verbose_name="Short title", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Generated by Django 5.0.5 on 2024-06-12 04:24 | ||
|
||
import django.db.models.deletion | ||
import wagtail.fields | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("blog", "0016_blogpost_short_description_blogpost_short_title"), | ||
("cdhpages", "0047_alter_contentpage_body_alter_homepage_body_and_more"), | ||
("wagtailcore", "0089_log_entry_data_json_null_to_object"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="BlogLandingPage", | ||
fields=[ | ||
( | ||
"page_ptr", | ||
models.OneToOneField( | ||
auto_created=True, | ||
on_delete=django.db.models.deletion.CASCADE, | ||
parent_link=True, | ||
primary_key=True, | ||
serialize=False, | ||
to="wagtailcore.page", | ||
), | ||
), | ||
( | ||
"description", | ||
wagtail.fields.RichTextField( | ||
blank=True, | ||
help_text="Short introduction to the page, aim for max two clear sentences (max. 200 chars). \n Used to orient the user and help them identify relevancy of the page to meet their needs. ", | ||
max_length=200, | ||
null=True, | ||
verbose_name="Page Summary", | ||
), | ||
), | ||
], | ||
options={ | ||
"abstract": False, | ||
}, | ||
bases=("wagtailcore.page", models.Model), | ||
), | ||
migrations.RenameModel( | ||
old_name="BlogLinkPage", | ||
new_name="BlogLinkPageArchived", | ||
), | ||
migrations.AddField( | ||
model_name="blogpost", | ||
name="category", | ||
field=models.CharField( | ||
blank=True, | ||
help_text="Category tag to display on tile", | ||
max_length=20, | ||
verbose_name="Category", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.