The next generation of the Teknik Services. Written in ASP.NET. Fork for blog tags.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_Layout.cshtml 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. @model Teknik.ViewModels.ViewModelBase
  2. @using Teknik.Helpers
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <!-- Required Meta -->
  7. <meta charset="utf-8" />
  8. <meta http-equiv="x-ua-compatible" content="ie=edge" />
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  10. <!-- Content Restriction Policy: Where the content is allowed to come from -->
  11. @if (!Request.IsLocal)
  12. {
  13. // Only have this if we aren't running on localhost
  14. <meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline' 'unsafe-eval' *.@Model.Config.Host @Model.Config.ShortenerConfig.ShortenerHost; img-src *; media-src *" />
  15. }
  16. <!-- What is the page's content type -->
  17. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  18. <!-- Website Info -->
  19. <meta name="description" content="@ViewBag.Description" />
  20. <meta name="author" content="@Model.Config.Author" />
  21. <!-- Robots -->
  22. <meta name="robots" content="index,follow,noodp"><!-- All Search Engines -->
  23. <!-- Site Verification Tags -->
  24. <meta name="google-site-verification" content="X54N1YTsjgOc7hivpZK7RRKyvhGwaTI4BoFfxqOLlbc" />
  25. <!-- Start of page 'load' -->
  26. <script type="text/javascript">
  27. var startTime = new Date();
  28. </script>
  29. <!-- Main Page Title -->
  30. <title>@ViewBag.Title</title>
  31. <!-- Favicon -->
  32. <link href="@Url.SubRouteUrl("www", "Default.Favicon")" rel="shortcut icon" type="image/x-icon" />
  33. <link href="@Url.SubRouteUrl("www", "Default.Favicon")" rel="apple-touch-icon-precomposed" />
  34. @Styles.Render("~/Content/Common")
  35. @Scripts.Render("~/bundles/common")
  36. </head>
  37. <body data-twttr-rendered="true">
  38. <div id="wrap">
  39. @Html.Partial("_Navbar")
  40. <div class="container">
  41. <div class="row">
  42. <div class="col-xs-12 text-center">
  43. <div id="top_msg"></div>
  44. </div>
  45. </div>
  46. </div>
  47. <!-- NoScript Alert -->
  48. <noscript>
  49. <div class="container">
  50. <div class="row">
  51. <div class="col-xs-12 text-center">
  52. <div class="alert alert-danger">
  53. <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
  54. <span><strong>Notice: </strong> JavaScript is not enabled. To experience the site at its best, <a href="http://enable-javascript.com/" class="alert-link">please enable JavaScript</a>.</span>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. </noscript>
  60. @RenderBody()
  61. </div>
  62. @Html.Partial("_Footer")
  63. <script type="text/javascript">
  64. $(document).ready(function () {pageloadDoTimer();});
  65. </script>
  66. </body>
  67. </html>