mirror of https://github.com/jlelse/GoBlog
Fix print CSS
This commit is contained in:
parent
80fb177d40
commit
b04bf3be46
|
@ -292,11 +292,9 @@ details summary {
|
|||
}
|
||||
|
||||
nav,
|
||||
#post-actions,
|
||||
.actions,
|
||||
#tts,
|
||||
#related,
|
||||
#interactions,
|
||||
#posteditactions,
|
||||
#tor,
|
||||
#announcement {
|
||||
display: none;
|
||||
|
|
|
@ -246,11 +246,9 @@ details summary > *:first-child {
|
|||
}
|
||||
|
||||
nav,
|
||||
#post-actions,
|
||||
.actions,
|
||||
#tts,
|
||||
#related,
|
||||
#interactions,
|
||||
#posteditactions,
|
||||
#tor,
|
||||
#announcement {
|
||||
display: none;
|
||||
|
|
3
ui.go
3
ui.go
|
@ -903,6 +903,7 @@ func (a *goBlog) renderPost(hb *htmlBuilder, rd *renderData) {
|
|||
hb.writeElementClose("button")
|
||||
hb.writeElementOpen("script", "defer", "", "src", lo.If(p.TTS() != "", a.assetFileName("js/tts.js")).Else(a.assetFileName("js/speak.js")))
|
||||
hb.writeElementClose("script")
|
||||
// Close post actions
|
||||
hb.writeElementClose("div")
|
||||
// TTS
|
||||
if tts := p.TTS(); tts != "" {
|
||||
|
@ -1031,7 +1032,7 @@ func (a *goBlog) renderStaticHome(hb *htmlBuilder, rd *renderData) {
|
|||
hb.writeElementClose("main")
|
||||
// Update
|
||||
if rd.LoggedIn() {
|
||||
hb.writeElementOpen("div", "id", "posteditactions")
|
||||
hb.writeElementOpen("div", "class", "actions")
|
||||
hb.writeElementOpen("form", "method", "post", "action", rd.Blog.RelativePath("/editor")+"#update")
|
||||
hb.writeElementOpen("input", "type", "hidden", "name", "editoraction", "value", "loadupdate")
|
||||
hb.writeElementOpen("input", "type", "hidden", "name", "path", "value", p.Path)
|
||||
|
|
Loading…
Reference in New Issue