Added new widgets and text styles and fonts to the system; Moved the logo into the project proper so nothing should be in the root Public folder any more (other than generated content).

This commit is contained in:
2021-01-16 15:30:06 -08:00
parent db2a612e2a
commit 6823384b20
19 changed files with 207 additions and 89 deletions

View File

@@ -10,21 +10,25 @@
{% block main %}
<div class="container" style="margin-top: 3rem">
{{ apos.area(data.page, "body", {
widgets: {
'apostrophe-images': {size: 'one-half'},
'apostrophe-rich-text': {
toolbar: ['Styles', 'Bold', 'Italic', 'Link', 'Unlink', 'Anchor', 'Table', 'BulletedList', 'Blockquote', 'import'],
styles: [
{name: 'Paragraph', element: 'p'},
{name: 'Heading 2', element: 'h2'},
{name: 'Heading 3', element: 'h3'},
{name: 'Heading 4', element: 'h4'},
{name: 'Heading 5', element: 'h5'}
]
},
'apostrophe-files': {},
'two-column': {}
}
widgets: {
'apostrophe-images': {size: 'original'},
'apostrophe-rich-text': {
toolbar: ['Styles', 'Bold', 'Italic', 'Link', 'Unlink', 'Indent', 'Outdent', 'Anchor', 'Table', 'BulletedList', 'Blockquote', 'Strike', 'Subscript', 'Superscript', 'Split'],
styles: [
{name: 'Paragraph', element: 'p'},
{name: 'Topic Paragraph', element: 'p', attributes: {class: "indent"} },
{name: 'Heading 2', element: 'h2'},
{name: 'Heading 3', element: 'h3'},
{name: 'Heading 4', element: 'h4'},
{name: 'Heading 5', element: 'h5'},
{name: 'highlighted', element: 'div', attributes: {class: "highlighted"} }
]
},
'apostrophe-files': {},
'two-column': {},
'two-column-1-2': {},
'two-column-2-1': {}
}
}) }}
</div>
{% endblock %}

View File

@@ -9,23 +9,27 @@
{% block main %}
<div class="container" style="margin-top: 3rem">
{{ apos.area(data.page, "body", {
widgets: {
'apostrophe-images': {size: 'one-half'},
'apostrophe-rich-text': {
toolbar: ['Styles', 'Bold', 'Italic', 'Link', 'Unlink', 'Anchor', 'Table', 'BulletedList', 'Blockquote', 'import'],
styles: [
{name: 'Paragraph', element: 'p'},
{name: 'Heading 2', element: 'h2'},
{name: 'Heading 3', element: 'h3'},
{name: 'Heading 4', element: 'h4'},
{name: 'Heading 5', element: 'h5'}
]
},
'apostrophe-files': {},
'two-column': {}
}
}) }}
{{ apos.area(data.page, "body", {
widgets: {
'apostrophe-images': {size: 'original'},
'apostrophe-rich-text': {
toolbar: ['Styles', 'Bold', 'Italic', 'Link', 'Unlink', 'Indent', 'Outdent', 'Anchor', 'Table', 'BulletedList', 'Blockquote', 'Strike', 'Subscript', 'Superscript', 'Split'],
styles: [
{name: 'Paragraph', element: 'p'},
{name: 'Topic Paragraph', element: 'p', attributes: {class: "indent"} },
{name: 'Heading 2', element: 'h2'},
{name: 'Heading 3', element: 'h3'},
{name: 'Heading 4', element: 'h4'},
{name: 'Heading 5', element: 'h5'},
{name: 'highlighted', element: 'div', attributes: {class: "highlighted"} }
]
},
'apostrophe-files': {},
'two-column': {},
'two-column-1-2': {},
'two-column-2-1': {}
}
}) }}
</div>
{% endblock %}

View File

@@ -8,18 +8,19 @@
'apostrophe-rich-text': {
toolbar: ['Styles', 'Bold', 'Italic', 'Link', 'Unlink', 'Indent', 'Outdent', 'Anchor', 'Table', 'BulletedList', 'Blockquote', 'Strike', 'Subscript', 'Superscript', 'Split'],
styles: [
{name: 'Paragraph', element: 'p', attributes: {class: "p"} },
{name: 'Heading 2', element: 'h2', attributes: {class: "h2"} },
{name: 'Heading 3', element: 'h3', attributes: {class: "h3"} },
{name: 'Heading 4', element: 'h4', attributes: {class: "h4"} },
{name: 'Heading 5', element: 'h5', attributes: {class: "h5"} },
{name: 'highlighted', element: 'div', attributes: {class: "highlighted"} },
{name: 'bullet2', element: 'div', attributes: {class: "bulletLevel2"} }
{name: 'Paragraph', element: 'p'},
{name: 'Topic Paragraph', element: 'p', attributes: {class: "indent"} },
{name: 'Heading 2', element: 'h2'},
{name: 'Heading 3', element: 'h3'},
{name: 'Heading 4', element: 'h4'},
{name: 'Heading 5', element: 'h5'},
{name: 'highlighted', element: 'div', attributes: {class: "highlighted"} }
]
},
'apostrophe-files': {},
'two-column': {},
'two-column-1-2': {}
'two-column-1-2': {},
'two-column-2-1': {}
}
}) }}
</div>