mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-09 05:36:07 +01:00
Fix broken link, allow archiveReferences, remove zero claps
This commit is contained in:
parent
466b634d57
commit
63c111976d
3 changed files with 15 additions and 1 deletions
|
@ -54,6 +54,10 @@ const performClap = (e) => {
|
|||
const clapKey = (action) => `clap:${(new URL(action)).pathname}`;
|
||||
|
||||
const setClapCount = (btn, clapCount) => {
|
||||
if (clapCount === 0) {
|
||||
return
|
||||
}
|
||||
|
||||
const count = clapCountEl(btn);
|
||||
if (count) {
|
||||
count.textContent = Math.max(count.textContent, clapCount)
|
||||
|
|
|
@ -1,7 +1,16 @@
|
|||
---
|
||||
date: "2010-06-03T23:35:28Z"
|
||||
type: repost
|
||||
tags:
|
||||
- imported
|
||||
- from-twitter
|
||||
repostOf: https://www.seoptimise.com/blog/2010/06/interviews-with-facebook-users.html
|
||||
references:
|
||||
- url: https://www.seoptimise.com/blog/2010/06/interviews-with-facebook-users.html
|
||||
archiveURL: https://web.archive.org/web/20100607030612/http://www.seoptimise.com/blog/2010/06/interviews-with-facebook-users.html
|
||||
name: Interviews with UK's First Facebook Users
|
||||
author: Richard Fergie
|
||||
type: article
|
||||
date: 2010-06-03
|
||||
---
|
||||
.@richardfergie interviews me & peers on being a facebook early adopter - I am a massive nerd :P [http://www.seoptimise.com/blog/2010/06/interviews-with-facebook-users.html](http://www.seoptimise.com/blog/2010/06/interviews-with-facebook-users.html)
|
||||
{{< friend "Richard Fergie" >}} interviews me & peers on being a facebook early adopter - I am a massive nerd :P
|
||||
|
|
|
@ -18,4 +18,5 @@
|
|||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- $ref := partial "reference.obj" (dict "url" $url "references" .references) -}}
|
||||
{{- $url = $ref.archiveURL | default $url }}
|
||||
<a href="{{ $url | safeURL }}"{{ with .Class }} class="{{ . }}"{{ end }}{{ with $title }} title="{{ . }}"{{ end }}{{ if $isExternal }} target="_blank"{{ end }}{{ with $ref.rel }} rel="{{ . }}"{{ end }}>{{ $text | safeHTML }}</a>
|
Loading…
Reference in a new issue