reorganise share files
parent
fd9afa2f7a
commit
fc4fd0f520
|
@ -1,5 +1,5 @@
|
||||||
{{ "<!-- SHARE COLUMN -->" | safeHTML }}
|
{{ "<!-- SHARE COLUMN -->" | safeHTML }}
|
||||||
{{ $data := index .Site.Data .Site.Language.Lang }}
|
{{ $data := index .Site.Data.share .Site.Language.Lang }}
|
||||||
<div class="sharecolumn">
|
<div class="sharecolumn">
|
||||||
|
|
||||||
<form action="/share" method="GET" class="share-buttons side" target="_blank">
|
<form action="/share" method="GET" class="share-buttons side" target="_blank">
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
<input id="sharetitle-side" name="title" value="{{ .Site.Params.spread.defaultSocialText }}" type="hidden" />
|
<input id="sharetitle-side" name="title" value="{{ .Site.Params.spread.defaultSocialText }}" type="hidden" />
|
||||||
<input class="n" name="website" placeholder="Please do not put anything here" />
|
<input class="n" name="website" placeholder="Please do not put anything here" />
|
||||||
|
|
||||||
{{ range $data.share }}
|
{{ range $data }}
|
||||||
{{ if eq .userinput true }}
|
{{ if eq .userinput true }}
|
||||||
<label class="button share-{{ .id }}" title="{{ .titleBefore}} {{ .name }} {{ .titleAfter }}" for="{{ .id }}-share-side"> </label>
|
<label class="button share-{{ .id }}" title="{{ .titleBefore}} {{ .name }} {{ .titleAfter }}" for="{{ .id }}-share-side"> </label>
|
||||||
<input name="popup" id="{{ .id }}-share-side" type="radio" />
|
<input name="popup" id="{{ .id }}-share-side" type="radio" />
|
||||||
|
@ -19,9 +19,6 @@
|
||||||
<button type="submit" name="service" value="{{ .id }}" onclick="return changeTitleSide('{{if isset . "customText"}}{{.customText}}{{else}}{{$.Site.Params.spread.defaultSocialText}}{{end}}')">OK</button>
|
<button type="submit" name="service" value="{{ .id }}" onclick="return changeTitleSide('{{if isset . "customText"}}{{.customText}}{{else}}{{$.Site.Params.spread.defaultSocialText}}{{end}}')">OK</button>
|
||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ range $data.share }}
|
|
||||||
{{ if ne .userinput true }}
|
{{ if ne .userinput true }}
|
||||||
<button type="submit" name="service" value="{{ .id }}" class="button share-{{ .id }}" title="{{ .titleBefore}} {{ .name }} {{ .titleAfter }}" onclick="return changeTitleSide('{{if isset . "customText"}}{{.customText}}{{else}}{{$.Site.Params.spread.defaultSocialText}}{{end}}')"> </button>
|
<button type="submit" name="service" value="{{ .id }}" class="button share-{{ .id }}" title="{{ .titleBefore}} {{ .name }} {{ .titleAfter }}" onclick="return changeTitleSide('{{if isset . "customText"}}{{.customText}}{{else}}{{$.Site.Params.spread.defaultSocialText}}{{end}}')"> </button>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{ "<!-- SPREAD -->" | safeHTML }}
|
{{ "<!-- SPREAD -->" | safeHTML }}
|
||||||
{{ $data := index .Site.Data .Site.Language.Lang }}
|
{{ $data := index .Site.Data.share .Site.Language.Lang }}
|
||||||
<section id="spread" class="bg-dark">
|
<section id="spread" class="bg-dark">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
<input id="sharetitle-spread" name="title" value="{{ .Site.Params.spread.defaultSocialText }}" type="hidden" />
|
<input id="sharetitle-spread" name="title" value="{{ .Site.Params.spread.defaultSocialText }}" type="hidden" />
|
||||||
<input class="n" name="website" placeholder="Please do not put anything here" />
|
<input class="n" name="website" placeholder="Please do not put anything here" />
|
||||||
|
|
||||||
{{ range $data.share }}
|
{{ range $data }}
|
||||||
{{ if eq .userinput true }}
|
{{ if eq .userinput true }}
|
||||||
<label class="button share-{{ .id }}" title="{{ .titleBefore}} {{ .name }} {{ .titleAfter }}" for="{{ .id }}-share-spread">{{ .name }}</label>
|
<label class="button share-{{ .id }}" title="{{ .titleBefore}} {{ .name }} {{ .titleAfter }}" for="{{ .id }}-share-spread">{{ .name }}</label>
|
||||||
<input name="popup" id="{{ .id }}-share-spread" type="radio" />
|
<input name="popup" id="{{ .id }}-share-spread" type="radio" />
|
||||||
|
@ -36,13 +36,11 @@
|
||||||
<button type="submit" name="service" value="{{ .id }}" onclick="return changeTitle('{{if isset . "customText"}}{{.customText}}{{else}}{{$.Site.Params.spread.defaultSocialText}}{{end}}')">OK</button>
|
<button type="submit" name="service" value="{{ .id }}" onclick="return changeTitle('{{if isset . "customText"}}{{.customText}}{{else}}{{$.Site.Params.spread.defaultSocialText}}{{end}}')">OK</button>
|
||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ range $data.share }}
|
|
||||||
{{ if ne .userinput true }}
|
{{ if ne .userinput true }}
|
||||||
<button type="submit" name="service" value="{{ .id }}" class="button share-{{ .id }}" title="{{ .titleBefore}} {{ .name }} {{ .titleAfter }}" onclick="return changeTitle('{{if isset . "customText"}}{{.customText}}{{else}}{{$.Site.Params.spread.defaultSocialText}}{{end}}')">{{ .name }}</button>
|
<button type="submit" name="service" value="{{ .id }}" class="button share-{{ .id }}" title="{{ .titleBefore}} {{ .name }} {{ .titleAfter }}" onclick="return changeTitle('{{if isset . "customText"}}{{.customText}}{{else}}{{$.Site.Params.spread.defaultSocialText}}{{end}}')">{{ .name }}</button>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue