mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-01 09:48:37 +00:00
Add meta tags to BaseLayout
This commit is contained in:
parent
bd21b8f9ed
commit
d3c1f2f035
2 changed files with 12 additions and 3 deletions
|
@ -48,10 +48,18 @@
|
|||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
|
||||
<link rel="manifest" href="/site.webmanifest">
|
||||
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
|
||||
<meta name="msapplication-TileColor" content="#da532c">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#008cff">
|
||||
<meta name="msapplication-TileColor" content="#008cff">
|
||||
|
||||
@* Embed Stuff *@
|
||||
<meta name="theme-color" data-react-helmet="true" content="#008cff">
|
||||
<meta content="Project Lighthouse - @Model.Title" property="og:title">
|
||||
@if (!string.IsNullOrEmpty(Model.Description))
|
||||
{
|
||||
<meta content="@Model.Description" property="og:description">
|
||||
}
|
||||
|
||||
@* Google Analytics *@
|
||||
@if (ServerSettings.Instance.GoogleAnalyticsEnabled)
|
||||
{
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
|
|
|
@ -21,6 +21,7 @@ namespace LBPUnion.ProjectLighthouse.Pages.Layouts
|
|||
public bool ShowTitleInPage = true;
|
||||
|
||||
public string Title = string.Empty;
|
||||
public string Description = string.Empty;
|
||||
|
||||
private User? user;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue