Commit 1918891c authored by alain's avatar alain 🐙
Browse files

seo stuff and stats

parent af7d78ce
module.exports = {
siteMetadata: {
title: `Public Stack`,
description: `Gatsby with Strapi for Public Stack site`,
description: `Towards open, democratic and sustainable digital public spaces`,
author: `Waag`,
},
plugins: [
......
......@@ -19,14 +19,15 @@ function SEO({ description, lang, meta, title }) {
)
const metaDescription = description || site.siteMetadata.description
const theTitle = title ? title : site.siteMetadata.description
return (
<Helmet
htmlAttributes={{
lang,
}}
title={title}
titleTemplate={`${site.siteMetadata.title} | %s`}
title={theTitle}
titleTemplate={title ? `${site.siteMetadata.title} | %s` : `${site.siteMetadata.title} | ${metaDescription}`}
meta={[
{
name: `description`,
......@@ -34,7 +35,7 @@ function SEO({ description, lang, meta, title }) {
},
{
property: `og:title`,
content: title,
content: site.siteMetadata.title,
},
{
property: `og:description`,
......@@ -54,14 +55,30 @@ function SEO({ description, lang, meta, title }) {
},
{
name: `twitter:title`,
content: title,
content: site.siteMetadata.title,
},
{
name: `twitter:description`,
content: metaDescription,
},
].concat(meta)}
/>
>
<script type="text/javascript">{`
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://stats.waag.org/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '45']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
`}</script>
</Helmet>
)
}
......
......@@ -98,7 +98,7 @@ const IndexPage = ({ data, location }) => {
return (
<Layout id="front-page">
<SEO title="Home" />
<SEO title="" />
<section id="front-introduction">
<div className="row">
......
......@@ -4,10 +4,14 @@
}
h1 {
font-size: 5rem;
font-size: 4rem;
line-height: 1em;
word-break: keep-all;
@media (max-width: 880px) {
font-size: 3rem;
}
}
h2 {
font-size: 1.75rem;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment