Add citation and share buttons to various layouts

This commit is contained in:
Fundor333
2026-01-12 01:04:36 +01:00
parent 7ba96ff849
commit 45f0f20b1a
6 changed files with 185 additions and 180 deletions

View File

@@ -47,6 +47,7 @@
{{ partial "series.html" . }} {{ partial "series.html" . }}
{{ partial "share-buttons" . }} {{ partial "share-buttons" . }}
{{ partial "cite" . }}
{{- partial "syndication.html" . -}} {{- partial "syndication.html" . -}}
{{- partial "comments.html" . -}} {{- partial "comments.html" . -}}
</article> </article>

View File

@@ -29,7 +29,8 @@
{{- partial "bridgy.html" . -}} {{- partial "bridgy.html" . -}}
{{ .Content }} {{ .Content }}
</div> </div>
{{ partial "share-buttons" . }}
{{ partial "cite" . }}
{{ partial "series.html" . }} {{ partial "series.html" . }}
{{- partial "syndication.html" . -}} {{- partial "syndication.html" . -}}
</article> </article>

View File

@@ -13,6 +13,8 @@
<div class="page-content e-content typewriter"> <div class="page-content e-content typewriter">
{{ .Content }} {{ .Content }}
</div> </div>
{{ partial "share-buttons" . }}
{{ partial "cite" . }}
{{- partial "syndication.html" . -}} {{- partial "syndication.html" . -}}
{{- partial "comments.html" . -}} {{- partial "comments.html" . -}}
</article> </article>

View File

@@ -5,8 +5,7 @@
<p> <p>
<a href="https://fundor333.com/cite">Learn more</a> <a href="https://fundor333.com/cite">Learn more</a>
</p> </p>
<label>URL for this post: <input disabled style="cursor: text;" type="text" value="{{ .Page.Permalink }}" id="citeInput"> <label>URL for this post: <input onclick="myFunction()" disabled style="cursor: text;" type="text" value="{{ .Page.Permalink }}" id="citeInput">
<button onclick="myFunction()">Copy text</button>
</label> </label>
</details> </details>

View File

@@ -31,7 +31,7 @@
<div class="flex flex-col items-stretch"> <div class="flex flex-col items-stretch">
<figure class="figure hmedia"> <figure class="figure hmedia">
<img loading="lazy" class="u-photo rounded-lg figure-img img-fluid" src="{{ $image.Permalink }}"alt="{{ $.Description }}"> <img loading="lazy" class="u-photo rounded-lg figure-img img-fluid" src="{{ $image.Permalink }}" alt="{{ $.Description }}">
{{if .Params.feature_link}} {{if .Params.feature_link}}
<figcaption class="figure-caption">{{ $.Description }}</figcaption> <figcaption class="figure-caption">{{ $.Description }}</figcaption>
</figure> </figure>
@@ -151,14 +151,14 @@
{{- .Content }} {{- .Content }}
</div> </div>
</div> </div>
</article> </article>
{{ partial "share-buttons" . }}
{{ partial "cite" . }}
{{ partial "series.html" . }} {{ partial "series.html" . }}
{{- partial "syndication.html" . -}} {{- partial "syndication.html" . -}}
{{- partial "comments.html" . -}} {{- partial "comments.html" . -}}
</main> </main>
</div> </div>
{{ end }} {{ end }}

View File

@@ -27,6 +27,8 @@
<div class="page-content e-content weeknote"> <div class="page-content e-content weeknote">
{{ .Content }} {{ .Content }}
</div> </div>
{{ partial "share-buttons" . }}
{{ partial "cite" . }}
{{- partial "syndication.html" . -}} {{- partial "syndication.html" . -}}
{{- partial "comments.html" . -}} {{- partial "comments.html" . -}}
</article> </article>