mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-27 06:18:27 -04:00
update constants
This commit is contained in:
parent
f6627580eb
commit
f2fb718d0f
@ -60,8 +60,15 @@ const Video = ({ src, thumbnail, subs, autoplay, className, ...rest }: VideoProp
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={classNames(styles.wrapper, className)}>
|
<div className={classNames(styles.wrapper, className)}>
|
||||||
{/* @ts-ignore */}
|
<ReactPlayer
|
||||||
<ReactPlayer width="100%" height="100%" url={url} config={config} controls={!autoplay} {...rest} />
|
width="100%"
|
||||||
|
height="100%"
|
||||||
|
url={url}
|
||||||
|
controls={!autoplay}
|
||||||
|
// @ts-ignore
|
||||||
|
config={config}
|
||||||
|
{...rest}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
2
lib/config/constants.ts
Normal file
2
lib/config/constants.ts
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
// Next.js constants (not needed in frontend)
|
||||||
|
export const NOTES_DIR = "./notes";
|
@ -41,7 +41,4 @@ module.exports = {
|
|||||||
linkedin: "jakejarvis",
|
linkedin: "jakejarvis",
|
||||||
instagram: "jakejarvis",
|
instagram: "jakejarvis",
|
||||||
},
|
},
|
||||||
|
|
||||||
// Next.js constants
|
|
||||||
NOTES_DIR: "./notes",
|
|
||||||
};
|
};
|
||||||
|
@ -8,7 +8,8 @@ import { compiler } from "markdown-to-jsx";
|
|||||||
import removeMarkdown from "remove-markdown";
|
import removeMarkdown from "remove-markdown";
|
||||||
import sanitizeHtml from "sanitize-html";
|
import sanitizeHtml from "sanitize-html";
|
||||||
import readingTime from "reading-time";
|
import readingTime from "reading-time";
|
||||||
import { NOTES_DIR, baseUrl } from "./config";
|
import { baseUrl } from "./config";
|
||||||
|
import { NOTES_DIR } from "./config/constants";
|
||||||
|
|
||||||
// remark/rehype markdown plugins
|
// remark/rehype markdown plugins
|
||||||
import remarkGfm from "remark-gfm";
|
import remarkGfm from "remark-gfm";
|
||||||
|
@ -122,7 +122,11 @@ module.exports = (phase, { defaultConfig }) => {
|
|||||||
// misc. crap:
|
// misc. crap:
|
||||||
{ source: "/resume/", destination: "/static/resume.pdf", permanent: false },
|
{ source: "/resume/", destination: "/static/resume.pdf", permanent: false },
|
||||||
{ source: "/resume.pdf", destination: "/static/resume.pdf", permanent: false },
|
{ source: "/resume.pdf", destination: "/static/resume.pdf", permanent: false },
|
||||||
{ source: "/stats/", destination: "https://app.usefathom.com/share/wbgnqukw/jarv.is", permanent: false },
|
{
|
||||||
|
source: "/stats/",
|
||||||
|
destination: `https://app.usefathom.com/share/${config.fathomSiteId}/${config.siteDomain}`,
|
||||||
|
permanent: false,
|
||||||
|
},
|
||||||
{ source: "/jarvis.asc", destination: "/pubkey.asc", permanent: true },
|
{ source: "/jarvis.asc", destination: "/pubkey.asc", permanent: true },
|
||||||
{ source: "/scrabble/:path*", destination: "https://jakejarvis.github.io/scrabble/:path*", permanent: false },
|
{ source: "/scrabble/:path*", destination: "https://jakejarvis.github.io/scrabble/:path*", permanent: false },
|
||||||
],
|
],
|
||||||
|
@ -53,8 +53,11 @@ const Note = ({ frontMatter, source }: NoteType) => {
|
|||||||
<NoteMeta {...frontMatter} />
|
<NoteMeta {...frontMatter} />
|
||||||
|
|
||||||
<Content>
|
<Content>
|
||||||
{/* @ts-ignore */}
|
<MDXRemote
|
||||||
<MDXRemote {...source} components={{ ...mdxComponents }} />
|
{...source}
|
||||||
|
// @ts-ignore
|
||||||
|
components={{ ...mdxComponents }}
|
||||||
|
/>
|
||||||
</Content>
|
</Content>
|
||||||
|
|
||||||
{/* comments can be disabled for an individual post via `noComments: true` in its front matter */}
|
{/* comments can be disabled for an individual post via `noComments: true` in its front matter */}
|
||||||
|
@ -78,12 +78,7 @@ const Privacy = () => (
|
|||||||
is completely public, too!)
|
is completely public, too!)
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<IFrame
|
<IFrame src="/stats/" title="Fathom Analytics dashboard" height={500} allowScripts />
|
||||||
src="https://app.usefathom.com/share/wbgnqukw/jarv.is"
|
|
||||||
title="Fathom Analytics dashboard"
|
|
||||||
height={500}
|
|
||||||
allowScripts
|
|
||||||
/>
|
|
||||||
|
|
||||||
<H2 id="third-party">Third-Party Content</H2>
|
<H2 id="third-party">Third-Party Content</H2>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user