Archived
standardized formatting
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import React from 'react';
|
|
||||||
import { format, parseISO } from 'date-fns';
|
import { format, parseISO } from 'date-fns';
|
||||||
|
import React from 'react';
|
||||||
|
|
||||||
interface DateFormatterProps {
|
interface DateFormatterProps {
|
||||||
dateString: string;
|
dateString: string;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import React from 'react';
|
|
||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
|
import React from 'react';
|
||||||
|
|
||||||
const Footer: React.FC = () => {
|
const Footer: React.FC = () => {
|
||||||
const currentYear = new Date().getFullYear();
|
const currentYear = new Date().getFullYear();
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import React from 'react';
|
|
||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
|
import React from 'react';
|
||||||
|
|
||||||
const Header: React.FC = () => {
|
const Header: React.FC = () => {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React, { ReactNode } from 'react';
|
|
||||||
import Head from 'next/head';
|
import Head from 'next/head';
|
||||||
import Header from './Header';
|
import React, { ReactNode } from 'react';
|
||||||
import Footer from './Footer';
|
import Footer from './Footer';
|
||||||
|
import Header from './Header';
|
||||||
|
|
||||||
interface LayoutProps {
|
interface LayoutProps {
|
||||||
children: ReactNode;
|
children: ReactNode;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import React from 'react';
|
|
||||||
import Head from 'next/head';
|
import Head from 'next/head';
|
||||||
|
import React from 'react';
|
||||||
|
|
||||||
interface MetaProps {
|
interface MetaProps {
|
||||||
title?: string;
|
title?: string;
|
||||||
|
|||||||
@@ -1,14 +1,13 @@
|
|||||||
import React from 'react';
|
|
||||||
import { GetStaticProps, GetStaticPaths } from 'next';
|
|
||||||
import Image from 'next/image';
|
|
||||||
import Link from 'next/link';
|
|
||||||
import { format } from 'date-fns';
|
|
||||||
import Layout from '@/components/Layout';
|
import Layout from '@/components/Layout';
|
||||||
import Meta from '@/components/Meta';
|
import Meta from '@/components/Meta';
|
||||||
import ShareButtons from '@/components/ShareButtons';
|
import ShareButtons from '@/components/ShareButtons';
|
||||||
import CommentSection from '@/components/CommentSection';
|
|
||||||
import { getAllPostIds, getPostData, getSortedPostsData } from '@/lib/markdown';
|
import { getAllPostIds, getPostData, getSortedPostsData } from '@/lib/markdown';
|
||||||
import { PostData, PostMetadata } from '@/types';
|
import { PostData, PostMetadata } from '@/types';
|
||||||
|
import { format } from 'date-fns';
|
||||||
|
import { GetStaticPaths, GetStaticProps } from 'next';
|
||||||
|
import Image from 'next/image';
|
||||||
|
import Link from 'next/link';
|
||||||
|
import React from 'react';
|
||||||
|
|
||||||
interface PostProps {
|
interface PostProps {
|
||||||
post: PostData;
|
post: PostData;
|
||||||
|
|||||||
Reference in New Issue
Block a user