-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Begin to workout resume and its layout. NOTE: Server Error for non-blog!
TypeError: String.prototype.replace called on null or undefined Call Stack: generateRssItem lib/generate-rss.js (8:20) Array.map <anonymous> generateRss lib/generate-rss.js (28:14) getStaticProps pages/[...page_slug].js (35:28)
- Loading branch information
Showing
16 changed files
with
419 additions
and
35 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { PageSEO } from '@/components/SEO' | ||
|
||
export default function EmptyLayout({ frontMatter, children }) { | ||
const { title, summary } = frontMatter | ||
|
||
return ( | ||
<> | ||
<PageSEO title={title} description={summary} /> | ||
<div>{children}</div> | ||
</> | ||
) | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import PageTitle from '@/components/PageTitle' | ||
import { PageSEO } from '@/components/SEO' | ||
import siteMetadata from '@/data/siteMetadata' | ||
|
||
const editUrl = (fileName) => `${siteMetadata.siteRepo}/blob/master/data/blog/${fileName}` | ||
const discussUrl = (slug) => | ||
`https://mobile.twitter.com/search?q=${encodeURIComponent( | ||
`${siteMetadata.siteUrl}/blog/${slug}` | ||
)}` | ||
|
||
const postDateTemplate = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' } | ||
|
||
export default function ResumeLayout({ frontMatter, authorDetails, next, prev, children }) { | ||
// console.log(frontMatter) | ||
const { summary, title } = frontMatter | ||
|
||
return ( | ||
<div className="resume-layout"> | ||
<PageSEO title={`Resume`} description={summary} /> | ||
{/* <div className="xl:divide-y xl:divide-gray-200 xl:dark:divide-gray-700"> */} | ||
{/* <header className="pt-6 xl:pb-6"> | ||
<div className="space-y-1"> | ||
<PageTitle>{title}</PageTitle> | ||
</div> | ||
</header> */} | ||
{/* <div | ||
className="divide-y divide-gray-200 pb-8 dark:divide-gray-700 xl:grid xl:grid-cols-4 xl:gap-x-6 xl:divide-y-0" | ||
style={{ gridTemplateRows: 'auto 1fr' }} | ||
> */} | ||
<div className="divide-y divide-gray-200 dark:divide-gray-700 xl:col-span-3 xl:row-span-2 xl:pb-0"> | ||
<div className="max-w-none pt-10 pb-8 dark:prose-dark">{children}</div> | ||
</div> | ||
{/* </div> */} | ||
{/* </div> */} | ||
<script async src="scripts/obfuscations.js" type="text/javascript"></script> | ||
{/* <script async src="scripts/printable-doc.js" type="text/javascript"></script> */} | ||
</div> | ||
) | ||
} |
Oops, something went wrong.