Fix post actions, mentions and list pagination
This commit is contained in:
parent
55658ba7f4
commit
66a6f0ee97
|
@ -69,13 +69,15 @@ img {
|
|||
width: 100%;
|
||||
}
|
||||
|
||||
input, button {
|
||||
input, button, .button {
|
||||
@include color-border(border, 1px, solid, primary);
|
||||
@include color(background, background);
|
||||
@include color(color, primary);
|
||||
padding: 5px 10px;
|
||||
border-radius: 0;
|
||||
box-sizing: border-box;
|
||||
text-decoration: none;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
|
|
|
@ -14,10 +14,8 @@
|
|||
</ul>
|
||||
{{ end }}
|
||||
<form method="post" action="{{ .Param "indieweb.endpoints.webmention" }}">
|
||||
<label>
|
||||
{{ T "wmform_label" }}
|
||||
<input class="full-width" type="url" name="source" placeholder="URL" style="margin-bottom: 5px;">
|
||||
</label>
|
||||
<label for="wm-source" class="fake-p">{{ T "wmform_label" }}</label>
|
||||
<input id="wm-source" class="full-width" type="url" name="source" placeholder="URL" style="margin-bottom: 5px;">
|
||||
<input type="hidden" name="target" value="{{ .Permalink }}">
|
||||
<input class="full-width" type="submit" value="{{ T "wmform_btn" }}" style="margin-bottom: 5px;">
|
||||
</form>
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
|
||||
<div class="fake-p flex">
|
||||
<nav class="fake-p flex">
|
||||
{{ with .Paginator.Prev }}
|
||||
<form action="{{ .URL }}"><button class="invert">{{ .PageNumber }}</button></form>
|
||||
<a class="button invert" href="{{ .URL }}">{{ .PageNumber }}</a>
|
||||
{{ end }}
|
||||
<button class="invert" disabled>{{ .Paginator.PageNumber }}/{{ .Paginator.TotalPages }}</button>
|
||||
<div class="button invert">{{ .Paginator.PageNumber }}/{{ .Paginator.TotalPages }}</div>
|
||||
{{ with .Paginator.Next }}
|
||||
<form action="{{ .URL }}"><button class="invert">{{ .PageNumber }}</button></form>
|
||||
<a class="button invert" href="{{ .URL }}">{{ .PageNumber }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</nav>
|
||||
{{ end }}
|
|
@ -1,10 +1,10 @@
|
|||
{{ if or (.Param "shareLink") (and ((.Param "subscribeBtn") (.Param "subscribeLink"))) (.Param "speak") }}
|
||||
<div class="fake-p flex">
|
||||
{{ if (.Param "shareLink") }}
|
||||
<form action="https://www.addtoany.com/share#url={{ .Permalink }}{{ with .Title }}&title={{ . }}{{ end }}" target="_blank" rel="nofollow noopener noreferrer"><button class="invert" type="submit">{{ T "share" }}</button></form>
|
||||
<a href="https://www.addtoany.com/share#url={{ .Permalink }}{{ with .Title }}&title={{ . }}{{ end }}" target="_blank" rel="nofollow noopener noreferrer" class="button invert">{{ T "share" }}</a>
|
||||
{{ end }}
|
||||
{{ if and ((.Param "subscribeBtn") (.Param "subscribeLink")) }}
|
||||
<form action="{{ .Param "subscribeLink" }}"><button class="invert" type="submit">{{ T "subscribe" }}</button></form>
|
||||
<a href="{{ .Param "subscribeLink" }}" class="button invert">{{ T "subscribe" }}</a>
|
||||
{{ end }}
|
||||
{{ if (.Param "speak") }}
|
||||
<button id="speakBtn" class="invert" style="display: none;"></button>
|
||||
|
|
Reference in New Issue