Browse Source

Html example template fixes

Vova Tkach 6 years ago
parent
commit
9e54b4b64f
2 changed files with 8 additions and 10 deletions
  1. 2 4
      hosts/localhost/template/header.html
  2. 6 6
      hosts/localhost/template/index.html

+ 2 - 4
hosts/localhost/template/header.html

@@ -10,15 +10,13 @@
 		<link rel="stylesheet" href="{{$.System.PathCssBootstrap}}">
 
 		<title>{{$.Data.MetaTitle}}</title>
-
 		<meta name="keywords" content="{{$.Data.MetaKeywords}}" />
 		<meta name="description" content="{{$.Data.MetaDescription}}" />
-
 		<link rel="shortcut icon" href="{{$.System.PathIcoFav}}" type="image/x-icon" />
 	</head>
-	<body class="pt-5">
+	<body>
 		<header>
-			<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
+			<nav class="navbar navbar-expand-md navbar-dark bg-dark">
 				<a class="navbar-brand" href="/">Home</a>
 				<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
 					<span class="navbar-toggler-icon"></span>

+ 6 - 6
hosts/localhost/template/index.html

@@ -1,4 +1,10 @@
 {{template "header.html" .}}
+<div class="container some-text pt-3">
+	<h2>{{$.Data.Name}}</h2>
+	<div>
+		{{$.Data.Content}}
+	</div>
+</div>
 <div class="container circles pt-4">
 	<div class="card-deck text-center">
 		<div class="card mb-4 box-shadow">
@@ -27,10 +33,4 @@
 		</div>
 	</div>
 </div>
-<div class="container some-text pt-3">
-	<h2>{{$.Data.Name}}</h2>
-	<div>
-		{{$.Data.Content}}
-	</div>
-</div>
 {{template "footer.html" .}}