@@ -11,6 +11,14 @@ const docs = await getSinglePage("docs");
11
11
const sortedPosts = sortByWeight (docs );
12
12
const totalPages = Math .ceil (docs .length / config .settings .pagination_docs );
13
13
const currentPosts = sortedPosts .slice (0 , config .settings .pagination_docs );
14
+
15
+ const resources = [
16
+ {
17
+ " title" : " Astro" ,
18
+ " url" : " https://astro.build" ,
19
+ " description" : " The framework for this website, in case you want to contribute to it."
20
+ }
21
+ ]
14
22
---
15
23
16
24
<Base title ={ " PyLadiesCon Documentation" } >
@@ -23,8 +31,35 @@ const currentPosts = sortedPosts.slice(0, config.settings.pagination_docs);
23
31
<p class =" p-5 text-black" >
24
32
This is the index of all the documentation pages we have gathered related to the organization and processes of PyLadiesCon.
25
33
</p >
34
+ <!--
35
+ This first part is for the documents that are found in src/content/docs
36
+ and will be listed automatically.
37
+ -->
26
38
<Docs docs ={ currentPosts } />
27
39
<Pagination section ={ " docs" } currentPage ={ 1 } totalPages ={ totalPages } />
40
+
41
+ <!--
42
+ This second part is for the content that the `resources` variable on the top of this
43
+ document has inside. These are not actual mdx files, but simplified URL-based content
44
+ -->
45
+ <h2 class =" text-3xl p-5" >Voluntering Resources</h2 >
46
+ <div class =" flex flex-col" >
47
+ {
48
+ resources .map ((resource ) => (
49
+ <div class = " p-1 pl-5" >
50
+ <a href = { resource .url }
51
+ class = " flex flex-col pl-5 shadow-sm hover:bg-red-100" >
52
+ <div class = " flex flex-col justify-between p-2 leading-normal" >
53
+ <h3 class = " mb-1 text-xl font-bold text-black" >{ resource .title } </h5 >
54
+ <p class = " mb-2 font-normal text-gray-800" >
55
+ { resource .description }
56
+ </p >
57
+ </div >
58
+ </a >
59
+ </div >
60
+ ))
61
+ }
62
+ </div >
28
63
</div >
29
64
</section >
30
65
</Base >
0 commit comments