File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 {
2020 "slug" : " testing" ,
2121 "name" : " Testing"
22+ },
23+ {
24+ "slug" : " code-review" ,
25+ "name" : " Code Review"
2226 }
2327 ]
2428}
Original file line number Diff line number Diff line change 77title : " Revisiones de código efectivas"
88url : " /notes/effective-code-reviews"
99published : true
10+ collections :
11+ - code-review
1012---
1113
1214# Revisiones de código efectivas
Original file line number Diff line number Diff line change 11import { GetStaticProps } from "next" ;
2- import NextLink from "next/link" ;
32
43import { ApiCollection } from "@/cms/api/ApiCollection" ;
54import { getCollectionRepository } from "@/cms/repositories" ;
6- import { Application } from "@/layouts/Application " ;
5+ import { Collections } from "@/components/Collections " ;
76import { Heading } from "@/components/Heading" ;
87import { Text } from "@/components/Text" ;
9- import { Link } from "@/components/Link " ;
8+ import { Application } from "@/layouts/Application " ;
109
1110type CollectionsPageProps = {
1211 collections : ApiCollection [ ] ;
@@ -22,15 +21,7 @@ export default function CollectionsPage(props: CollectionsPageProps) {
2221
2322 < Text size = "l" > Articles are sometimes grouped into collections. Here you may find all of them.</ Text >
2423
25- < ul className = "Page__Collections" >
26- { props . collections . map ( ( collection ) => (
27- < li key = { collection . slug } >
28- < Link as = { NextLink } href = { `/collections/${ collection . slug } ` } >
29- #{ collection . slug }
30- </ Link >
31- </ li >
32- ) ) }
33- </ ul >
24+ < Collections collections = { props . collections } />
3425 </ Application . Article >
3526 </ Application >
3627 ) ;
Original file line number Diff line number Diff line change 2828@import "../layouts/Posts/style.css" ;
2929
3030@import "./pages/index.css" ;
31- @import "./pages/collections.css" ;
3231@import "./pages/collections/[slug].css" ;
3332
3433: root {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments