Skip to content

Commit

Permalink
2485 events index add description (#2512)
Browse files Browse the repository at this point in the history
* maded index page for events customizable

* ✨ Added rich text input to SSW Events index page head

* rebuilt tina-lock.json

---------

Co-authored-by: Calinator444 <[email protected]>
  • Loading branch information
Calinator444 and Calinator444 authored Apr 29, 2024
1 parent 3bba75a commit 1498704
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
2 changes: 2 additions & 0 deletions content/events/index/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ seo:
description: >-
Learn from software industry professionals about the latest tech and best
practices for MAUI, .Net, GitHub, DevOps.
preface: ''
sidebarBody: >
### Video On Demand
Expand Down Expand Up @@ -44,3 +45,4 @@ afterEvents:
_template: BuiltOnAzure
---


14 changes: 8 additions & 6 deletions pages/events/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ export default function EventsIndexPage(
<SEO seo={data.eventsIndex.seo} />
<Layout menu={data.megamenu}>
<Container size="small">
<div>
<h1 className="mt-0 pt-0">SSW Events</h1>
<TinaMarkdown
content={data.eventsIndex._body}
components={componentRenderer}
/>
<div className="md:flex md:flex-row">
<h1 className="md:mr-12 md:shrink-0 md:basis-64">SSW Events</h1>
<div className="mt-5 min-w-0 max-w-full shrink grow overflow-auto whitespace-normal break-all pb-1 pt-15 md:mr-12 md:shrink-0 md:basis-64">
<TinaMarkdown
content={data.eventsIndex.preface}
components={componentRenderer}
/>
</div>
</div>
<EventsFilter sidebarBody={data.eventsIndex.sidebarBody} />
</Container>
Expand Down
4 changes: 2 additions & 2 deletions tina/collections/events.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ export const eventsIndexSchema: Collection = {
seoSchema,
{
type: "rich-text",
name: "_body",
label: "Body",
name: "preface",
label: "Preface",
templates: [...Schemas.pageBlocks],
isBody: true,
},
Expand Down
2 changes: 1 addition & 1 deletion tina/tina-lock.json

Large diffs are not rendered by default.

0 comments on commit 1498704

Please sign in to comment.