-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy path_layout.cshtml
More file actions
110 lines (87 loc) · 3.68 KB
/
_layout.cshtml
File metadata and controls
110 lines (87 loc) · 3.68 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE html>
<html lang="en">
@{
var isPost = Document.GetBool("IsPost") && !Document.GetBool("IsPostArchive");
var isPage = Document.GetBool("IsPage");
}
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
@if(Document.ContainsKey(WebKeys.Description))
{
<meta name="description" content="@Document.GetString(WebKeys.Description)">
}
@if(Document.ContainsKey(WebKeys.Author))
{
<meta name="author" content="@Document.GetString(WebKeys.Author)">
}
<title>@Document.GetString("PageTitle")</title>
<link rel="canonical" href='@(Document.GetString("Canonical") ?? Document.GetLink(true))'>
@{
@foreach (IDocument rssFeed in Outputs["**/*.rss"])
{
<link type="application/rss+xml" rel="alternate" title="@rssFeed.GetString(WebKeys.Title)" href="@rssFeed.GetLink()" />
}
@foreach (IDocument atomFeed in Outputs["**/*.atom"])
{
<link type="application/atom+xml" rel="alternate" title="@atomFeed.GetString(WebKeys.Title)" href="@atomFeed.GetLink()" />
}
}
<meta name="application-name" content='@Document.GetString("SiteTitle")' />
<meta name="msapplication-tooltip" content='@Document.GetString("SiteTitle")' />
<meta name="msapplication-starturl" content='@Context.GetLink("/")' />
@* TODO: More social graph meta tags *@
<meta property="og:title" content='@Document.GetString("PageTitle")' />
@if (Document.ContainsKey(WebKeys.Image))
{
<meta property="og:image" content='@Context.GetLink(Document.GetString(WebKeys.Image))' />
}
<meta property="og:type" content="website" />
<meta property="og:url" content='@Document.GetLink(true)' />
<link rel="icon" href='@Context.GetLink("/favicon.ico")'>
<!-- Custom fonts for this template -->
<link href='@Context.GetLink("/vendor/fontawesome-free/css/all.min.css")' rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic" rel="stylesheet" data-no-mirror>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800" rel="stylesheet" data-no-mirror>
<!-- Styles for this template (also includes Bootstrap) -->
<link href='@Context.GetLink("/scss/clean-blog.css")' rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/components/prism-core.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/plugins/autoloader/prism-autoloader.min.js" data-no-mirror></script>
<script src="https://cdn.jsdelivr.net/npm/quicklink@2.3.0/dist/quicklink.umd.js"></script>
<link href="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/themes/prism.css" rel="stylesheet">
@Html.Partial("_head")
@RenderSection("Head", false)
</head>
<body>
<!-- Navigation -->
@RenderSectionOrPartial("Navigation", "_navigation")
<!-- Page Header -->
@RenderSectionOrPartial("Header", "_header")
<!-- Main Content -->
<div class="container">
<div class="row">
<div id="content" class="col-md-12">
@RenderBody()
@if (isPost)
{
@Html.Partial("_post-after-content")
}
@Html.Partial("_common-after-content")
</div>
</div>
@if (isPost)
{
@Html.Partial("_post-comments")
}
</div>
<hr>
<!-- Footer -->
@RenderSectionOrPartial("Footer", "_footer")
<!-- Scripts -->
<script src='@Context.GetLink("/vendor/bootstrap/js/bootstrap.bundle.min.js")'></script>
<script src='@Context.GetLink("/vendor/startbootstrap-clean-blog/js/scripts.js")'></script>
<script src='@Context.GetLink("/js/clean-blog.js")'></script>
@Html.Partial("_scripts")
@RenderSection("Scripts", false)
</body>
</html>