Commit fe7b53e6 by PLN (Algolia)

fix(www): Correct date usage

parent 886641f8
......@@ -12,7 +12,7 @@ function getAllContentData(name, sorted = false) {
// Get file names under /content/{name}
const contentDirectory = getContentDirectory(name);
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) => {
// Remove ".md" from file name to get id
......
......@@ -90,7 +90,8 @@ export default function Home({ posts, talks }) {
))}
</ul>
</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>
<ul className={utilStyles.list}>
{posts.map(({ id, date, title }) => (
......@@ -105,7 +106,7 @@ export default function Home({ posts, talks }) {
</li>
))}
</ul>
</section>
</section> */}
</Layout>
</div>
);
......
......@@ -2,6 +2,7 @@ import Image from "next/image";
import Link from "next/link";
import Head from "next/head";
import Layout from "../components/layout";
import Date from "../components/date";
import utilStyles from "../styles/utils.module.css";
import { getTalksData } from "../lib/talks";
......@@ -64,13 +65,9 @@ export default function Talks({ talks, selection }) {
<small className={utilStyles.lightText}>
<Date dateString={date} />
{context && (
<p>
{" "}
<i>
at <a href={event}>{context}</a>{" "}
<i> at <a href={event}>{context}</a>{" "}
{org && <>organised by {org}</>}
</i>
</p>
)}
</small>{" "}
<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