-
Notifications
You must be signed in to change notification settings - Fork 104
Expand file tree
/
Copy pathPageHead.razor
More file actions
34 lines (26 loc) · 1.05 KB
/
PageHead.razor
File metadata and controls
34 lines (26 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
@namespace FluentCMS.Web.UI
<title>@ViewState.Page.Title</title>
<meta name="title" content="@GetSetting("MetaTitle")">
<meta name="description" content="@GetSetting("MetaDescription")">
<meta name="robots" content="@GetRobots()" />
<meta property="og:title" content="@GetSetting("MetaTitle")" />
<meta property="og:description" content="@GetSetting("MetaDescription")" />
<meta property="og:type" content="@GetSetting("OgType")" />
<meta property="twitter:title" content="@GetSetting("MetaTitle")" />
<meta property="twitter:description" content="@GetSetting("MetaDescription")" />
<meta property="twitter:type" content="@GetSetting("OgType")" />
@* Uncomment if you have images
<!-- <meta property="og:image" content="@GetImageUrl(Site.SocialImage)" /> -->
*@
@if (!string.IsNullOrEmpty(GetSetting("GoogleTagsId")))
{
@((MarkupString)GetGoogleTagsScript())
}
@if (!string.IsNullOrEmpty(GetSetting("Head")))
{
@((MarkupString)SanitizeHeadContent(GetSetting("Head")))
}
@foreach (var stylesheet in Stylesheets)
{
<link rel="stylesheet" href="@stylesheet" />
}