From 0e4fc9aaa65f494e1f668cd08d76cf33d0486611 Mon Sep 17 00:00:00 2001 From: tong Date: Sun, 29 Nov 2020 13:28:45 +0100 Subject: [PATCH] Update layouts --- layouts/index.html | 35 +++++++++---------------------- layouts/partials/links.html | 5 +++-- layouts/partials/site/aside.html | 5 +++-- layouts/partials/site/footer.html | 11 +++++----- layouts/theme/single.html | 4 ++-- 5 files changed, 24 insertions(+), 36 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index c03bd65..55799c3 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,42 +1,27 @@ -{{ define "header" }} - - +{{ define "main" }} + + - - - - + + + + {{ end }} -{{ define "nav" }} - -{{/* */}} -{{ end }} - -{{ define "main" }} - -{{/* */}} -{{ end }} - -{{ define "footer" }} - -{{ end }} - {{ define "scripts" }} {{ end }} {{ define "preload" }} - + {{ end }} diff --git a/layouts/partials/links.html b/layouts/partials/links.html index 957d9ed..a689e75 100644 --- a/layouts/partials/links.html +++ b/layouts/partials/links.html @@ -13,11 +13,12 @@ {{ $url := urls.Parse $urlstr }} {{ if eq $url.Host "github.com" }}{{ $type = "github" }} - {{ else if eq $url.Host "disktree.net" }}{{ $type = "diamond" }} + {{ else if eq $url.Host "disktree.net" }}{{ $type = "circle" }} + {{ else if eq $url.Host "disktree.bandcamp.com" }}{{ $type = "circle" }} + {{ else if eq $url.Host "disktree.itch.io" }}{{ $type = "circle" }} {{ else if eq $url.Host "gist.github.com" }}{{ $type = "github" }} {{ else if eq $url.Host "gitlab.com" }}{{ $type = "gitlab" }} {{ else if eq $url.Host "bandcamp.com" }}{{ $type = "bandcamp" }} - {{ else if eq $url.Host "disktree.bandcamp.com" }}{{ $type = "bandcamp" }} {{ else if eq $url.Host "twitter.com" }}{{ $type = "twitter" }} {{ else if eq $url.Host "vimeo.com" }}{{ $type = "vimeo" }} {{ else if eq $url.Host "youtube.com" }}{{ $type = "youtube" }} diff --git a/layouts/partials/site/aside.html b/layouts/partials/site/aside.html index 827adfc..0a2c7df 100644 --- a/layouts/partials/site/aside.html +++ b/layouts/partials/site/aside.html @@ -6,10 +6,11 @@
  • {{ .GitInfo.AuthorName }}
  • {{ end }} -