Home

blog @main - refs - log -
-
https://git.jolheiser.com/blog.git
My nonexistent blog
tree log patch
fix: remove year from slug There's no real reason to get this granular Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signature
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEgqEQpE3xoo1QwJO/uFOtpdp7v3oFAmaNqEwACgkQuFOtpdp7 v3q+/A/+MP9/OqV1As9lb2h10xrT3ZVrIKwkwO+lkiLj90++YU2MepkJvKVl7Cvo vA8JZ+TwEVBaB7tqpxm9U+R6Z+KdDYtJl4lNil0JRqXCnJz9qNtVymVDXcicIX8A 1cY84Ye/AEML4XD1ZzecFSlIoTCtOISr/+Trmu2QnyltDws+Cm7xVz7AH2I/eQx7 i/lOtyOJhCTOCP2sO40axnflsHUuN8M33J5MhXyMdXEqaeDD/3CkzS8LXVmuVWgC yuoZ0vqcbLeckd1Ztf14AsOF6JK00dajTBHuVo78LPQ6lJ220VCaQ4yhHl1UEuRJ erzAlzeTAlNqRriDa64I1Dibj+zQouCWl0k3URrNETxl8wLOd9eCTgFsO+VmxhkX iMbp6gV5B2mHtNoCSOqQ+5PeJZR2u4kapQ9p6F0yxIFxLVs+H3sSdbJIglNyFFet 4wob+FeRqioijFB+ekPDM7DL45WGK4sPzKMJXyCiJYJHk+eCJgT4InS5qYUfa7uV gJJ6K5Yd50w1fH860BXHGb7TJSDoa3X7+wsUrDzUZunN7bs+8JVNIXqOo7QSqFMh 9wv1T4M88/wWlNbc9MqhFb1xEusdgAig2OX9BUYtRnjW9CDcf/iukJmedV0/NZaf LKcLj/3pR4uLlH7GBNQuwZXxQU7RjIuyekUerlYVaFzFabyP/Pw= =pDho -----END PGP SIGNATURE-----
jolheiser <john.olheiser@gmail.com>
4 months ago
1 changed files, 1 additions(+), 2 deletions(-)
M templates.go -> templates.go
diff --git a/templates.go b/templates.go
index 224c48e47c4ae020b90560310bb6a01f9d88385a..eac3264e98393a7f3d716c7531062157f9bbb7c7 100644
--- a/templates.go
+++ b/templates.go
@@ -26,8 +26,7 @@ 	Meta
 }
 
 func (a Article) Slug() string {
-	slug := strings.NewReplacer(" ", "-").Replace(strings.ToLower(a.Meta.Title))
-	return fmt.Sprintf("%s/%s/", a.Meta.Date.Format("2006"), slug)
+	return strings.NewReplacer(" ", "-").Replace(strings.ToLower(a.Meta.Title))
 }
 
 type Meta struct {