Home

blog @main - refs - log -
-
https://git.jolheiser.com/blog.git
My nonexistent blog
tree log patch
chore: update templ Signed-off-by: jolheiser <git@jolheiser.com>
Signature
-----BEGIN SSH SIGNATURE----- U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgBTEvCQk6VqUAdN2RuH6bj1dNkY oOpbPWj+jw4ua1B1cAAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5 AAAAQHR4FsHcOL4KVJlnvj3bLYdF/H1KvtkPo4xojWu997vkBiqvbbUBRuNdqZAbf59STW oqATEuLRC9bQKAwdcIXQ0= -----END SSH SIGNATURE-----
jolheiser <git@jolheiser.com>
1 month ago
6 changed files, 119 additions(+), 81 deletions(-)
M flake.lock -> flake.lock
diff --git a/flake.lock b/flake.lock
index daaaf1e6cd10f38cd6cdfcffc70cec73f2b1677c..f5bcb522d6f69dcc5e62033951b6297b31a4d3aa 100644
--- a/flake.lock
+++ b/flake.lock
@@ -41,12 +41,12 @@           "nixpkgs"
         ]
       },
       "locked": {
-        "lastModified": 1694102001,
+        "lastModified": 1709087332,
-  "nodes": {
       "locked": {
+      },
         "owner": "hercules-ci",
         "repo": "gitignore.nix",
-        "rev": "9e21c80adf67ebcb077d75bd5e7d724d21eeafd6",
+        "rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
         "type": "github"
       },
       "original": {
@@ -64,11 +64,11 @@           "nixpkgs"
         ]
       },
       "locked": {
-        "lastModified": 1705314449,
+        "lastModified": 1722589758,
-        "narHash": "sha256-yfQQ67dLejP0FLK76LKHbkzcQqNIrux6MFe32MMFGNQ=",
+        "narHash": "sha256-sbbA8b6Q2vB/t/r1znHawoXLysCyD4L/6n6/RykiSnA=",
         "owner": "nix-community",
         "repo": "gomod2nix",
-        "rev": "30e3c3a9ec4ac8453282ca7f67fca9e1da12c3e6",
+        "rev": "4e08ca09253ef996bd4c03afa383b23e35fe28a1",
         "type": "github"
       },
       "original": {
@@ -79,11 +79,11 @@       }
     },
     "nixpkgs": {
       "locked": {
-        "lastModified": 1710106936,
+        "lastModified": 1728679842,
-        "narHash": "sha256-VBjP7qVARzQ+TJDhQA7P9Da8QVm9ChHf/p3U16LtMjU=",
+        "narHash": "sha256-c8LQCDsH4h5MRoeq3grbDhvk5FLEsv8xXFY/pFcFLrE=",
         "owner": "nixos",
         "repo": "nixpkgs",
-      "inputs": {
+        "lastModified": 1694529238,
     "flake-utils": {
         "type": "github"
       },
@@ -124,14 +124,14 @@         ],
         "xc": "xc"
       },
       "locked": {
-        "systems": "systems"
         "lastModified": 1694529238,
+      "inputs": {
+        "lastModified": 1694529238,
         "systems": "systems"
-        "narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=",
         "owner": "a-h",
         "repo": "templ",
+        "lastModified": 1694529238,
       },
-  "nodes": {
         "type": "github"
       },
       "original": {
@@ -149,11 +149,11 @@           "nixpkgs"
         ]
       },
       "locked": {
-        "lastModified": 1703164129,
+        "lastModified": 1724404748,
-        "narHash": "sha256-kCcCqqwvjN07H8FPG4tXsRVRcMqT8dUNt9pwW1kKAe8=",
+        "narHash": "sha256-p6rXzNiDm2uBvO1MLzC5pJp/0zRNzj/snBzZI0ce62s=",
         "owner": "joerdav",
         "repo": "xc",
-      },
+        "lastModified": 1694529238,
         "narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=",
         "type": "github"
       },
M flake.nix -> flake.nix
diff --git a/flake.nix b/flake.nix
index cef6a9fdfccae38fbceb771767c5dde25f92bd3d..a1035961990ef9c3456531756fbb44e2041919d0 100644
--- a/flake.nix
+++ b/flake.nix
@@ -7,58 +7,62 @@       inputs.nixpkgs.follows = "nixpkgs";
     };
   };
 
-{
+  outputs =
+    {
+    templ = {
-{
+    templ = {
 {
-{
+    templ = {
   inputs = {
-{
+    templ = {
     nixpkgs.url = "github:nixos/nixpkgs";
-{
+    templ = {
     templ = {
-{
+    templ = {
       url = "github:a-h/templ";
-{
+    templ = {
       inputs.nixpkgs.follows = "nixpkgs";
-{
+    templ = {
     };
-{
+    templ = {
   };
-{
+    nixpkgs.url = "github:nixos/nixpkgs";
 
-  inputs = {
+      packages.${system}.default = pkgs.buildGoModule {
+      url = "github:a-h/templ";
-  inputs = {
+      url = "github:a-h/templ";
 {
-  inputs = {
+      url = "github:a-h/templ";
   inputs = {
-  inputs = {
+      url = "github:a-h/templ";
     nixpkgs.url = "github:nixos/nixpkgs";
-  inputs = {
+      url = "github:a-h/templ";
     templ = {
-  inputs = {
+      url = "github:a-h/templ";
       url = "github:a-h/templ";
-  inputs = {
+      url = "github:a-h/templ";
       inputs.nixpkgs.follows = "nixpkgs";
-  inputs = {
+      url = "github:a-h/templ";
     };
-  inputs = {
+      url = "github:a-h/templ";
   };
-  inputs = {
+      url = "github:a-h/templ";
 
-    nixpkgs.url = "github:nixos/nixpkgs";
+      inputs.nixpkgs.follows = "nixpkgs";
-    };
-    nixpkgs.url = "github:nixos/nixpkgs";
+      inputs.nixpkgs.follows = "nixpkgs";
 {
-    nixpkgs.url = "github:nixos/nixpkgs";
+      inputs.nixpkgs.follows = "nixpkgs";
   inputs = {
-    nixpkgs.url = "github:nixos/nixpkgs";
+      inputs.nixpkgs.follows = "nixpkgs";
     nixpkgs.url = "github:nixos/nixpkgs";
-    nixpkgs.url = "github:nixos/nixpkgs";
+      inputs.nixpkgs.follows = "nixpkgs";
     templ = {
-    nixpkgs.url = "github:nixos/nixpkgs";
+      inputs.nixpkgs.follows = "nixpkgs";
       url = "github:a-h/templ";
-    nixpkgs.url = "github:nixos/nixpkgs";
+      inputs.nixpkgs.follows = "nixpkgs";
       inputs.nixpkgs.follows = "nixpkgs";
+      inputs.nixpkgs.follows = "nixpkgs";
     };
-  };
+      };
+    };
 }
M go.mod -> go.mod
diff --git a/go.mod b/go.mod
index 7ceafc376a1ad3103fb558460bda9de589c7ba7a..e83daac31f4290202ee032f1f498df6067f1bfaf 100644
--- a/go.mod
+++ b/go.mod
@@ -4,7 +4,7 @@ go 1.21.6
 
 require (
 	github.com/BurntSushi/toml v1.3.2
-	github.com/a-h/templ v0.2.543
+	github.com/a-h/templ v0.2.778
 	github.com/alecthomas/chroma/v2 v2.12.0
 	github.com/gorilla/feeds v1.1.2
 	github.com/yuin/goldmark v1.7.0
M go.mod.sri -> go.mod.sri
diff --git a/go.mod.sri b/go.mod.sri
index 8d173c1399888091ee2009049373bbc9d824186e..7787f01765df1420a0e1db54ada9b7c5842e76af 100644
--- a/go.mod.sri
+++ b/go.mod.sri
@@ -1 +1 @@
-sha256-kBUyYzHuCrNgD/KMXqrsd1V1xqpQmBADURIOh9CUFso=
\ No newline at end of file
+sha256-AdXfH+hHYm0KXW9eXquZnWt49EimmMjpbUYOMEvamX8=
\ No newline at end of file
M go.sum -> go.sum
diff --git a/go.sum b/go.sum
index b6480dd6af6a990164073d9407775bc0744bff4a..5623fc73ffd61df27ee192120e5fa9d9d3d8ec3e 100644
--- a/go.sum
+++ b/go.sum
@@ -1,7 +1,7 @@
 github.com/BurntSushi/toml v1.3.2 h1:o7IhLm0Msx3BaB+n3Ag7L8EVlByGnpq14C4YWiu/gL8=
 github.com/BurntSushi/toml v1.3.2/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
-github.com/a-h/templ v0.2.543 h1:8YyLvyUtf0/IE2nIwZ62Z/m2o2NqwhnMynzOL78Lzbk=
+github.com/a-h/templ v0.2.778 h1:VzhOuvWECrwOec4790lcLlZpP4Iptt5Q4K9aFxQmtaM=
-github.com/a-h/templ v0.2.543/go.mod h1:jP908DQCwI08IrnTalhzSEH9WJqG/Q94+EODQcJGFUA=
+github.com/a-h/templ v0.2.778/go.mod h1:lq48JXoUvuQrU0VThrK31yFwdRjTCnIE5bcPCM9IP1w=
 github.com/alecthomas/assert/v2 v2.2.1 h1:XivOgYcduV98QCahG8T5XTezV5bylXe+lBxLG2K2ink=
 github.com/alecthomas/assert/v2 v2.2.1/go.mod h1:pXcQ2Asjp247dahGEmsZ6ru0UVwnkhktn7S0bBDLxvQ=
 github.com/alecthomas/chroma/v2 v2.2.0/go.mod h1:vf4zrexSH54oEjJ7EdB65tGNHmH3pGZmVkgTP5RHvAs=
M templates_templ.go -> templates_templ.go
diff --git a/templates_templ.go b/templates_templ.go
index 3e781cce77b0a845b8054ebf0c0fed2cdae9aa72..265e3907885666585761805e55ee48fd6d4297af 100644
--- a/templates_templ.go
+++ b/templates_templ.go
@@ -1,28 +1,43 @@
 // Code generated by templ - DO NOT EDIT.
 
-// templ: version: v0.2.608
+// templ: version: v0.2.786
 package main
 
 //lint:file-ignore SA4006 This context is only used if a nested component is present.
 
 import "github.com/a-h/templ"
+import templruntime "github.com/a-h/templ/runtime"
+
+import "fmt"
+
+func baseTemplate(title, description string) templ.Component {
+	return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
+	return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) {
 import "context"
+	return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) {
 import "io"
+	return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) {
 import "bytes"
-
+		}
 // Code generated by templ - DO NOT EDIT.
+// templ: version: v0.2.608
-
+		if !templ_7745c5c3_IsBuffer {
 // Code generated by templ - DO NOT EDIT.
+// templ: version: v0.2.608
 // Code generated by templ - DO NOT EDIT.
 // Code generated by templ - DO NOT EDIT.
+// templ: version: v0.2.608
 
 // Code generated by templ - DO NOT EDIT.
+// templ: version: v0.2.608
 // templ: version: v0.2.608
 // Code generated by templ - DO NOT EDIT.
+// templ: version: v0.2.608
 package main
+				}
 // Code generated by templ - DO NOT EDIT.
+// templ: version: v0.2.608
 //lint:file-ignore SA4006 This context is only used if a nested component is present.
-			defer templ.ReleaseBuffer(templ_7745c5c3_Buffer)
 		}
 		ctx = templ.InitializeContext(ctx)
 		templ_7745c5c3_Var1 := templ.GetChildren(ctx)
@@ -81,21 +96,27 @@ 		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</body></html>")
 		if templ_7745c5c3_Err != nil {
 			return templ_7745c5c3_Err
 		}
-		if !templ_7745c5c3_IsBuffer {
-			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W)
-		}
 		return templ_7745c5c3_Err
 	})
 }
 
 func IndexTemplate(articles Articles) templ.Component {
 	return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) {
+import "github.com/a-h/templ"
+		templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
+		if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
+			return templ_7745c5c3_CtxErr
+		}
 		templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer)
 		if !templ_7745c5c3_IsBuffer {
 // Code generated by templ - DO NOT EDIT.
-//lint:file-ignore SA4006 This context is only used if a nested component is present.
+		var templ_7745c5c3_Var3 string
+				templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer)
+				if templ_7745c5c3_Err == nil {
+					templ_7745c5c3_Err = templ_7745c5c3_BufErr
+				}
 // Code generated by templ - DO NOT EDIT.
-import "github.com/a-h/templ"
+		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\"><meta property=\"og:description\" content=\"")
 		}
 		ctx = templ.InitializeContext(ctx)
 		templ_7745c5c3_Var5 := templ.GetChildren(ctx)
@@ -103,15 +123,22 @@ 		if templ_7745c5c3_Var5 == nil {
 			templ_7745c5c3_Var5 = templ.NopComponent
 		}
 		ctx = templ.ClearChildren(ctx)
-//lint:file-ignore SA4006 This context is only used if a nested component is present.
 // Code generated by templ - DO NOT EDIT.
+		var templ_7745c5c3_Var4 string
-			templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer)
+			templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
+			templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
 			if !templ_7745c5c3_IsBuffer {
-//lint:file-ignore SA4006 This context is only used if a nested component is present.
+				defer func() {
+					templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer)
+					if templ_7745c5c3_Err == nil {
+// Code generated by templ - DO NOT EDIT.
 package main
+
+import "github.com/a-h/templ"
 //lint:file-ignore SA4006 This context is only used if a nested component is present.
-//lint:file-ignore SA4006 This context is only used if a nested component is present.
+				}()
 			}
+			ctx = templ.InitializeContext(ctx)
 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<header><h1>jolheiser</h1><p>Just a guy living in the middle of nowhere who likes to hack on open-source.</p></header><main>")
 			if templ_7745c5c3_Err != nil {
 				return templ_7745c5c3_Err
@@ -175,30 +202,33 @@ 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</main>")
 			if templ_7745c5c3_Err != nil {
 				return templ_7745c5c3_Err
 			}
-			if !templ_7745c5c3_IsBuffer {
-				_, templ_7745c5c3_Err = io.Copy(templ_7745c5c3_W, templ_7745c5c3_Buffer)
-			}
 			return templ_7745c5c3_Err
 		})
 		templ_7745c5c3_Err = baseTemplate("jolheiser's blog", "Hahaha yes.....YES!").Render(templ.WithChildren(ctx, templ_7745c5c3_Var6), templ_7745c5c3_Buffer)
 		if templ_7745c5c3_Err != nil {
 			return templ_7745c5c3_Err
 		}
-		if !templ_7745c5c3_IsBuffer {
-			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W)
-		}
 		return templ_7745c5c3_Err
 	})
 }
 
 func ArticleTemplate(article Article) templ.Component {
 	return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) {
+import "github.com/a-h/templ"
+		templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
+		if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
+			return templ_7745c5c3_CtxErr
+		}
 		templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer)
 		if !templ_7745c5c3_IsBuffer {
 // Code generated by templ - DO NOT EDIT.
-//lint:file-ignore SA4006 This context is only used if a nested component is present.
+		var templ_7745c5c3_Var3 string
 // Code generated by templ - DO NOT EDIT.
-import "github.com/a-h/templ"
+		templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(title)
+				if templ_7745c5c3_Err == nil {
+					templ_7745c5c3_Err = templ_7745c5c3_BufErr
+				}
+			}()
 		}
 		ctx = templ.InitializeContext(ctx)
 		templ_7745c5c3_Var10 := templ.GetChildren(ctx)
@@ -206,15 +235,22 @@ 		if templ_7745c5c3_Var10 == nil {
 			templ_7745c5c3_Var10 = templ.NopComponent
 		}
 		ctx = templ.ClearChildren(ctx)
-		templ_7745c5c3_Var11 := templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) {
+		if !templ_7745c5c3_IsBuffer {
 //lint:file-ignore SA4006 This context is only used if a nested component is present.
-
+			templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
+			templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
 			if !templ_7745c5c3_IsBuffer {
-//lint:file-ignore SA4006 This context is only used if a nested component is present.
+				defer func() {
+					templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer)
+// Code generated by templ - DO NOT EDIT.
 package main
+// Code generated by templ - DO NOT EDIT.
+						templ_7745c5c3_Err = templ_7745c5c3_BufErr
+import "github.com/a-h/templ"
 //lint:file-ignore SA4006 This context is only used if a nested component is present.
-//lint:file-ignore SA4006 This context is only used if a nested component is present.
+				}()
 			}
+			ctx = templ.InitializeContext(ctx)
 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<header><h1><a href=\"/\"><small>jolheiser</small></a></h1><hr><h2>")
 			if templ_7745c5c3_Err != nil {
 				return templ_7745c5c3_Err
@@ -288,21 +324,17 @@ 			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\">source</a></footer>")
 			if templ_7745c5c3_Err != nil {
 				return templ_7745c5c3_Err
 			}
-			if !templ_7745c5c3_IsBuffer {
-				_, templ_7745c5c3_Err = io.Copy(templ_7745c5c3_W, templ_7745c5c3_Buffer)
-			}
 			return templ_7745c5c3_Err
 		})
 		templ_7745c5c3_Err = baseTemplate(article.Title, article.Summary).Render(templ.WithChildren(ctx, templ_7745c5c3_Var11), templ_7745c5c3_Buffer)
 		if templ_7745c5c3_Err != nil {
 			return templ_7745c5c3_Err
 		}
-// Code generated by templ - DO NOT EDIT.
 package main
 package main
-// templ: version: v0.2.608
-		}
+	})
 package main
-package main
+import "github.com/a-h/templ"
-	})
+
+// Code generated by templ - DO NOT EDIT.
 }