tweaking some base templates
This commit is contained in:
parent
24f284b325
commit
709d048a3e
|
@ -1,19 +1,8 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="author" content="Dorian Wood">
|
||||
<meta name="Content-Type-Script" content="text/javascript" />
|
||||
<meta name="Content-Type-Style" content="text/css" />
|
||||
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />
|
||||
<meta name="revisit-after" content="7 days" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
|
||||
<link rel="stylesheet" type="text/css" href="{{ "css/style.css" | relURL }}">
|
||||
</head>
|
||||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
<h1>{{- .Title }}</h1>
|
||||
{{- partial "nav.html" . }}
|
||||
{{- partial "header.html" . }}
|
||||
<div id="content">
|
||||
{{- block "main" . }}{{- end }}
|
||||
</div>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
{{ .Content }}
|
||||
</main>
|
||||
<section id="projects">
|
||||
{{- range first 10 .Data.Pages }}
|
||||
{{- range .Data.Pages }}
|
||||
<a href="{{ .Permalink }}" class="button">
|
||||
<section class="project-tile">
|
||||
<a href="{{- .Permalink }}" class="button"><h2>{{ .Title }}</h2></a>
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
<body>
|
||||
{{ partial "nav.html" . }}
|
||||
<main id="main-content">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="author" content="Dorian Wood">
|
||||
<meta name="Content-Type-Script" content="text/javascript" />
|
||||
<meta name="Content-Type-Style" content="text/css" />
|
||||
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />
|
||||
<meta name="revisit-after" content="7 days" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
|
||||
<link rel="stylesheet" type="text/css" href="{{ "css/style.css" | relURL }}">
|
||||
</head>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<h1>{{- .Title }}</h1>
|
||||
<nav id="navbar">
|
||||
{{ $currentPage := . }}
|
||||
{{ range .Site.Menus.main }}
|
Loading…
Reference in New Issue