forked from toptal/webdevchecklist.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.cshtml
105 lines (88 loc) · 4.44 KB
/
index.cshtml
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
@{
if (!Request.IsLocal)
{
Response.Cache.SetValidUntilExpires(true);
Response.Cache.SetExpires(DateTime.UtcNow.AddDays(1));
Response.Cache.SetCacheability(HttpCacheability.Public);
Response.Cache.VaryByParams["site"] = true;
string file = Server.MapPath("~/web.config");
Response.AddFileDependency(file);
Response.Cache.SetLastModifiedFromFileDependencies();
}
string SiteName = Checklist.GetSiteName (Request);
string DataName = Checklist.GetPageName(Request).Replace("/", " ").Replace("index", string.Empty);
string Section = Checklist.GetBaseName(Request);
string PageTitle = Checklist.GetPageTitle(Request);
}
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8" />
<meta name="keywords" content="checklist, best practices, web development, performance, usability, mobile, website, @DataName" />
<meta name="description" content="The ultimate checklist for all serious web developers building modern websites. @DataName" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes" />
<link rel="stylesheet" href="@Fingerprint.Tag("/content/all.min.css")" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<meta name="application-name" content="Web Dev Checklist" />
<meta name="msapplication-TileColor" content="#f7f7f7" />
<meta name="msapplication-TileImage" content="/images/webdevchecklist.png" />
<meta name="twitter:title" content="@PageTitle" />
<meta name="twitter:description" content="The ultimate checklist for all serious web developers building modern websites." />
<meta name="twitter:image" content="http://webdevchecklist.com/images/webdevchecklist.png" />
<meta name="og:title" content="@PageTitle" />
<meta name="og:type" content="website" />
<meta name="og:url" content="@string.Format("http://webdevchecklist.com{0}", Request.RawUrl)" />
<meta name="og:image" content="http://webdevchecklist.com/images/webdevchecklist.png" />
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="/images/apple-touch-icon-114x114-precomposed.png" />
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/images/apple-touch-icon-114x114-precomposed.png" />
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/images/apple-touch-icon-144x144-precomposed.png" />
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/images/apple-touch-icon-144x144-precomposed.png" />
@if (!string.IsNullOrEmpty(Section))
{
<title>@PageTitle - @DataName</title>
<link rel="stylesheet" href="@Fingerprint.Tag("/sites/" + SiteName + "/Sections/" + Section + "/section.css")" />
}
else {
<title>@PageTitle</title>
}
<script src="/Scripts/modernizr-2.6.2.js"></script>
</head>
<body class="@Section.Replace(".", string.Empty).ToLowerInvariant()">
<header itemscope itemtype="http://schema.org/WebApplication">
<h1 itemprop="name">@PageTitle</h1>
@if (DataName != Checklist.Title)
{
<h2>@DataName.Replace("-", " ")</h2>
}
</header>
@if (Checklist.Docs[SiteName].Count > 1) {
@RenderPage("~/views/_menu.cshtml", null);
}
<aside role="complementary">
<a href="https://github.com/ligershark/webdevchecklist.com">
<span class="ghFork"></span>
</a>
</aside>
<div id="main" role="main">
@RenderPage("~/views/_data.cshtml", null)
</div>
<footer>
<a href="#" id="reset">Reset</a>
<progress value="1" max="100">
<span id="fallback"> </span>
</progress>
</footer>
<script src="@Fingerprint.Tag("/scripts/script.min.js")" async="async"></script>
<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-37479788-1']);
_gaq.push(['_trackPageview']);
(function () {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<!-- @Request.QueryString["site"] -->
</body>
</html>