Skip to content

Commit

Permalink
ogimage canonical link added
Browse files Browse the repository at this point in the history
  • Loading branch information
MadushaS committed Apr 13, 2024
1 parent dd66a7c commit 2b2c4b4
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { AstroFont } from 'astro-font';
import AppFooter from "../components/AppFooter.astro";
import AppHeader from "../components/AppHeader.astro";
import {SEO} from 'astro-seo';
const {title, description, type="website", OGImage="/images/thumbnail.jpg"} = Astro.props;
const {title, description, type="website", OGImage="https://fossuok.org/images/thumbnail.jpg"} = Astro.props;
---

<!DOCTYPE html>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/404.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Layout from "../layouts/Layout.astro"
const title = "Page not found | FOSSUOK";
const description = "We are sorry, but the page you requested was not found";
const OGImage = "/images/thumbnail.jpg";
const OGImage = "https://fossuok.org/images/thumbnail.jpg";
---

<Layout title={title} description={description} OGImage={OGImage} >
Expand Down
2 changes: 1 addition & 1 deletion src/pages/about.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Layout from "../layouts/Layout.astro"
const title = "About | FOSSUOK";
const description = "Student-led initiative promoting Free & Open Source Software (FOSS) among students.";
const OGImage = "/images/thumbnail.jpg";
const OGImage = "https://fossuok.org/images/thumbnail.jpg";
---

<Layout title={title} description={description} OGImage={OGImage} >
Expand Down
2 changes: 1 addition & 1 deletion src/pages/blog/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ members
const title = entry.data.title + " | FOSSUOK BLOG";
const description = "Read the blog post " + entry.data.title + " by " + author.name;
const OGImage = "/images/thumbnail.jpg";
const OGImage = "https://fossuok.org/images/thumbnail.jpg";
---
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
Expand Down
2 changes: 1 addition & 1 deletion src/pages/blog/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const allPosts = await getCollection("blog");
const title = "Blog | FOSSUOK";
const description = "The official blog of FOSSUOK, the Free and Open Source Software Community of University of Kelaniya.";
const OGImage = "/images/thumbnail.jpg";
const OGImage = "https://fossuok.org/images/thumbnail.jpg";
---

<Layout title={title} description={description} OGImage={OGImage}>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/events/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const { Content } = await entry.render();
const title = entry.data.title+" | FOSSUOK Events";
const description = entry.data.description;
const OGImage = "/images/thumbnail.jpg";
const OGImage = "https://fossuok.org/images/thumbnail.jpg";
---

<Layout title={title} description={description} OGImage={OGImage} frontmatter={entry.data}>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/events/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ allEvents.sort((a, b) => b.data.date - a.data.date);
const title = "Events | FOSSUOK";
const description = "Stay updated with the latest events happening in the FOSS community at the University of Kelaniya.";
const OGImage = "/images/thumbnail.jpg";
const OGImage = "https://fossuok.org/images/thumbnail.jpg";
---

<Layout title={title} description={description} OGImage={OGImage} menu="Events">
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import RecentEvents from '../components/RecentEvents.astro';
const title = "FOSS Community - University of Kelaniya";
const description = "The Free and Open Source Software Community of the University of Kelaniya is a community of students who are passionate about technology and open source software. We are dedicated to promoting and contributing to open source software.";
const OGImage = "/images/thumbnail.jpg";
const OGImage = "https://fossuok.org/images/thumbnail.jpg";
---

<Layout title={title} description={description} OGImage={OGImage} menu="Home">
Expand Down

0 comments on commit 2b2c4b4

Please sign in to comment.