mirror of https://github.com/jlelse/GoBlog
Don't show like context twice
This commit is contained in:
parent
0a835b5f61
commit
52969a7376
|
@ -163,20 +163,6 @@ func (a *goBlog) renderPostMeta(hb *htmlbuilder.HtmlBuilder, p *post, b *configB
|
||||||
// IndieWeb Meta
|
// IndieWeb Meta
|
||||||
a.renderPostReplyContext(hb, p, "")
|
a.renderPostReplyContext(hb, p, "")
|
||||||
a.renderPostLikeContext(hb, p, "")
|
a.renderPostLikeContext(hb, p, "")
|
||||||
// Like ("u-like-of")
|
|
||||||
if likeLink := a.likeLink(p); likeLink != "" {
|
|
||||||
hb.WriteElementOpen("div")
|
|
||||||
hb.WriteEscaped(a.ts.GetTemplateStringVariant(b.Lang, "likeof"))
|
|
||||||
hb.WriteEscaped(": ")
|
|
||||||
hb.WriteElementOpen("a", "class", "u-like-of", "rel", "noopener", "target", "_blank", "href", likeLink)
|
|
||||||
if likeTitle := a.likeTitle(p); likeTitle != "" {
|
|
||||||
hb.WriteEscaped(likeTitle)
|
|
||||||
} else {
|
|
||||||
hb.WriteEscaped(likeLink)
|
|
||||||
}
|
|
||||||
hb.WriteElementClose("a")
|
|
||||||
hb.WriteElementClose("div")
|
|
||||||
}
|
|
||||||
// Geo
|
// Geo
|
||||||
if geoURIs := a.geoURIs(p); len(geoURIs) != 0 {
|
if geoURIs := a.geoURIs(p); len(geoURIs) != 0 {
|
||||||
hb.WriteElementOpen("div")
|
hb.WriteElementOpen("div")
|
||||||
|
|
Loading…
Reference in New Issue