diff --git a/src/templates/page.js b/src/templates/page.js index a125153..3d1b252 100755 --- a/src/templates/page.js +++ b/src/templates/page.js @@ -5,6 +5,8 @@ import Helmet from 'react-helmet' import { Layout } from '../components/common' import { MetaData } from '../components/common/meta' +import config from '../utils/siteConfig' + /** * Single page (/:slug) @@ -33,7 +35,7 @@ const Page = ({ data, location }) => { {/* The main page content */}
diff --git a/src/templates/post.js b/src/templates/post.js index 6f5c914..d1dbce5 100755 --- a/src/templates/post.js +++ b/src/templates/post.js @@ -6,6 +6,7 @@ import Helmet from 'react-helmet' import { Layout } from '../components/common' import { MetaData } from '../components/common/meta' +import config from '../utils/siteConfig' /** * Single post view (/:slug) @@ -39,7 +40,7 @@ const Post = ({ data, location }) => { {/* The main post content */ }

diff --git a/src/utils/siteConfig.js b/src/utils/siteConfig.js index 1118e31..88b24ae 100644 --- a/src/utils/siteConfig.js +++ b/src/utils/siteConfig.js @@ -1,6 +1,9 @@ module.exports = { siteUrl: `https://www.snipettemag.com`, // Site domain. Do not include a trailing slash! + mediaUrlFrom: `https://snipette-ghost.herokuapp.com/content/images/`, // skip Ghost content URL... + mediaUrlTo: `https://media.snipettemag.com/`, // ...and get it directly from source! + postsPerPage: 12, // Number of posts shown on paginated pages (changes this requires sometimes to delete the cache) siteTitleMeta: `Snipette`, // This allows an alternative site title for meta data for pages.