-
Notifications
You must be signed in to change notification settings - Fork 0
Added PostFeedLayout and PostCategoryLayout #15
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
df74c69
Added PostFeedLayout and PostCategoryLayout
smnh b4fac85
added category to posts
TomasBankauskas 4b8b850
updated startup theme with PostFeedLayout
smnh d509e42
updated blog to use PostFeedLayout and PostFeedCategoryLayout
smnh ac34455
updated content
TomasBankauskas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,5 @@ | ||
| --- | ||
| layout: PostFeedCategoryLayout | ||
| title: Jamstack | ||
| numOfPostsPerPage: 10 | ||
| --- |
This file contains hidden or 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,5 @@ | ||
| --- | ||
| layout: PostFeedCategoryLayout | ||
| title: React | ||
| numOfPostsPerPage: 10 | ||
| --- | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -1,32 +1,5 @@ | ||
| --- | ||
| layout: PostFeedLayout | ||
| title: Blog post page | ||
| layout: PageLayout | ||
| sections: | ||
| - type: PostFeedSection | ||
| variant: variant-a | ||
| colors: colors-e | ||
| title: Blog | ||
| showRecent: false | ||
| styles: | ||
| self: | ||
| height: auto | ||
| width: wide | ||
| margin: ['mt-0', 'mb-0', 'ml-0', 'mr-0'] | ||
| padding: ["pt-12", "pb-12", "pr-4", "pl-4"] | ||
| justifyContent: center | ||
| borderRadius: none | ||
| borderWidth: 0 | ||
| borderStyle: none | ||
| borderColor: border-neutral | ||
| title: | ||
| fontWeight: '700' | ||
| fontStyle: normal | ||
| textAlign: center | ||
| margin: ["mt-0", "mb-12"] | ||
| subtitle: | ||
| fontWeight: '400' | ||
| fontStyle: normal | ||
| textAlign: center | ||
| actions: | ||
| justifyContent: center | ||
| numOfPostsPerPage: 10 | ||
| --- |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,10 @@ | ||
| --- | ||
| layout: PostFeedCategoryLayout | ||
| title: Business | ||
| numOfPostsPerPage: 10 | ||
| postFeed: | ||
| showDate: true | ||
| showAuthor: true | ||
| variant: variant-d | ||
| colors: colors-a | ||
| --- |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,27 +1,10 @@ | ||
| --- | ||
| title: Blog post page | ||
| layout: PageLayout | ||
| sections: | ||
| - type: PostFeedSection | ||
| variant: variant-a | ||
| colors: colors-a | ||
| title: Blog | ||
| showRecent: false | ||
| styles: | ||
| self: | ||
| height: auto | ||
| width: wide | ||
| margin: ['mt-0', 'mb-0', 'ml-0', 'mr-0'] | ||
| padding: ['pt-14', 'pb-24', 'pr-4', 'pl-4'] | ||
| justifyContent: center | ||
| borderRadius: none | ||
| borderWidth: 0 | ||
| borderStyle: none | ||
| borderColor: border-dark | ||
| title: | ||
| textAlign: center | ||
| subtitle: | ||
| textAlign: center | ||
| actions: | ||
| justifyContent: center | ||
| layout: PostFeedLayout | ||
| title: Blog | ||
| numOfPostsPerPage: 10 | ||
| postFeed: | ||
| showDate: true | ||
| showAuthor: true | ||
| variant: variant-d | ||
| colors: colors-a | ||
| --- |
This file contains hidden or 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,45 @@ | ||
| --- | ||
| title: What Great Startups Do Differently | ||
| date: '2020-09-26' | ||
| excerpt: Ut expedita iure et iste placeat id consequatur veritatis et saepe voluptas non voluptas nesciunt sed voluptate rerum. Ea deleniti unde et exercitationem voluptatibus non doloribus officiis qui harum eaque. | ||
| category: content/pages/blog/category/business.md | ||
| featuredImage: | ||
| type: ImageBlock | ||
| url: /images/post-8.jpg | ||
| altText: Function of design image | ||
| bottomSections: | ||
| - elementId: '' | ||
| variant: variant-a | ||
| colors: colors-a | ||
| title: Read next | ||
| actions: [] | ||
| posts: | ||
| - content/pages/blog/post-one.md | ||
| - content/pages/blog/post-three.md | ||
| - content/pages/blog/post-five.md | ||
| styles: | ||
| self: | ||
| height: auto | ||
| width: wide | ||
| margin: ['mt-0', 'mb-0', 'ml-0', 'mr-0'] | ||
| padding: ['pt-12', 'pb-12', 'pr-4', 'pl-4'] | ||
| justifyContent: center | ||
| title: | ||
| fontWeight: '700' | ||
| fontStyle: normal | ||
| textAlign: center | ||
| subtitle: | ||
| fontWeight: '400' | ||
| fontStyle: normal | ||
| textAlign: center | ||
| actions: | ||
| justifyContent: center | ||
| type: FeaturedPostsSection | ||
| layout: PostLayout | ||
| --- | ||
|
|
||
| Vis accumsan feugiat adipiscing nisl amet adipiscing accumsan blandit accumsan sapien blandit ac amet faucibus aliquet placerat commodo. Interdum ante aliquet commodo accumsan vis phasellus adipiscing. Ornare a in lacinia. Vestibulum accumsan ac metus massa tempor. Accumsan in lacinia ornare massa amet. Ac interdum ac non praesent. Cubilia lacinia interdum massa faucibus blandit nullam. Accumsan phasellus nunc integer. Accumsan euismod nunc adipiscing lacinia erat ut sit. Arcu amet. Id massa aliquet arcu accumsan lorem amet accumsan. | ||
|
|
||
| Amet nibh adipiscing adipiscing. Commodo ante vis placerat interdum massa massa primis. Tempus condimentum tempus non ac varius cubilia adipiscing placerat lorem turpis at. Aliquet lorem porttitor interdum. Amet lacus. Aliquam lobortis faucibus blandit ac phasellus. In amet magna non interdum volutpat porttitor metus a ante ac neque. Nisi turpis. Commodo col. Interdum adipiscing mollis ut aliquam id ante adipiscing commodo integer arcu amet Ac interdum ac non praesent. Cubilia lacinia interdum massa faucibus blandit nullam. Accumsan phasellus nunc integer. Accumsan euismod nunc adipiscing lacinia erat ut sit. Arcu amet. Id massa aliquet arcu accumsan lorem amet accumsan commodo odio cubilia ac eu interdum placerat placerat arcu commodo lobortis adipiscing semper ornare pellentesque. | ||
|
|
||
| Amet nibh adipiscing adipiscing. Commodo ante vis placerat interdum massa massa primis. Tempus condimentum tempus non ac varius cubilia adipiscing placerat lorem turpis at. Aliquet lorem porttitor interdum. Amet lacus. Aliquam lobortis faucibus blandit ac phasellus. In amet magna non interdum volutpat porttitor metus a ante ac neque. Nisi turpis. Commodo col. Interdum adipiscing mollis ut aliquam id ante adipiscing commodo integer arcu amet blandit adipiscing arcu ante. |
This file contains hidden or 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,46 @@ | ||
| --- | ||
| title: The Top Ten Lessons We’ve Learned Since Our Initial Launch | ||
| date: '2021-01-15' | ||
| author: content/data/team/hilary-ouse.json | ||
| category: content/pages/blog/category/business.md | ||
| excerpt: Sit ratione eligendi et quis distinctio et maiores accusantium aut accusamus facere sit repellat quidem qui alias nostrum et earum enim. Cum quis sint eos dolor quas ad odit ipsum qui quia eius. | ||
| featuredImage: | ||
| type: ImageBlock | ||
| url: /images/post-11.jpg | ||
| altText: Function of design image | ||
| bottomSections: | ||
| - elementId: '' | ||
| variant: variant-a | ||
| colors: colors-a | ||
| title: Read next | ||
| actions: [] | ||
| posts: | ||
| - content/pages/blog/post-one.md | ||
| - content/pages/blog/post-three.md | ||
| - content/pages/blog/post-five.md | ||
| styles: | ||
| self: | ||
| height: auto | ||
| width: wide | ||
| margin: ['mt-0', 'mb-0', 'ml-0', 'mr-0'] | ||
| padding: ['pt-12', 'pb-12', 'pr-4', 'pl-4'] | ||
| justifyContent: center | ||
| title: | ||
| fontWeight: '700' | ||
| fontStyle: normal | ||
| textAlign: center | ||
| subtitle: | ||
| fontWeight: '400' | ||
| fontStyle: normal | ||
| textAlign: center | ||
| actions: | ||
| justifyContent: center | ||
| type: FeaturedPostsSection | ||
| layout: PostLayout | ||
| --- | ||
|
|
||
| Interdum posuere lorem ipsum dolor sit amet consectetur. Odio morbi quis commodo odio aenean sed adipiscing diam donec. Vitae congue mauris rhoncus aenean vel elit scelerisque mauris pellentesque. Porttitor massa id neque aliquam vestibulum morbi blandit cursus. Vitae aliquet nec ullamcorper sit. Gravida arcu ac tortor dignissim convallis aenean. Quisque sagittis purus sit amet volutpat consequat mauris nunc congue. Est ultricies integer quis auctor. Commodo quis imperdiet massa tincidunt nunc pulvinar sapien. Vel risus commodo viverra maecenas accumsan lacus. Donec adipiscing tristique risus nec feugiat in fermentum. Habitasse platea dictumst quisque sagittis purus sit. Quam adipiscing vitae proin sagittis nisl rhoncus mattis rhoncus urna. Id leo in vitae turpis massa sed. Auctor elit sed vulputate mi sit. Gravida arcu ac tortor dignissim convallis aenean et. | ||
|
|
||
| Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Auctor augue mauris augue neque gravida in fermentum et. Eget mi proin sed libero enim sed faucibus turpis in. Semper auctor neque vitae tempus. Nibh nisl condimentum id venenatis a condimentum vitae sapien. Et malesuada fames ac turpis egestas sed tempus urna. Tristique magna sit amet purus gravida. Lobortis elementum nibh tellus molestie. Natoque penatibus et magnis dis parturient montes nascetur. Lacus sed viverra tellus in hac habitasse platea. Duis ultricies lacus sed turpis tincidunt id aliquet risus. Vitae congue eu consequat ac felis donec et. Nec tincidunt praesent semper feugiat nibh sed pulvinar proin gravida. Lobortis mattis aliquam faucibus purus in massa tempor nec feugiat. In nibh mauris cursus mattis molestie. Proin libero nunc consequat interdum varius sit amet. Molestie at elementum eu facilisis sed odio morbi quis commodo. | ||
|
|
||
| Vitae congue mauris rhoncus aenean vel elit scelerisque mauris. Ac tincidunt vitae semper quis lectus nulla at volutpat diam. Eget arcu dictum varius duis at consectetur lorem. Nec ullamcorper sit amet risus nullam eget felis. Laoreet non curabitur gravida arcu ac tortor. Cursus metus aliquam eleifend mi in. Faucibus vitae aliquet nec ullamcorper sit amet. Consectetur a erat nam at lectus urna. Porttitor eget dolor morbi non arcu risus quis varius quam. Condimentum mattis pellentesque id nibh tortor id aliquet. Augue neque gravida in fermentum.. |
This file contains hidden or 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,21 @@ | ||
| --- | ||
| title: Our Biggest Failure – And How We’ve Overcome It | ||
| date: '2021-10-26' | ||
| author: content/data/team/dianne-ameter.json | ||
| excerpt: Ab voluptates quae et voluptas autem ut quod error non nobis earum. Qui tempora corporis sit libero corporis eos aliquam temporibus qui consectetur quia ut itaque iusto eos enim praesentium. | ||
| featuredImage: | ||
| type: ImageBlock | ||
| url: /images/post-5.jpg | ||
| altText: Post thumbnail image | ||
| bottomSections: [] | ||
| layout: PostLayout | ||
| --- | ||
| Vis accumsan feugiat adipiscing nisl amet adipiscing accumsan blandit accumsan sapien blandit ac amet faucibus aliquet placerat commodo. Interdum ante aliquet commodo accumsan vis phasellus adipiscing. Ornare a in lacinia. Vestibulum accumsan ac metus massa tempor. Accumsan in lacinia ornare massa amet. Ac interdum ac non praesent. Cubilia lacinia interdum massa faucibus blandit nullam. Accumsan phasellus nunc integer. Accumsan euismod nunc adipiscing lacinia erat ut sit. Arcu amet. Id massa aliquet arcu accumsan lorem amet accumsan. | ||
|
|
||
|  | ||
|
|
||
| Amet nibh adipiscing adipiscing. Commodo ante vis placerat interdum massa massa primis. Tempus condimentum tempus non ac varius cubilia adipiscing placerat lorem turpis at. Aliquet lorem porttitor interdum. Amet lacus. Aliquam lobortis faucibus blandit ac phasellus. | ||
|
|
||
|  | ||
|
|
||
| Vis accumsan feugiat adipiscing nisl amet adipiscing accumsan blandit accumsan sapien blandit ac amet faucibus aliquet placerat commodo. Interdum ante aliquet commodo accumsan vis phasellus adipiscing. Ornare a in lacinia. Vestibulum accumsan ac metus massa tempor. Accumsan in lacinia ornare massa amet. Ac interdum ac non praesent. Cubilia lacinia interdum massa faucibus blandit nullam. Accumsan phasellus nunc integer. Accumsan euismod nunc adipiscing lacinia erat ut sit. Arcu amet. Id massa aliquet arcu accumsan lorem amet accumsan. |
This file contains hidden or 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 hidden or 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,42 @@ | ||
| --- | ||
| title: Top 20 Ways to Save Time at Work This Year | ||
| date: '2021-01-05' | ||
| author: content/data/team/dianne-ameter.json | ||
| excerpt: Quo facilis culpa ut illo dolor quo placeat consequatur. A consequatur facilis aut voluptas dolores qui aperiam laborum ut ullam consequatur ut quia consequatur cum inventore voluptas sed impedit asperiores! | ||
| featuredImage: | ||
| type: ImageBlock | ||
| url: /images/post-9.jpg | ||
| altText: Function of design image | ||
| bottomSections: | ||
| - elementId: '' | ||
| variant: variant-a | ||
| colors: colors-a | ||
| title: Read next | ||
| actions: [] | ||
| recentCount: 3 | ||
| styles: | ||
| self: | ||
| height: auto | ||
| width: wide | ||
| margin: ['mt-0', 'mb-0', 'ml-0', 'mr-0'] | ||
| padding: ['pt-12', 'pb-12', 'pr-4', 'pl-4'] | ||
| justifyContent: center | ||
| title: | ||
| fontWeight: '700' | ||
| fontStyle: normal | ||
| textAlign: center | ||
| subtitle: | ||
| fontWeight: '400' | ||
| fontStyle: normal | ||
| textAlign: center | ||
| actions: | ||
| justifyContent: center | ||
| type: RecentPostsSection | ||
| layout: PostLayout | ||
| --- | ||
|
|
||
| Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ac ut consequat semper viverra nam libero justo laoreet sit. Tincidunt id aliquet risus feugiat in ante. Non diam phasellus vestibulum lorem sed. Morbi quis commodo odio aenean. Tortor aliquam nulla facilisi cras fermentum odio eu feugiat. Vel eros donec ac odio tempor orci dapibus ultrices. Facilisi morbi tempus iaculis urna id volutpat. Luctus accumsan tortor posuere ac. Sagittis orci a scelerisque purus semper eget. Ultricies mi quis hendrerit dolor magna eget est lorem ipsum. Dolor purus non enim praesent. Lorem sed risus ultricies tristique nulla aliquet enim tortor. Aliquam vestibulum morbi blandit cursus risus. | ||
|
|
||
| Scelerisque fermentum dui faucibus in ornare quam viverra orci. Libero justo laoreet sit amet cursus. Gravida rutrum quisque non tellus orci. Ut sem nulla pharetra diam sit amet nisl suscipit. Lorem ipsum dolor sit amet consectetur adipiscing elit. Urna porttitor rhoncus dolor purus. Quisque non tellus orci ac auctor augue mauris augue. Consectetur adipiscing elit duis tristique sollicitudin. Vitae semper quis lectus nulla at volutpat. Elementum pulvinar etiam non quam lacus suspendisse faucibus. Porta nibh venenatis cras sed felis eget velit. Ullamcorper malesuada proin libero nunc consequat interdum. Enim sed faucibus turpis in eu mi bibendum neque egestas. Facilisi morbi tempus iaculis urna. Rhoncus est pellentesque elit ullamcorper dignissim. Aenean et tortor at risus viverra adipiscing at in. Cursus euismod quis viverra nibh cras pulvinar mattis nunc sed. Sit amet aliquam id diam. Ut tristique et egestas quis ipsum suspendisse. Congue quisque egestas diam in arcu cursus. | ||
|
|
||
| Mattis enim ut tellus elementum sagittis. At volutpat diam ut venenatis tellus in metus vulputate eu. Habitant morbi tristique senectus et. Id aliquet lectus proin nibh nisl condimentum id venenatis. Nec tincidunt praesent semper feugiat nibh sed pulvinar. Lectus vestibulum mattis ullamcorper velit sed. Semper viverra nam libero justo. Purus sit amet luctus venenatis. Massa id neque aliquam vestibulum morbi blandit cursus risus at. Feugiat nibh sed pulvinar proin gravida. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Not sure the title is being picked up correctly in the Studio which makes navigating the categories very confusing.
Also after creating a category using the red + button I land on the category page which is empty, and the side panel is empty... I realise this may be the expected behaviour of a category, but it just feels incomplete when using it as a user in the Studio.
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.
Hmmm, might be a bug, @TomasBankauskas as you work on the designs of the categories and post feeds can you add
labelField: titleto the PostCategoryLayout model.