Skip to content

Commit 62c9d5f

Browse files
authored
Merge pull request #244 from pyladies/add_docs_weight
Add weight mechanism for docs collection
2 parents 9e273d8 + f0dc6ae commit 62c9d5f

14 files changed

+62
-18
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "3.1.0",
44
"license": "MIT",
55
"scripts": {
6-
"dev": "astro dev",
6+
"dev": "astro dev --verbose",
77
"build": "astro build",
88
"preview": "astro preview",
99
"format": "prettier -w ."

src/content.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ const docsCollection = defineCollection({
6060
image: z.string().optional(),
6161
layout: z.string().optional(),
6262
draft: z.boolean().optional(),
63+
weight: z.number().optional(),
6364
}),
6465
});
6566

src/content/about/-index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "The Global PyLadies Conference"
3-
meta_title: "About"
3+
meta_title: "About PyLadiesCon"
44
image: "/images/author.png"
55
draft: false
66
---

src/content/docs/committee_communications.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: "Communications Committee"
33
meta_title: "Communications Committee"
44
description: "Team in charge of all the internal and external communications"
55
draft: false
6+
weight: 3
67
---
78

89
## Roles

src/content/docs/committee_design.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: "Design Committee"
33
meta_title: "Design Committee"
44
description: "Team in charge of the creation of all the conference assets"
55
draft: false
6+
weight: 4
67
---
78

89
## Roles

src/content/docs/committee_finance.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: "Finance and Sponsorship Committee"
33
meta_title: "Finance and Sponsorship Committee"
44
description: "Team in charge of the budget and sponsorship of the confenrence"
55
draft: false
6+
weight: 1
67
---
78

89

src/content/docs/committee_infra.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ meta_title: "Infrastructure Committee"
44
description: "Team in charge of the infra in the conference including website,
55
bots, ticketing system, streaming, etc."
66
draft: false
7+
weight: 2
78
---
89

910
## Roles

src/content/docs/committee_program.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ meta_title: "Program Committee"
44
description: "Team in charge of the call for proposals for talks, sprints,
55
workshops, panels and the interaction with speakers"
66
draft: false
7+
weight: 6
78
---
89

910
## Roles

src/content/docs/committee_volunteers.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ meta_title: "Volunteers Committee"
44
description: "Team in charge of calling for volunteers, the logistics of the
55
process and coordination of the helpers during the event."
66
draft: false
7+
weight: 5
78
---
89

910
*Role: Volunteers Coordinator*

src/layouts/Docs.astro

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ import { BsArrowRightCircle } from "react-icons/bs";
66
77
const { docs, headings } = Astro.props;
88
---
9-
109
<div class="row">
10+
<h2 class="text-3xl p-5">Voluntering Guide</h2>
1111
<div class="flex flex-col">
1212
{
1313
docs.map((doc) => (
14-
<div class="p-4">
14+
<div class="p-1 pl-5">
1515
<a href={`/docs/${doc.id}`}
16-
class="flex flex-col pl-10 bg-gray-100 border border-gray-200 rounded-lg shadow-sm hover:bg-red-100">
16+
class="flex flex-col pl-5 shadow-sm hover:bg-red-100">
1717
<div class="flex flex-col justify-between p-2 leading-normal">
18-
<h5 class="mb-2 text-2xl font-bold text-black">{doc.data.title}</h5>
19-
<p class="mb-2 font-normal text-gray-800">
20-
{doc.data.description}
21-
</p>
18+
<h3 class="mb-1 text-xl font-bold text-black">{doc.data.title}</h5>
19+
<p class="mb-2 font-normal text-gray-800">
20+
{doc.data.description}
21+
</p>
2222
</div>
2323
</a>
2424
</div>

0 commit comments

Comments
 (0)