jlelse
/
Indiego
Archived
1
Fork 0

Fix post actions, mentions and list pagination

This commit is contained in:
Jan-Lukas Else 2020-05-25 16:47:10 +02:00
parent 55658ba7f4
commit 66a6f0ee97
4 changed files with 12 additions and 12 deletions

View File

@ -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 {

View File

@ -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>

View File

@ -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>&nbsp;
<a class="button invert" href="{{ .URL }}">{{ .PageNumber }}</a>&nbsp;
{{ end }}
<button class="invert" disabled>{{ .Paginator.PageNumber }}/{{ .Paginator.TotalPages }}</button>
<div class="button invert">{{ .Paginator.PageNumber }}/{{ .Paginator.TotalPages }}</div>
{{ with .Paginator.Next }}
&nbsp;<form action="{{ .URL }}"><button class="invert">{{ .PageNumber }}</button></form>
&nbsp;<a class="button invert" href="{{ .URL }}">{{ .PageNumber }}</a>
{{ end }}
</div>
</nav>
{{ end }}

View File

@ -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>&nbsp;
<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>&nbsp;
{{ end }}
{{ if and ((.Param "subscribeBtn") (.Param "subscribeLink")) }}
<form action="{{ .Param "subscribeLink" }}"><button class="invert" type="submit">{{ T "subscribe" }}</button></form>&nbsp;
<a href="{{ .Param "subscribeLink" }}" class="button invert">{{ T "subscribe" }}</a>&nbsp;
{{ end }}
{{ if (.Param "speak") }}
<button id="speakBtn" class="invert" style="display: none;"></button>