The Trans Directory
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: Add a wrapper element to dates in PageList. (#1345)

* Add a wrapper span to dates in PageList.

This means there is a placeholder when date is not specified, so the values in grid-template-columns always line up correctly.

* Use a <div> instead -- better practice to stick to block elements.

authored by

Andrew and committed by
GitHub
c4cd84dc 2be9c096

+8 -6
+7 -5
quartz/components/PageList.tsx
··· 46 46 return ( 47 47 <li class="section-li"> 48 48 <div class="section"> 49 - {page.dates && ( 50 - <p class="meta"> 51 - <Date date={getDate(cfg, page)!} locale={cfg.locale} /> 52 - </p> 53 - )} 49 + <div> 50 + {page.dates && ( 51 + <p class="meta"> 52 + <Date date={getDate(cfg, page)!} locale={cfg.locale} /> 53 + </p> 54 + )} 55 + </div> 54 56 <div class="desc"> 55 57 <h3> 56 58 <a href={resolveRelative(fileData.slug!, page.slug!)} class="internal">
+1 -1
quartz/components/styles/listPage.scss
··· 23 23 background-color: transparent; 24 24 } 25 25 26 - & > .meta { 26 + & .meta { 27 27 margin: 0 1em 0 0; 28 28 opacity: 0.6; 29 29 }