From 24fa9b6b84b233181b9c624826be5dd901fbe7d1 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sun, 9 Feb 2025 03:34:10 +0100 Subject: New style --- templates/404.html | 131 +++++------------------- templates/base.html | 277 ++++++++++++--------------------------------------- templates/feed.xml | 40 ++++---- templates/index.html | 107 ++++++++++---------- templates/note.html | 46 ++++----- templates/page.html | 10 +- templates/post.html | 39 ++++---- 7 files changed, 209 insertions(+), 441 deletions(-) (limited to 'templates') diff --git a/templates/404.html b/templates/404.html index 58deeee..b799f4d 100644 --- a/templates/404.html +++ b/templates/404.html @@ -1,107 +1,30 @@ - - - - {{ block "title" . }}{{ .Config.Title }}{{ end }} - 404 - - - - - - - -
- -
-
-

404

-

Page not found :(

-

The requested page could not be found. Such is life!

-
- - + + + + {{ block "title" . }}{{ .Config.Title }}{{ end }} - 404 + + + + + + +
+

404

+

Page not found :(

+

The requested page could not be found. Such is life!

+ + Check out the following pages + +
+ diff --git a/templates/base.html b/templates/base.html index d1be68a..ab2bff4 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,215 +1,68 @@ - - - - {{ block "title" . }}{{ .Config.Title }}{{ end }} - - - - - - - - -
- -
- -
{{ block "content" . }}{{ end }}
- - - - - + + + + + {{ block "title" . }}{{ .Config.Title }}{{ end }} + + + + + + + + + + + + +
+
+ {{ block "content" . }}{{ end }} +
+ + +
+ + + + diff --git a/templates/feed.xml b/templates/feed.xml index ce6ca07..794de57 100644 --- a/templates/feed.xml +++ b/templates/feed.xml @@ -1,23 +1,23 @@ - - {{ .Config.Title }}'s posts - {{ .Config.BaseURL }} - {{ .Config.Description }} - {{ .Config.Language }} + + {{ .Config.Title }}'s posts + {{ .Config.BaseURL }} + {{ .Config.Description }} + {{ .Config.Language }} - {{ range $idx, $page := .Pages }} - {{ if or (eq $page.Type "post") (eq $page.Type "note") }} - {{ if not .Draft }} - - {{ $page.Title }} - {{ $.Config.BaseURL }}/{{ $page.RelPermalink }} - {{ $page.Created.Format "Mon, 02 Jan 2006 15:04:05 -0700" }} - {{ $.Config.BaseURL }}/{{ $page.RelPermalink }} - {{ $page.Summary }} - {{ $page.Raw }} - - {{ end }} - {{ end }} - {{ end }} - + {{ range $idx, $page := .Pages }} + {{ if or (eq $page.Type "post") (eq $page.Type "note") }} + {{ if not .Draft }} + + {{ $page.Title }} + {{ $.Config.BaseURL }}/{{ $page.RelPermalink }} + {{ $page.Created.Format "Mon, 02 Jan 2006 15:04:05 -0700" }} + {{ $.Config.BaseURL }}/{{ $page.RelPermalink }} + {{ $page.Summary }} + {{ $page.Raw }} + + {{ end }} + {{ end }} + {{ end }} + diff --git a/templates/index.html b/templates/index.html index f5821fc..28aa47e 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,60 +1,61 @@ {{ template "base.html" . }} {{ define "content" }} -
- You do not learn by relaxing. You learn by violently assaulting your problem until it surrenders its mysteries to you. -
+
+

Visualizations and exploration of binary files

+

+ Examine graphical representations of binary files using diagrams that illustrate connections between pairs of bytes (digraphs) and triplets of bytes (trigraphs). + Check out the project page. +

+
+ + + +
+
- - Examine graphical representations of binary files using diagrams that - illustrate connections between pairs of bytes (digraphs) and triplets of - bytes (trigraphs). - +
+

More long form, ramblings etc

+ +
-
-

More long form, ramblings etc

- -
+
+

Notes?! Maybe useful

+ +
-
-

Notes?! Maybe useful

- -
- -
-

Small side projects I work/worked on

- -
+
+

Small side projects I work/worked on

+ +
{{ end }} diff --git a/templates/note.html b/templates/note.html index c543773..55a29e9 100644 --- a/templates/note.html +++ b/templates/note.html @@ -4,34 +4,30 @@ {{ define "description" }}{{ .Page.Summary }}{{ end }} {{ define "content" }} -
-

{{ .Page.Title }}

-

{{ .Page.Type }}, {{ .Page.Created.Format "Jan 2, 2006" }}, on {{ .Config.Title }}'s blog

-
- {{ .Page.HTML }} -
-
+
+

{{ .Page.Title }}

+

{{ .Page.Type }}, {{ .Page.Created.Format "Jan 2, 2006" }}, on {{ .Config.Title }}'s blog

+
{{ .Page.HTML }}
+
-
-

-

Other notes

- -
+
+

+

Other notes

+ +
{{ if .Page.Meta.mathjax }} - + {{ end }} {{ end }} diff --git a/templates/page.html b/templates/page.html index ba87cca..8c38e82 100644 --- a/templates/page.html +++ b/templates/page.html @@ -4,10 +4,8 @@ {{ define "description" }}{{ .Page.Summary }}{{ end }} {{ define "content" }} -
-

{{ .Page.Title }}

-
- {{ .Page.HTML }} -
-
+
+

{{ .Page.Title }}

+
{{ .Page.HTML }}
+
{{ end }} diff --git a/templates/post.html b/templates/post.html index 17f7025..6e122c6 100644 --- a/templates/post.html +++ b/templates/post.html @@ -4,29 +4,26 @@ {{ define "description" }}{{ .Page.Summary }}{{ end }} {{ define "content" }} -
-

{{ .Page.Title }}

-

{{ .Page.Type }}, {{ .Page.Created.Format "Jan 2, 2006" }}, on {{ .Config.Title }}'s blog

-
- {{ .Page.HTML }} -
-
+
+

{{ .Page.Title }}

+

{{ .Page.Type }}, {{ .Page.Created.Format "Jan 2, 2006" }}, on {{ .Config.Title }}'s blog

+
{{ .Page.HTML }}
+
-
-

-

Other posts

- -
+
+

+

Other posts

+ +
{{ if .Page.Meta.mathjax }} - + {{ end }} - {{ end }} -- cgit v1.2.3