Explorar o código

updated template file, testing soon

Casey DeLorme %!s(int64=10) %!d(string=hai) anos
pai
achega
e7041637fd
Modificáronse 1 ficheiros con 26 adicións e 16 borrados
  1. 26 16
      template.tmpl

+ 26 - 16
template.tmpl

@@ -1,29 +1,39 @@
 <!doctype html>
 <html lang="en">
-<head>
-    <meta charset="utf-8">
-    <title>Casey DeLorme's Portfolio / caseydelorme.com</title>
-    <link rel="stylesheet" type="text/css" href="/css/main.css#{{$gitversion}}">
-</head>
+    <head>
+        {{/* depth stored for access inside navigation loop */}}
+        {{$depth := .Depth}}
+        <meta charset="utf-8">
+        <title>{{if .Name}}{{.Name}} | {{end}}Casey DeLorme's Portfolio / caseydelorme.com</title>
+        <link rel="stylesheet" type="text/css" href="{{$depth}}/css/main.css#{{.Version}}">
+    </head>
     <body>
 
         <header>
-            <h1>Casey Delorme</h1>
+            <h1>Casey DeLorme</h1>
+            {{if .Nav}}
             <nav>
-                {{$navigation}}
+                <ul>
+                {{range .Nav}}
+                    <li><a href='{{$depth}}{{.Link}}'>{{.Name}}</a></li>
+                {{end}}
+                </ul>
             </nav>
+            {{end}}
         </header>
 
-        <div class="content group">
-            {{$content}}
-        </div>
+        <div class="content group">{{.Content}}</div>
 
-        <footer>
-            Copyright?
+        <div class="footer">
+            <a href='https://www.facebook.com/CaseyRDeLorme' class='link facebook'></a> |
+            <a href='https://www.linkedin.com/in/cdelorme' class='link linkedin'></a> |
+            <a href='https://www.youtube.com/user/LordOfElm' class='link youtube'></a> |
+            <a href='https://github.com/cdelorme' class='link github'></a> |
+            <a href='skype:casey.delorme?chat' class='link skype'></a>
             <div class="scripts">
-                <script src="/js/main.js#{{$gitversion}}" async></script>
+                <script type="text/javascript" src="{{$depth}}/js/main.js#{{.Version}}" async></script>
             </div>
-        </footer>
-    </body>
+        </div>
 
-</html>
+    </body>
+</html>