Home

blog @main - refs - log -
-
https://git.jolheiser.com/blog.git
My nonexistent blog
tree log patch
fix: canonical link in feed Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signature
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEgqEQpE3xoo1QwJO/uFOtpdp7v3oFAmaNr64ACgkQuFOtpdp7 v3oNaA//cri831n00kWJLM/JD+jzlH6Ic09//lY31i5b32rIgDhKGQVd8RuEefQS qriz5sjYbSzQmclpWq9z6167BsRJUS0ZKzcM7MPcSgd3zgJ8XcO7HiUtZgEJeKq/ CC3VhAA+O+YnoKpxrBJJJhRSytVmSTkXUwy0/iPcJiwwYymT6M+fXpMwdZ7RjLVo nIIplIrH+gp/PNjqWkGWLCJ4jiV1gCVLL1fIgsP1oWmwmfDBOcP2fGcNN/v55ZHB teC/En2NAQimeBwTf9k/e+3Q6KvjAavIUQShodxJjcpYiFGOm/8nf3F7npzpUJAz xnxBsBczGIBKq7Mh4EY5Vz02uZpxgpPxteBp6Xpz72KGIsZKkbcIs0W3fUlMNJoT lV1308UnQ3qe9jbkF7E9bSXjPUErdDV8JG7Mg0nbEgyKlVq4mNyGzvXXEWVtOOcZ vNzFFxrbu5wWzexPFJCLuBv0+p2cWqbq2GiUlbIjlJUHYiio2D8aDyELwWiwzOsb +bBwD9MoyvAQuSCdUJmYgM/Vp4puW+Doq5Zvu7TpeEHHonKZ6GaGpmZdwYQf/2Hv OnPlZ7xNQqLoFEWJ7lZTLcBHez52jy1TxnkWtRm7Oaabm22DfRl0U5kwjbKYqpjw /H3kDKgjJrXJtgesDWcCjhaF3d16432R8TJgAtTcse35tLsKD6A= =PDFn -----END PGP SIGNATURE-----
jolheiser <john.olheiser@gmail.com>
4 months ago
1 changed files, 4 additions(+), 1 deletions(-)
M main.go -> main.go
diff --git a/main.go b/main.go
index 13ad2f62354da0dfece801ab883c0ea88fa66294..923f70e2c86e9380566371d2768f93b28179dd9d 100644
--- a/main.go
+++ b/main.go
@@ -125,7 +125,7 @@ 	defer fi.Close()
 
 	feed := &feeds.Feed{
 		Title:       "jolheiser",
-		Link:        &feeds.Link{Href: "https://blog.jolheiser.com"},
+		Link:        &feeds.Link{Href: "https://blog.jolheiser.com/"},
 		Description: "jolheiser's blog log in a blog bog",
 		Author: &feeds.Author{
 			Name:  "John Olheiser",
@@ -136,6 +136,9 @@ 		Created: time.Date(2024, time.February, 25, 0, 0, 0, 0, time.Local),
 		// Image:       &feeds.Image{},
 	}
 	for _, article := range articles {
+		if article.Draft {
+			continue
+		}
 		url := fmt.Sprintf("https://blog.jolheiser.com/%s", article.Slug())
 		feed.Items = append(feed.Items, &feeds.Item{
 			Title:       article.Title,