Improve print CSS

This commit is contained in:
Jan-Lukas Else 2021-06-24 19:09:59 +02:00
parent 6bc70f0a0e
commit 95a7ff134c
4 changed files with 28 additions and 10 deletions

View File

@ -245,7 +245,18 @@ footer {
nav,
#post-actions,
#related,
#interactions {
#interactions,
#posteditactions,
#tor {
display: none;
}
a {
text-decoration: none;
}
// Show link
.e-content a[href]:after {
content: " [" attr(href) "]";
}
}

View File

@ -211,7 +211,17 @@ footer * {
nav,
#post-actions,
#related,
#interactions {
#interactions,
#posteditactions,
#tor {
display: none;
}
a {
text-decoration: none;
}
.e-content a[href]:after {
content: " [" attr(href) "]";
}
}

View File

@ -1,18 +1,15 @@
{{ define "footer" }}
<footer>
{{ with index .Blog.Menus "footer" }}
<p>
{{ range $i, $item := .Items }}
{{ if ne $i 0 }} &bull; {{ end }}<a href="{{ $item.Link }}">{{ $item.Title }}</a>
{{ end }}
</p>
<nav>{{ range $i, $item := .Items }}{{ if ne $i 0 }} &bull; {{ end }}<a href="{{ $item.Link }}">{{ $item.Title }}</a>{{ end }}
</nav>
{{ end }}
<p translate="no">&copy; {{ dateformat now "2006" }} {{ with .User.Name }}{{ . }}{{ else }}{{ .Blog.Title }}{{ end }}</p>
{{ if .TorUsed }}
<p>🔐 {{ string .Blog.Lang "connectedviator" }}</p>
<p id="tor">🔐 {{ string .Blog.Lang "connectedviator" }}</p>
{{ else }}
{{ 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 }}
</footer>

View File

@ -28,7 +28,7 @@
{{ include "author" . }}
</main>
{{ if .LoggedIn }}
<div class="p">
<div id="posteditactions" class="p">
<form class="in" method="post" action="{{ .Blog.RelativePath "/editor" }}#update">
<input type="hidden" name="editoraction" value="loadupdate">
<input type="hidden" name="url" value="{{ .Canonical }}">