tweaking some base templates

This commit is contained in:
Dorian Wood 2021-06-19 21:35:58 -04:00
parent 24f284b325
commit 709d048a3e
4 changed files with 15 additions and 17 deletions

View File

@ -1,19 +1,8 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> {{- partial "head.html" . -}}
<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>
<body> <body>
<h1>{{- .Title }}</h1> {{- partial "header.html" . }}
{{- partial "nav.html" . }}
<div id="content"> <div id="content">
{{- block "main" . }}{{- end }} {{- block "main" . }}{{- end }}
</div> </div>

View File

@ -6,7 +6,7 @@
{{ .Content }} {{ .Content }}
</main> </main>
<section id="projects"> <section id="projects">
{{- range first 10 .Data.Pages }} {{- range .Data.Pages }}
<a href="{{ .Permalink }}" class="button"> <a href="{{ .Permalink }}" class="button">
<section class="project-tile"> <section class="project-tile">
<a href="{{- .Permalink }}" class="button"><h2>{{ .Title }}</h2></a> <a href="{{- .Permalink }}" class="button"><h2>{{ .Title }}</h2></a>

View File

@ -1,3 +1,11 @@
<body> <head>
{{ partial "nav.html" . }} <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<main id="main-content"> <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>

View File

@ -1,3 +1,4 @@
<h1>{{- .Title }}</h1>
<nav id="navbar"> <nav id="navbar">
{{ $currentPage := . }} {{ $currentPage := . }}
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}