small pixel drawing of a pufferfish vore

patch up some wording
Jes Olson j3s@c3f.net
Fri, 19 May 2023 09:37:19 -0700
commit

2f428f6e9556cc88e289178a14589501a75f06e1

parent

19a53a257a22286d696350c4e032cf467b8b57dd

2 files changed, 8 insertions(+), 8 deletions(-)

jump to
M files/user.tmpl.htmlfiles/user.tmpl.html

@@ -18,7 +18,7 @@ <a href="{{ .Link }}">

{{ .Title }} </a> <br> - <span class=puny title="{{ .Date }}">published {{ .Date | timeSince }} ago via <a href="//{{ .Link | printDomain }}">{{ .Link | printDomain }}</a></span> + <span class=puny title="{{ .Date }}">published {{ .Date | timeSince }} via <a href="//{{ .Link | printDomain }}">{{ .Link | printDomain }}</a></span> </li> {{ end }} </ul>
M site.gosite.go

@@ -367,19 +367,19 @@ months := int(duration.Hours() / (24 * 7 * 4))

years := int(duration.Hours() / (24 * 7 * 4 * 12)) if years > 100 { - return fmt.Sprintf("far too long") + return fmt.Sprintf("over 100 years ago ಠ_ಠ") } else if years > 1 { - return fmt.Sprintf("%d years", years) + return fmt.Sprintf("%d years ago", years) } else if months > 1 { - return fmt.Sprintf("%d months", months) + return fmt.Sprintf("%d months ago", months) } else if weeks > 1 { - return fmt.Sprintf("%d weeks", weeks) + return fmt.Sprintf("%d weeks ago", weeks) } else if days > 1 { - return fmt.Sprintf("%d days", days) + return fmt.Sprintf("%d days ago", days) } else if hours > 1 { - return fmt.Sprintf("%d hours", hours) + return fmt.Sprintf("%d hours ago", hours) } else if minutes > 1 { - return fmt.Sprintf("%d mins", minutes) + return fmt.Sprintf("%d mins ago", minutes) } else { return fmt.Sprintf("just now") }