Skip to content

Commit

Permalink
update og image
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsPilgaard committed Dec 10, 2024
1 parent 8d3ecd4 commit b2d8b26
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/web/Jordnaer/Components/App.razor
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="da">

<head>
<MetadataComponent Title="Mini Møder"
<MetadataComponent Title="Mini Møder"
Description="Et online mødested for børnefamilier"
Tags="minimøder, mini møder, socialmedia, homeschooling, playdate, playgroup, village, community, socialtmedia, hjemmeskole, hjemmepasning, legeaftale, legegruppe, landsby, fællesskab, trivsel, netværk, børnefamilie, legestue, unschooling, børn, forældre" />

Expand All @@ -20,9 +20,9 @@
<meta name="theme-color" content="#ffffff">

<meta name="og:title" content="Mini Møder" />
<meta name="og:site_name" content="Mini Møder" />
<meta name="og:description" content="Et online mødested for børnefamilier" />
<meta name="og:image" content="images/minimoeder_logo_payoff.png" />
<meta name="og:image" content="images/minimoeder_logo_payoff_ogimage.png" />
<meta name="og:locale" content="da_DK" />

<meta name="google-site-verification" content="_2XlYiQaPnb6j4QvZhJPB-XwnnQKOkpzs_hmU3EHY8g" />
<meta name="facebook-domain-verification" content="ispr6bue0cvuoatohe859eubl32ujh" />
Expand Down
8 changes: 8 additions & 0 deletions src/web/Jordnaer/Features/SEO/MetadataComponent.razor
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
{
<meta name="og:image" content="images/mini-moeder-logo.png" />
}

@if (!string.IsNullOrEmpty(Type))
{
<meta name="og:type" content="@Type" />
}

@if (!string.IsNullOrEmpty(Tags))
{
Expand All @@ -40,6 +45,9 @@
[Parameter]
public string? Image { get; set; }

[Parameter]
public string? Type { get; set; }

[Parameter]
public string? Tags { get; set; } // Comma separated list
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b2d8b26

Please sign in to comment.