Start making the layout look like the old site

This commit is contained in:
Danila Fedorin 2019-08-02 18:36:12 -07:00
parent 2aae302793
commit d1ad723a22
4 changed files with 24 additions and 2 deletions

View File

@ -3,9 +3,9 @@
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<div id="content">
<main class="container">
{{- block "main" . }}{{- end }}
</div>
</main>
{{- partial "footer.html" . -}}
</body>
</html>

View File

@ -0,0 +1,3 @@
{{ define "main" }}
{{ .Content }}
{{ end }}

View File

@ -0,0 +1,7 @@
<head>
{{ $style := resources.Get "scss/style.scss" | resources.ToCSS | resources.Minify }}
<link href="https://fonts.googleapis.com/css?family=Inconsolata|Lora|Raleway" rel="stylesheet">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
<link rel="stylesheet" href="{{ $style.Permalink }}">
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/default.js"></script>
</head>

View File

@ -0,0 +1,12 @@
<div class="container">
<h1>Daniel's Blog</h1>
</div>
<nav>
<div class="container">
<a href="/">Home</a>
<a href="https://github.com/DanilaFe">GitHub</a>
<a href="/about">About</a>
<a href="/tags">Tags</a>
<a href="/archive">Archive</a>
</div>
</nav>