header_html_file.go 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. package template
  2. var VarHeaderHtmlFile = []byte(`<!doctype html>
  3. <html lang="en">
  4. <head>
  5. <!-- Required meta tags -->
  6. <meta charset="utf-8">
  7. <meta name="theme-color" content="#205081" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  9. <!-- Bootstrap CSS -->
  10. <link rel="stylesheet" href="{{$.System.PathCssBootstrap}}">
  11. <link rel="stylesheet" href="{{$.System.PathCssLightGallery}}">
  12. <title>Cached block 1</title>
  13. <meta name="keywords" content="{{$.Data.Page.MetaKeywords}}" />
  14. <meta name="description" content="{{$.Data.Page.MetaDescription}}" />
  15. <link rel="shortcut icon" href="{{$.System.PathIcoFav}}" type="image/x-icon" />
  16. <!-- Template CSS file from template folder -->
  17. <link rel="stylesheet" href="{{$.System.PathThemeStyles}}?v=3">
  18. </head>
  19. <body class="fixed-top-bar">
  20. <div id="wrap">
  21. <nav class="navbar navbar-expand-lg navbar-light bg-light">
  22. <div class="container">
  23. <a class="navbar-brand" href="/">Fave {{$.System.InfoVersion}}</a>
  24. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
  25. <span class="navbar-toggler-icon"></span>
  26. </button>
  27. <div class="collapse navbar-collapse" id="navbarResponsive">
  28. <ul class="navbar-nav ml-auto">
  29. <li class="nav-item{{if eq $.Data.Page.Alias "/"}} active{{end}}">
  30. <a class="nav-link" href="/">Home</a>
  31. </li>
  32. <li class="nav-item">
  33. <a class="nav-link{{if eq $.Data.Page.Alias "/another/"}} active{{end}}" href="/another/">Another</a>
  34. </li>
  35. <li class="nav-item">
  36. <a class="nav-link{{if eq $.Data.Page.Alias "/about/"}} active{{end}}" href="/about/">About</a>
  37. </li>
  38. <li class="nav-item">
  39. <a class="nav-link{{if or (eq $.Data.Module "blog") (eq $.Data.Module "blog-post") (eq $.Data.Module "blog-category")}} active{{end}}" href="/blog/">Blog</a>
  40. </li>
  41. <li class="nav-item">
  42. <a class="nav-link{{if or (eq $.Data.Module "shop") (eq $.Data.Module "shop-product") (eq $.Data.Module "shop-category")}} active{{end}}" href="/shop/">Shop</a>
  43. </li>
  44. <li class="nav-item">
  45. <a class="nav-link{{if eq $.Data.Module "404"}} active{{end}}" href="/not-existent-page/">404</a>
  46. </li>
  47. </ul>
  48. </div>
  49. </div>
  50. </nav>
  51. <div id="main">
  52. <div class="bg-fave">
  53. <div class="container">
  54. <h1 class="text-left text-white m-0 p-0 py-5">Cached block 2</h1>
  55. </div>
  56. </div>
  57. Cached block 3
  58. <div class="container clear-top">
  59. <div class="row pt-4">
  60. {{if or (eq $.Data.Module "shop") (eq $.Data.Module "shop-category")}}
  61. <div class="col-sm-5 col-md-4 col-lg-3">
  62. {{template "sidebar-left.html" .}}
  63. </div>
  64. {{end}}
  65. {{if or (eq $.Data.Module "shop-product")}}
  66. <div class="col-md-12">
  67. {{else}}
  68. <div class="col-sm-7 col-md-8 col-lg-9">
  69. {{end}}`)