diff --git a/public/og/og_about.png b/public/og/og_about.png new file mode 100644 index 0000000..bcebf3f Binary files /dev/null and b/public/og/og_about.png differ diff --git a/public/og/og_events.png b/public/og/og_events.png new file mode 100644 index 0000000..7da5125 Binary files /dev/null and b/public/og/og_events.png differ diff --git a/public/og/og_index.png b/public/og/og_index.png new file mode 100644 index 0000000..6511200 Binary files /dev/null and b/public/og/og_index.png differ diff --git a/public/og/og_leaderboard.png b/public/og/og_leaderboard.png new file mode 100644 index 0000000..1762e41 Binary files /dev/null and b/public/og/og_leaderboard.png differ diff --git a/public/og/og_people.png b/public/og/og_people.png new file mode 100644 index 0000000..b8eb82d Binary files /dev/null and b/public/og/og_people.png differ diff --git a/public/og/og_research.png b/public/og/og_research.png new file mode 100644 index 0000000..e6193ba Binary files /dev/null and b/public/og/og_research.png differ diff --git a/public/og/og_talks.png b/public/og/og_talks.png new file mode 100644 index 0000000..56b137a Binary files /dev/null and b/public/og/og_talks.png differ diff --git a/src/components/MetaTags.astro b/src/components/MetaTags.astro new file mode 100644 index 0000000..ebbc079 --- /dev/null +++ b/src/components/MetaTags.astro @@ -0,0 +1,28 @@ +--- +import * as config from '../config.yaml'; + + +const { title, description, metaTitle, image } = Astro.props; + +--- + + + +{(metaTitle || title) ? ((metaTitle || title) + ' | ' + config.title) : config.title} + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/config.yaml b/src/config.yaml index 4e6668a..4e262b1 100644 --- a/src/config.yaml +++ b/src/config.yaml @@ -1,4 +1,5 @@ title: Web3Privacy Now +description: Privacy advocates worldwide are coming together to discuss how to mainstream privacy within the Web3 industry. So it will become a cultural phenomenon embodying both decentralisation & anti-surveillance capitalism practices. header: menu: - name: Home @@ -107,4 +108,4 @@ landing: text: Community discussion ico: forum community: | - Our aim with gatherings is to bring together key players, different perspectives, skills and visions. We aggregate tech and non tech people, key players and contributors, builders, researchers, philosophers, lawyers, policymakers, activists, local communities and general public. \ No newline at end of file + Our aim with gatherings is to bring together key players, different perspectives, skills and visions. We aggregate tech and non tech people, key players and contributors, builders, researchers, philosophers, lawyers, policymakers, activists, local communities and general public. diff --git a/src/layouts/base.astro b/src/layouts/base.astro index 8819af5..d07c5b6 100644 --- a/src/layouts/base.astro +++ b/src/layouts/base.astro @@ -5,7 +5,9 @@ import * as config from '../config.yaml'; import * as pkg from '../../package.json'; import core from '../core.json'; import '../styles/base.css'; -const {banner, title, metaTitle, description} = Astro.props; +import MetaTags from '../components/MetaTags.astro'; + +const {banner, title, metaTitle, description, image} = Astro.props; import cfonts from 'cfonts'; @@ -18,10 +20,12 @@ function genHeading(str) { - - - - {(metaTitle || title) ? ((metaTitle || title) + ' | ' + config.title) : config.title} + + +
diff --git a/src/pages/event/[id].astro b/src/pages/event/[id].astro index e2a3d05..fca7291 100644 --- a/src/pages/event/[id].astro +++ b/src/pages/event/[id].astro @@ -18,7 +18,7 @@ const status = eventStatus(item) const ext = findExt(EventsExt, item) --- - +
diff --git a/src/pages/events.astro b/src/pages/events.astro index 2888dc2..ad5ced7 100644 --- a/src/pages/events.astro +++ b/src/pages/events.astro @@ -31,7 +31,7 @@ for (const year of pastYears.reverse()) { --- - +
diff --git a/src/pages/index.astro b/src/pages/index.astro index 6f12e9b..712d8de 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -2,12 +2,10 @@ import BaseLayout from '../layouts/base.astro'; import AboutFooter from '../components/AboutFooter.astro'; -import * as config from '../config.yaml'; import core from '../core.json'; import articles from '../articles.json'; import talks from '../talks.json'; import explorer from '../explorer.json'; -import { isRenderTemplateResult } from 'astro/runtime/server/render/astro/render-template.js'; import { isPast, format } from 'date-fns'; const events = core.events; diff --git a/src/pages/leaderboard.astro b/src/pages/leaderboard.astro index 82229c9..8916441 100644 --- a/src/pages/leaderboard.astro +++ b/src/pages/leaderboard.astro @@ -23,7 +23,7 @@ function getPoint (num){ --- - +