Commit fe7b53e6 by PLN (Algolia)

fix(www): Correct date usage

parent 886641f8
...@@ -12,7 +12,7 @@ function getAllContentData(name, sorted = false) { ...@@ -12,7 +12,7 @@ function getAllContentData(name, sorted = false) {
// Get file names under /content/{name} // Get file names under /content/{name}
const contentDirectory = getContentDirectory(name); const contentDirectory = getContentDirectory(name);
const fileNames = fs.readdirSync(contentDirectory); const fileNames = fs.readdirSync(contentDirectory);
console.log(`gACD: total ${name}(s): ${fileNames.length}`); // console.log(`gACD: total ${name}(s): ${fileNames.length}`);
const allContentData = fileNames.map((fileName) => { const allContentData = fileNames.map((fileName) => {
// Remove ".md" from file name to get id // Remove ".md" from file name to get id
......
...@@ -90,7 +90,8 @@ export default function Home({ posts, talks }) { ...@@ -90,7 +90,8 @@ export default function Home({ posts, talks }) {
))} ))}
</ul> </ul>
</section> </section>
<section className={`${utilStyles.headingMd} ${utilStyles.padding1px}`}> {/* TODO: Get rid of blog or use it :') */}
{/* <section className={`${utilStyles.headingMd} ${utilStyles.padding1px}`}>
<h2 className={utilStyles.headingLg}>Blog</h2> <h2 className={utilStyles.headingLg}>Blog</h2>
<ul className={utilStyles.list}> <ul className={utilStyles.list}>
{posts.map(({ id, date, title }) => ( {posts.map(({ id, date, title }) => (
...@@ -105,7 +106,7 @@ export default function Home({ posts, talks }) { ...@@ -105,7 +106,7 @@ export default function Home({ posts, talks }) {
</li> </li>
))} ))}
</ul> </ul>
</section> </section> */}
</Layout> </Layout>
</div> </div>
); );
......
...@@ -2,6 +2,7 @@ import Image from "next/image"; ...@@ -2,6 +2,7 @@ import Image from "next/image";
import Link from "next/link"; import Link from "next/link";
import Head from "next/head"; import Head from "next/head";
import Layout from "../components/layout"; import Layout from "../components/layout";
import Date from "../components/date";
import utilStyles from "../styles/utils.module.css"; import utilStyles from "../styles/utils.module.css";
import { getTalksData } from "../lib/talks"; import { getTalksData } from "../lib/talks";
...@@ -64,13 +65,9 @@ export default function Talks({ talks, selection }) { ...@@ -64,13 +65,9 @@ export default function Talks({ talks, selection }) {
<small className={utilStyles.lightText}> <small className={utilStyles.lightText}>
<Date dateString={date} /> <Date dateString={date} />
{context && ( {context && (
<p> <i> at <a href={event}>{context}</a>{" "}
{" "}
<i>
at <a href={event}>{context}</a>{" "}
{org && <>organised by {org}</>} {org && <>organised by {org}</>}
</i> </i>
</p>
)} )}
</small>{" "} </small>{" "}
<ul className="links"> <ul className="links">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment