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