-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Change breadcrumbs to dynamic values * review accessibility on social icons * Add blog stylesheet * Add style blog page and review block template * add text with image heading template block * paragraph limit now 10000 and rich text. * removed richtext field, add heading with dropdown for h size * list styles for numerated, circle and none * style image, text, header combination blocks * add icons for blocks * eddit padding for blog entry * margin and block quote styles * remove quote from richtext options now that it is a styled block * alter block quote migration * caption an dlist padding * fix migrations for puput --------- Co-authored-by: Sarah Abderemane <sarahabderemane@gmail.com>
- Loading branch information
1 parent
699fdd9
commit 497e0b6
Showing
19 changed files
with
676 additions
and
70 deletions.
There are no files selected for viewing
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
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,182 @@ | ||
# Generated by Django 4.1.13 on 2023-12-29 06:35 | ||
|
||
from django.db import migrations | ||
import wagtail.blocks | ||
import wagtail.contrib.table_block.blocks | ||
import wagtail.fields | ||
import wagtail.images.blocks | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("home", "0017_generalpage_generaltag_generalpage_tags"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="generalpage", | ||
name="content", | ||
field=wagtail.fields.StreamField( | ||
[ | ||
( | ||
"heading", | ||
wagtail.blocks.StructBlock( | ||
[ | ||
( | ||
"size", | ||
wagtail.blocks.ChoiceBlock( | ||
choices=[ | ||
("text-5xl", "h1"), | ||
("text-4xl", "h2"), | ||
("text-3xl", "h3"), | ||
("text-2xl", "h4"), | ||
("text-xl", "h5"), | ||
("text-lg", "h6"), | ||
], | ||
icon="title", | ||
), | ||
), | ||
( | ||
"heading", | ||
wagtail.blocks.CharBlock( | ||
class_name="heading-blog", max_length=255 | ||
), | ||
), | ||
], | ||
class_name="full", | ||
), | ||
), | ||
("subheading", wagtail.blocks.CharBlock(class_name="full")), | ||
("paragraph", wagtail.blocks.RichTextBlock(class_name="full")), | ||
("HTML", wagtail.blocks.RawHTMLBlock(class_name="full")), | ||
("image", wagtail.images.blocks.ImageChooserBlock()), | ||
( | ||
"text_with_heading", | ||
wagtail.blocks.StructBlock( | ||
[ | ||
( | ||
"size", | ||
wagtail.blocks.ChoiceBlock( | ||
choices=[ | ||
("text-5xl", "h1"), | ||
("text-4xl", "h2"), | ||
("text-3xl", "h3"), | ||
("text-2xl", "h4"), | ||
("text-xl", "h5"), | ||
("text-lg", "h6"), | ||
], | ||
icon="title", | ||
), | ||
), | ||
( | ||
"heading", | ||
wagtail.blocks.CharBlock( | ||
class_name="heading-blog", max_length=255 | ||
), | ||
), | ||
], | ||
class_name="full", | ||
), | ||
), | ||
( | ||
"text_heading_image", | ||
wagtail.blocks.StructBlock( | ||
[ | ||
("heading", wagtail.blocks.CharBlock(max_length=255)), | ||
("text", wagtail.blocks.TextBlock()), | ||
("image", wagtail.images.blocks.ImageChooserBlock()), | ||
], | ||
class_name="full", | ||
), | ||
), | ||
( | ||
"video_embed", | ||
wagtail.blocks.StructBlock( | ||
[ | ||
("heading", wagtail.blocks.CharBlock(max_length=255)), | ||
("text", wagtail.blocks.TextBlock()), | ||
], | ||
class_name="full", | ||
), | ||
), | ||
( | ||
"table", | ||
wagtail.contrib.table_block.blocks.TableBlock( | ||
class_name="full" | ||
), | ||
), | ||
( | ||
"code_block", | ||
wagtail.blocks.StructBlock( | ||
[ | ||
( | ||
"language", | ||
wagtail.blocks.ChoiceBlock( | ||
choices=[ | ||
("Python", "python"), | ||
("Markup", "html"), | ||
("CSS", "css"), | ||
("Clojure", "clojure"), | ||
("Bash", "shell"), | ||
("Django", "django"), | ||
("Jinja2", "jinja2"), | ||
("Docker", "dockerfile"), | ||
("Git", "git"), | ||
("GraphQL", "graphql"), | ||
("Handlebars", "handlebars"), | ||
(".ignore", "gitignore"), | ||
("JSON", "json"), | ||
("JSON5", "json5"), | ||
("Markdown", "md"), | ||
("Markdown", "md"), | ||
("React JSX", "jsx"), | ||
("React TSX", "tsx"), | ||
("SASS", "sass"), | ||
("SCSS", "scss"), | ||
("TypeScript", "ts"), | ||
("vim", "vim"), | ||
] | ||
), | ||
), | ||
( | ||
"caption", | ||
wagtail.blocks.CharBlock( | ||
blank=True, max_length=255 | ||
), | ||
), | ||
( | ||
"page", | ||
wagtail.blocks.CharBlock( | ||
blank=True, max_length=255 | ||
), | ||
), | ||
( | ||
"code", | ||
wagtail.blocks.TextBlock( | ||
blank=True, max_length=1000 | ||
), | ||
), | ||
], | ||
class_name="full", | ||
), | ||
), | ||
( | ||
"quote_block", | ||
wagtail.blocks.StructBlock( | ||
[ | ||
("text", wagtail.blocks.CharBlock(max_length=255)), | ||
( | ||
"attribution", | ||
wagtail.blocks.CharBlock(max_length=255), | ||
), | ||
], | ||
class_name="full", | ||
), | ||
), | ||
], | ||
blank=True, | ||
null=True, | ||
use_json_field=None, | ||
), | ||
), | ||
] |
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 |
---|---|---|
|
@@ -8,7 +8,6 @@ | |
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('puput', '0002_entrypage_markdown_body'), | ||
] | ||
|
Oops, something went wrong.