Commit 904bb11
authored
feat: implement site's base open graph data (#50)
This pull request implements the default web app's open-graph data,
configuring all `meta` tags for open-graph consumptions on all site.
### Changes Made
- Modified `base.astro` layout to accept new props with some default
value set... see below...
- `ogImageUrl` - an open-graph image url slated to be configured per
page depending on its content but set to use a default image as value
incases where it is not provided at integration of the `base.astro`
layout
- `description` - an excerpt of a page's content with a default of drawn
from the `SITE_META_DESCRIPTION` which is used as value when value isn't
provided at integration
- `subtitle` - used as second descriptive text in site's title with
default value
- Added a static `og.png` image to `public` directory used as default
value for `ogImageUrl` prop
- Implemented all required `meta` tags for open-graph and twitter cards
specific ones
- Added 2 new constants
- `SITE_META_DESCRIPTION` - a string used as default value for the
`description` prop on the `base.astro` layout.
- `SITE_META_KEYWORDS` - an list of keywords integrated on the
`meta:keywords` tag
- Modified site's favicon to temporarily use a book icon svg, replacing
the default `astrojs` logo
### Screencast
[screencast-vercel.com-2024.04.20-12_35_42.webm](https://github.com/babblebey/jargons.dev/assets/25631971/2cf5f6a0-412b-4171-a370-b6ec363fc300)
📖1 parent 5569610 commit 904bb11
4 files changed
Lines changed: 49 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
Loading
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
7 | 15 | | |
8 | 16 | | |
9 | 17 | | |
| |||
12 | 20 | | |
13 | 21 | | |
14 | 22 | | |
15 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
16 | 40 | | |
17 | 41 | | |
18 | 42 | | |
| |||
0 commit comments