Minor fix for OG Image path
This commit is contained in:
parent
560d482d71
commit
7b2d94d1b3
2 changed files with 1 additions and 51 deletions
|
|
@ -38,7 +38,7 @@ const Article = ({article_obj, sections, pagedata, stories, serverRuntimeConfig,
|
||||||
<meta name="og:title" content={ article_obj.Title } key="title"></meta>
|
<meta name="og:title" content={ article_obj.Title } key="title"></meta>
|
||||||
<meta name="og:description" content={ article_desc } key="description"></meta>
|
<meta name="og:description" content={ article_desc } key="description"></meta>
|
||||||
{ article_obj.FeatureImage.data != null &&
|
{ article_obj.FeatureImage.data != null &&
|
||||||
<meta name="og:image" content={'https://angrybeanie.com/' + featureImage.url}></meta>
|
<meta name="og:image" content={'https://angrybeanie.com' + featureImage.url}></meta>
|
||||||
}
|
}
|
||||||
{ article_obj.project.data != null && article_obj.project.data.attributes.HasFeed == true &&
|
{ article_obj.project.data != null && article_obj.project.data.attributes.HasFeed == true &&
|
||||||
<link rel="alternate" type="application/rss+xml" title={article_obj.project.data.attributes.Title + " Feed"} href={rssFeed} />
|
<link rel="alternate" type="application/rss+xml" title={article_obj.project.data.attributes.Title + " Feed"} href={rssFeed} />
|
||||||
|
|
|
||||||
|
|
@ -1,50 +0,0 @@
|
||||||
import Layout from "../components/main.js"
|
|
||||||
import GalleryList from "../components/gallerylist.js"
|
|
||||||
import { getAllGalleries } from "../data/external/cms.js"
|
|
||||||
import getConfig from 'next/config'
|
|
||||||
import config from "../data/internal/config"
|
|
||||||
import Head from 'next/head'
|
|
||||||
|
|
||||||
export async function getStaticProps({params}) {
|
|
||||||
|
|
||||||
const pagedata = {
|
|
||||||
title: "Angrybeanie - Photography"
|
|
||||||
}
|
|
||||||
|
|
||||||
const { serverRuntimeConfig } = getConfig()
|
|
||||||
|
|
||||||
const rssFeed = config.siteURL+"/feed/gallery-images-feed.xml"
|
|
||||||
|
|
||||||
const gallerylist = await getAllGalleries()
|
|
||||||
|
|
||||||
console.log(gallerylist);
|
|
||||||
|
|
||||||
return {
|
|
||||||
props: { pagedata, serverRuntimeConfig, gallerylist, rssFeed },
|
|
||||||
revalidate: 60
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const Page = ({pagedata, serverRuntimeConfig, gallerylist, rssFeed}) => {
|
|
||||||
return(<Layout pagedata={pagedata} serverRuntimeConfig={serverRuntimeConfig} gallerylist={gallerylist}>
|
|
||||||
<Head>
|
|
||||||
<link rel="alternate" type="application/rss+xml" title="Gallery Image Feed" href={rssFeed} />
|
|
||||||
</Head>
|
|
||||||
<h1 className="page_title col-sm-12">Photography</h1>
|
|
||||||
<div className="col-sm-12 col-md-6 article_body">
|
|
||||||
<p>I've always been drawn to photography. As a kid my Dad used to have his own darkroom and I remember the smell
|
|
||||||
of the chemicals and the wonder as the images went from the slightly disconcerting inverted colours on the negatives
|
|
||||||
to a full colour explosion on the paper.</p>
|
|
||||||
<p>I like taking pictures, I love capturing a moment and freezing it in time, so that I can look back and remember, or that I can
|
|
||||||
share that moment with others.</p>
|
|
||||||
<p>I'm also learning new things. I'm pushing myself to do more with the camera. Not just the "candid" shots that my family put up with,
|
|
||||||
but branching out into Macro photography, portraits and street photography.</p>
|
|
||||||
<p>So here is the space where I post the images I make, and the journey I take in my photography.</p>
|
|
||||||
</div>
|
|
||||||
<div className="col-sm-12 col-md-6">
|
|
||||||
<GalleryList gallery={gallerylist} basepath={serverRuntimeConfig.media_path}></GalleryList>
|
|
||||||
</div>
|
|
||||||
</Layout>)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default Page
|
|
||||||
Loading…
Reference in a new issue