Add detailed-list style for RSS

This commit is contained in:
Svilen Markov
2024-05-21 17:28:30 +01:00
parent 6663360caa
commit d18f645c18
13 changed files with 182 additions and 15 deletions

View File

@@ -77,3 +77,13 @@ func maybeCopySliceWithoutZeroValues[T int | float64](values []T) []T {
return values
}
func limitStringLength(s string, max int) (string, bool) {
asRunes := []rune(s)
if len(asRunes) > max {
return string(asRunes[:max]), true
}
return s, false
}