mirror of https://github.com/jlelse/GoBlog
Improve print CSS
This commit is contained in:
parent
6bc70f0a0e
commit
95a7ff134c
|
@ -245,7 +245,18 @@ footer {
|
||||||
nav,
|
nav,
|
||||||
#post-actions,
|
#post-actions,
|
||||||
#related,
|
#related,
|
||||||
#interactions {
|
#interactions,
|
||||||
|
#posteditactions,
|
||||||
|
#tor {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Show link
|
||||||
|
.e-content a[href]:after {
|
||||||
|
content: " [" attr(href) "]";
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -211,7 +211,17 @@ footer * {
|
||||||
nav,
|
nav,
|
||||||
#post-actions,
|
#post-actions,
|
||||||
#related,
|
#related,
|
||||||
#interactions {
|
#interactions,
|
||||||
|
#posteditactions,
|
||||||
|
#tor {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.e-content a[href]:after {
|
||||||
|
content: " [" attr(href) "]";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,18 +1,15 @@
|
||||||
{{ define "footer" }}
|
{{ define "footer" }}
|
||||||
<footer>
|
<footer>
|
||||||
{{ with index .Blog.Menus "footer" }}
|
{{ with index .Blog.Menus "footer" }}
|
||||||
<p>
|
<nav>{{ range $i, $item := .Items }}{{ if ne $i 0 }} • {{ end }}<a href="{{ $item.Link }}">{{ $item.Title }}</a>{{ end }}
|
||||||
{{ range $i, $item := .Items }}
|
</nav>
|
||||||
{{ if ne $i 0 }} • {{ end }}<a href="{{ $item.Link }}">{{ $item.Title }}</a>
|
|
||||||
{{ end }}
|
|
||||||
</p>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<p translate="no">© {{ dateformat now "2006" }} {{ with .User.Name }}{{ . }}{{ else }}{{ .Blog.Title }}{{ end }}</p>
|
<p translate="no">© {{ dateformat now "2006" }} {{ with .User.Name }}{{ . }}{{ else }}{{ .Blog.Title }}{{ end }}</p>
|
||||||
{{ if .TorUsed }}
|
{{ if .TorUsed }}
|
||||||
<p>🔐 {{ string .Blog.Lang "connectedviator" }}</p>
|
<p id="tor">🔐 {{ string .Blog.Lang "connectedviator" }}</p>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ if .TorAddress }}
|
{{ if .TorAddress }}
|
||||||
<p>🔓 <a href="{{ .TorAddress }}">{{ string .Blog.Lang "connectviator" }}</a> <a href="https://www.torproject.org/" target="_blank" rel="nofollow noopener noreferrer">{{ string .Blog.Lang "whatistor" }}</a></p>
|
<p id="tor">🔓 <a href="{{ .TorAddress }}">{{ string .Blog.Lang "connectviator" }}</a> <a href="https://www.torproject.org/" target="_blank" rel="nofollow noopener noreferrer">{{ string .Blog.Lang "whatistor" }}</a></p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
{{ include "author" . }}
|
{{ include "author" . }}
|
||||||
</main>
|
</main>
|
||||||
{{ if .LoggedIn }}
|
{{ if .LoggedIn }}
|
||||||
<div class="p">
|
<div id="posteditactions" class="p">
|
||||||
<form class="in" method="post" action="{{ .Blog.RelativePath "/editor" }}#update">
|
<form class="in" method="post" action="{{ .Blog.RelativePath "/editor" }}#update">
|
||||||
<input type="hidden" name="editoraction" value="loadupdate">
|
<input type="hidden" name="editoraction" value="loadupdate">
|
||||||
<input type="hidden" name="url" value="{{ .Canonical }}">
|
<input type="hidden" name="url" value="{{ .Canonical }}">
|
||||||
|
|
Loading…
Reference in New Issue