oops
This commit is contained in:
parent
a6a874b6a8
commit
e4d7c3c269
|
@ -179,14 +179,15 @@ func (s *Site) showPost(w http.ResponseWriter, r *http.Request) {
|
|||
Link string
|
||||
BodyHTML template.HTML
|
||||
Date string
|
||||
Series string
|
||||
Series, SeriesTag string
|
||||
Tags string
|
||||
}{
|
||||
Title: p.Title,
|
||||
Link: p.Link,
|
||||
BodyHTML: p.BodyHTML,
|
||||
Date: p.Date.Format(dateFormat),
|
||||
Series: strings.ReplaceAll(p.Series, "-", ""),
|
||||
Series: p.Series,
|
||||
SeriesTag: strings.ReplaceAll(p.Series, "-", ""),
|
||||
Tags: tags,
|
||||
}).ServeHTTP(w, r)
|
||||
postView.With(prometheus.Labels{"base": filepath.Base(p.Link)}).Inc()
|
||||
|
|
|
@ -99,7 +99,7 @@ function share_on_mastodon() {
|
|||
// Hashtags
|
||||
var hashtags = "#blogpost";
|
||||
|
||||
{{ if ne .Series "" }}hashtags += " #{{ .Series }}";{{ end }}
|
||||
{{ if ne .SeriesTag "" }}hashtags += " #{{ .SeriesTag }}";{{ end }}
|
||||
{{ if ne .Tags "" }}hashtags += "{{ .Tags }}";{{ end }}
|
||||
|
||||
// Tagging users, such as offical accounts or the author of the post
|
||||
|
|
Loading…
Reference in New Issue