This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type TimeZoneInfo = { | |
friendlyName: string | |
offsetString: string | |
offsetNumeric: number | |
longTimezones: string[] | |
} | |
function offsetStringToNumeric(offsetString: string): number { | |
const sign = offsetString.startsWith("GMT-") ? -1 : 1 | |
const [hours, minutes] = offsetString.slice(4).split(":").map(Number) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require(`fs`) | |
const withCSS = require(`@zeit/next-css`) | |
const blogPostsFolder = `./_content/posts` | |
const withMdxFm = require(`next-mdx-frontmatter`) | |
const getPathsForPosts = () => { | |
return fs | |
.readdirSync(blogPostsFolder) | |
.map((blogName) => { | |
const trimmedName = blogName.substring(0, blogName.length - 3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
siteMetadata: { | |
title: 'Tim Feeley', | |
description: 'People-centric Product Management', | |
author: 'Tim Feeley', | |
}, | |
plugins: [ | |
{ | |
resolve: `gatsby-source-filesystem`, | |
options: { |