Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ This powerful combination gives you Astro's incredible performance and developer
This is a **minimal, non-opinionated foundation** that demonstrates the ApostropheCMS + Astro integration without imposing design decisions on your project. You get the essential building blocks:

- **Basic Page Types**: Home page, default content page, and simple blog structure
- **Core Widgets**: Rich text, images, video, and a two-column layout widget
- **Core Widgets**: Rich text, images, video, and a layout widget
- **Clean Architecture**: Well-organized but unopinionated code structure
- **Integration Examples**: Working demonstrations of content fetching and rendering

Expand Down
4 changes: 2 additions & 2 deletions backend/modules/@apostrophecms/home-page/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ export default {
type: 'area',
options: {
widgets: {
'@apostrophecms/layout': {},
'@apostrophecms/rich-text': {},
'@apostrophecms/image': {},
'@apostrophecms/video': {},
'two-column': {}
'@apostrophecms/video': {}
}
}
},
Expand Down
19 changes: 19 additions & 0 deletions backend/modules/@apostrophecms/layout-column-widget/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
export default {
fields(self, options) {
return {
add: {
content: {
type: 'area',
label: 'Main Content',
options: {
widgets: {
'@apostrophecms/rich-text': {},
'@apostrophecms/image': {},
'@apostrophecms/video': {}
}
}
}
}
};
}
};
4 changes: 2 additions & 2 deletions backend/modules/default-page/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ export default {
type: 'area',
options: {
widgets: {
'@apostrophecms/layout': {},
'@apostrophecms/rich-text': {},
'@apostrophecms/image': {},
'@apostrophecms/video': {},
'two-column': {}
'@apostrophecms/video': {}
}
}
}
Expand Down
29 changes: 0 additions & 29 deletions backend/modules/two-column-widget/index.js

This file was deleted.

1 change: 0 additions & 1 deletion backend/modules/two-column-widget/views/widget.html

This file was deleted.

20 changes: 0 additions & 20 deletions frontend/src/widgets/TwoColumnWidget.astro

This file was deleted.

6 changes: 4 additions & 2 deletions frontend/src/widgets/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import RichTextWidget from './RichTextWidget.astro';
import ImageWidget from './ImageWidget.astro';
import VideoWidget from './VideoWidget.astro';
import TwoColumnWidget from './TwoColumnWidget.astro';
import LayoutWidget from '@apostrophecms/apostrophe-astro/widgets/LayoutWidget.astro';
import LayoutColumnWidget from '@apostrophecms/apostrophe-astro/widgets/LayoutColumnWidget.astro';

const widgetComponents = {
'@apostrophecms/rich-text': RichTextWidget,
'@apostrophecms/image': ImageWidget,
'@apostrophecms/video': VideoWidget,
'two-column': TwoColumnWidget
'@apostrophecms/layout': LayoutWidget,
'@apostrophecms/layout-column': LayoutColumnWidget
};

export default widgetComponents;