Add redesign CSS

This commit is contained in:
2020-05-04 03:23:55 -07:00
parent b270fa78da
commit ee4738b245
10 changed files with 49 additions and 26 deletions

View File

@@ -3,6 +3,7 @@
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<div class="container"><hr class="header-divider"></div>
<main class="container">
{{- block "main" . }}{{- end }}
</main>

View File

@@ -1,7 +1,7 @@
{{ define "main" }}
<h2>{{ .Title }}</h2>
<ul>
<ul class="page-list">
{{ range .Pages.ByDate.Reverse }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}

View File

@@ -1,12 +1,12 @@
{{ define "main" }}
<h2>{{ .Title }}</h2>
<div class="post-subscript">
<p>Posted on {{ .Date.Format "January 2, 2006" }}.</p>
<p>Tags:
<p>
{{ range .Params.tags }}
<a class="button" href="{{ $.Site.BaseURL }}/tags/{{ . | urlize }}">{{ . }}</a>
{{ end }}
</p>
<p>Posted on {{ .Date.Format "January 2, 2006" }}.</p>
</div>
<div class="post-content">

View File

@@ -2,7 +2,7 @@
{{ .Content }}
Recent posts:
<ul>
<ul class="page-list">
{{ range first 10 (where (where .Site.Pages.ByDate.Reverse "Section" "blog") ".Kind" "!=" "section") }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}

View File

@@ -3,7 +3,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#1dc868" />
<link href="https://fonts.googleapis.com/css?family=Inconsolata|Lora|Raleway" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Inconsolata&family=Noto+Sans+JP&family=Lora&display=swap" rel="stylesheet">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
{{ $style := resources.Get "scss/style.scss" | resources.ToCSS | resources.Minify }}
{{ $sidenotes := resources.Get "scss/sidenotes.scss" | resources.ToCSS | resources.Minify }}

View File

@@ -1,7 +1,7 @@
{{ define "main" }}
<h2>Tagged "{{ .Title }}"</h2>
<ul>
<ul class="page-list">
{{ range .Pages.ByDate.Reverse }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}

View File

@@ -2,7 +2,7 @@
<h2>{{ .Title }}</h2>
Below is a list of all the tags ever used on this site.
<ul>
<ul class="page-list">
{{ range sort .Pages "Title" }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}