mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-09 18:06:07 +01:00
Remove absolute permalinks fix accidental hashtags
This commit is contained in:
parent
29812d7abc
commit
56c32623fa
17 changed files with 27 additions and 27 deletions
|
@ -802,7 +802,7 @@ body.nownownow .post-content > p {
|
|||
line-height: inherit;
|
||||
}
|
||||
|
||||
a[href^="/tags/"] {
|
||||
a[href^="/tags/"]:not([href*="#"]):not(.nothashtag) {
|
||||
white-space: nowrap;
|
||||
&:before {
|
||||
content: '#';
|
||||
|
|
|
@ -3,6 +3,6 @@ title: "Facebook"
|
|||
date: 2024-04-05T16:09:46+01:00
|
||||
---
|
||||
|
||||
I've taken a few spare moments to start importing my [Facebook posts](/tags/from-facebook) here. (There's some [code](https://github.com/by-jp/www.byjp.me/tree/main/tools/archive/facebook) I've been using for this; if you find you'd like to do the same, let me know and I'll polish it up!)
|
||||
I've taken a few spare moments to start importing my [Facebook posts](/tags/from-facebook#) here. (There's some [code](https://github.com/by-jp/www.byjp.me/tree/main/tools/archive/facebook) I've been using for this; if you find you'd like to do the same, let me know and I'll polish it up!)
|
||||
|
||||
There are _a lot_ of Facebook posts in my export; many of them are trash, or so link-rotted I'm avoiding importing them here, but I'm utterly fascinated by what the world of the early internet was for me. Also, somehow, I was _even more_ excitable 😅
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<hgroup class="post-title">
|
||||
<h1 class="p-name">
|
||||
{{ with .Params.emoji }}<span data-emoji="{{.}}"></span>{{end}}
|
||||
<a href="{{ .Permalink }}" class="noaccent u-url">{{ title (replace .Title "-" " ") }}</a>
|
||||
<a href="{{ .RelPermalink }}" class="noaccent u-url">{{ title (replace .Title "-" " ") }}</a>
|
||||
</h1>
|
||||
{{ partial "alternates.html" . }}
|
||||
</hgroup>
|
||||
|
@ -23,7 +23,7 @@
|
|||
<ul class="posts-list">
|
||||
{{ range .Pages }}
|
||||
<li class="post-item">
|
||||
<a href="{{.Permalink}}">
|
||||
<a href="{{.RelPermalink}}" class="nothashtag">
|
||||
{{ if .Params.emoji }}<span class="post-emoji">{{ .Params.emoji }}</span>{{ end }}
|
||||
<span class="post-title">{{ partial "fallbacktitle.txt" . }}</span>
|
||||
<span class="post-day">
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
<hgroup class="post-title">
|
||||
<h1 class="p-name">
|
||||
{{ with .Params.emoji }}<span data-emoji="{{.}}"></span>{{end}}
|
||||
<a href="{{ .Permalink }}" class="noaccent u-url">{{ .Title | markdownify }}</a>
|
||||
<a href="{{ .RelPermalink }}" class="noaccent u-url">{{ .Title | markdownify }}</a>
|
||||
</h1>
|
||||
{{ with .Params.Subtitle }}
|
||||
<h2 class="post-subtitle">{{ . | markdownify }}</h2>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<hgroup class="post-title">
|
||||
<h1 class="p-name">
|
||||
{{ with .Params.emoji }}<span data-emoji="{{.}}"></span>{{end}}
|
||||
<a href="{{ .Permalink }}" class="noaccent u-url">{{ title (replace .Title "-" " ") }}</a>
|
||||
<a href="{{ .RelPermalink }}" class="noaccent u-url">{{ title (replace .Title "-" " ") }}</a>
|
||||
</h1>
|
||||
{{ partial "alternates.html" . }}
|
||||
</hgroup>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<hgroup class="post-title">
|
||||
<h1 class="p-name">
|
||||
{{ with .Params.emoji }}<span data-emoji="{{.}}"></span>{{end}}
|
||||
<a href="{{ .Permalink }}" class="noaccent">{{ .Title | markdownify }}</a>
|
||||
<a href="{{ .RelPermalink }}" class="noaccent">{{ .Title | markdownify }}</a>
|
||||
</h1>
|
||||
</hgroup>
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<hgroup class="post-title">
|
||||
<h1 class="p-name">
|
||||
{{ with .Params.emoji }}<span data-emoji="{{.}}"></span>{{end}}
|
||||
<a href="{{ .Permalink }}" class="noaccent u-url">{{ title (replace .Title "-" " ") }}</a>
|
||||
<a href="{{ .RelPermalink }}" class="noaccent u-url">{{ title (replace .Title "-" " ") }}</a>
|
||||
</h1>
|
||||
</hgroup>
|
||||
|
||||
|
@ -31,7 +31,7 @@
|
|||
<div class="posts-group">
|
||||
<ul class="posts-list">
|
||||
<li class="post-item">
|
||||
<a href="{{.Permalink}}">
|
||||
<a href="{{.RelPermalink}}">
|
||||
{{ if .Params.emoji }}<span class="post-emoji">{{ .Params.emoji }}</span>{{ end }}
|
||||
<span class="post-title em">{{.Title}}</span>
|
||||
</a>
|
||||
|
@ -39,7 +39,7 @@
|
|||
{{ range .Pages }}
|
||||
{{ $tags = union $tags .Params.tags }}
|
||||
<li class="post-item">
|
||||
<a href="{{.Permalink}}">
|
||||
<a href="{{.RelPermalink}}">
|
||||
<span class="post-title">{{.Title}}</span>
|
||||
</a>
|
||||
</li>
|
||||
|
@ -56,7 +56,7 @@
|
|||
{{ $tags = union $tags .Params.tags }}
|
||||
|
||||
<li class="post-item">
|
||||
<a href="{{.Permalink}}">
|
||||
<a href="{{.RelPermalink}}">
|
||||
<span class="post-title">{{.Title}}</span>
|
||||
</a>
|
||||
</li>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<hgroup class="post-title">
|
||||
<h1 class="p-name">
|
||||
{{ with .Params.emoji }}<span data-emoji="{{.}}"></span>{{end}}
|
||||
<a href="{{ .Permalink }}" class="noaccent u-url">{{ .Title | markdownify }}</a>
|
||||
<a href="{{ .RelPermalink }}" class="noaccent u-url">{{ .Title | markdownify }}</a>
|
||||
</h1>
|
||||
</hgroup>
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<hgroup class="post-title">
|
||||
<h1 class="p-name">
|
||||
{{ with .Params.emoji }}<span data-emoji="{{.}}"></span>{{end}}
|
||||
<a href="{{ .Permalink }}" class="noaccent u-url">{{ title (replace .Title "-" " ") }}</a>
|
||||
<a href="{{ .RelPermalink }}" class="noaccent u-url">{{ title (replace .Title "-" " ") }}</a>
|
||||
</h1>
|
||||
{{ partial "alternates.html" . }}
|
||||
</hgroup>
|
||||
|
@ -24,7 +24,7 @@
|
|||
<article class="post-content e-content">
|
||||
{{ .Content }}
|
||||
<footer>
|
||||
<a href="{{.Permalink}}">{{ partial "year-relative-date.html" .Date }}</a>
|
||||
<a href="{{.RelPermalink}}">{{ partial "year-relative-date.html" .Date }}</a>
|
||||
{{ if collections.In .Params.tags "from-twitter" }}{{ partial "svg.html" (dict "name" "twitter") }}{{ end }}
|
||||
</footer>
|
||||
</article>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<ul class="feedlinks">
|
||||
{{ range $page.OutputFormats }}
|
||||
{{ if ne .Rel "alternate" }}{{ continue }}{{ end }}
|
||||
{{ $link := ($page.OutputFormats.Get .Name).Permalink }}
|
||||
{{ $link := ($page.OutputFormats.Get .Name).RelPermalink }}
|
||||
<li><a href="{{ $link | safeURL }}" title="{{ partial "alternatename.txt" .Name }}">{{ partial "svg.html" (dict "name" .Name) }} {{ partial "alternatename.txt" .Name }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<div class="pagination__buttons">
|
||||
{{ if .Paginator.HasPrev }}
|
||||
<span class="button previous">
|
||||
<a href="{{ .Paginator.Prev.URL }}">
|
||||
<a href="{{ .Paginator.Prev.URL }}" class="nothashtag">
|
||||
<span class="button__icon">←</span>
|
||||
<span class="button__text">Newer posts</span>
|
||||
</a>
|
||||
|
@ -10,7 +10,7 @@
|
|||
{{ end }}
|
||||
{{ if .Paginator.HasNext }}
|
||||
<span class="button next">
|
||||
<a href="{{ .Paginator.Next.URL }}">
|
||||
<a href="{{ .Paginator.Next.URL }}" class="nothashtag">
|
||||
<span class="button__text">Older posts</span>
|
||||
<span class="button__icon">→</span>
|
||||
</a>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<div class="pagination__buttons">
|
||||
{{ if .NextInSection }}
|
||||
<span class="button previous">
|
||||
<a href="{{ .NextInSection.Permalink }}">
|
||||
<a href="{{ .NextInSection.RelPermalink }}" class="nothashtag">
|
||||
<span class="button__icon">←</span>
|
||||
<span class="button__text">{{ .NextInSection.Title | default (.NextInSection.Date.Format .Site.Params.dateform) }}</span>
|
||||
</a>
|
||||
|
@ -19,7 +19,7 @@
|
|||
|
||||
{{ if .PrevInSection }}
|
||||
<span class="button next">
|
||||
<a href="{{ .PrevInSection.Permalink }}">
|
||||
<a href="{{ .PrevInSection.RelPermalink }}" class="nothashtag">
|
||||
<span class="button__text">{{ .PrevInSection.Title | default (.PrevInSection.Date.Format .Site.Params.dateform)}}</span>
|
||||
<span class="button__icon">→</span>
|
||||
</a>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
{{- $typeSVG := index .Site.Params.defaultSVG ( partial "kebab.txt" $postType) -}}
|
||||
<li>
|
||||
{{ partial "svg.html" (dict "name" $typeSVG) }}
|
||||
<a href="{{.Permalink}}">
|
||||
<a href="{{.RelPermalink}}">
|
||||
{{- with .Title -}}{{ . }}{{ else }}{{ .Type | singularize | title }}{{ end -}}
|
||||
</a>
|
||||
<div class="summary">
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<hgroup class="post-title">
|
||||
<h1>
|
||||
{{ with .Params.emoji }}<span data-emoji="{{.}}"></span>{{end}}
|
||||
<a href="{{ .Permalink }}" class="noaccent u-url">{{ title (replace .Title "-" " ") }}</a>
|
||||
<a href="{{ .RelPermalink }}" class="noaccent u-url">{{ title (replace .Title "-" " ") }}</a>
|
||||
</h1>
|
||||
</hgroup>
|
||||
|
||||
|
@ -22,9 +22,9 @@
|
|||
<ul class="posts-list">
|
||||
{{- range .Pages -}}
|
||||
<li class="post-item">{{- "" -}}
|
||||
<a href="{{.Permalink}}">
|
||||
<a href="{{.RelPermalink}}">
|
||||
{{- $firstMedia := index .Params.Media 0 -}}
|
||||
<img src="{{.Permalink}}{{ $firstMedia.url }}{{if hasSuffix $firstMedia.url ".mp4"}}.jpg{{ end }}" {{ with $firstMedia.alt }}alt="{{ . }}"{{ end }} />{{- "" -}}
|
||||
<img src="{{.RelPermalink}}{{ $firstMedia.url }}{{if hasSuffix $firstMedia.url ".mp4"}}.jpg{{ end }}" {{ with $firstMedia.alt }}alt="{{ . }}"{{ end }} />{{- "" -}}
|
||||
</a>{{- "" -}}
|
||||
</li>
|
||||
{{- end -}}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<main class="post poetry">
|
||||
|
||||
<article class="poem-{{ .Params.align }}">
|
||||
<h2 class="post-title"{{ with .Params.emoji }} data-emoji="{{.}}"{{end}}><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h2>
|
||||
<h2 class="post-title"{{ with .Params.emoji }} data-emoji="{{.}}"{{end}}><a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a></h2>
|
||||
|
||||
{{ with .Summary }}
|
||||
<div class="post-summary p-summary" aria-hidden="true">{{ . }}</div>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<hgroup class="post-title">
|
||||
<h1 class="p-name">
|
||||
{{ with .Params.emoji }}<span data-emoji="{{.}}"></span>{{end}}
|
||||
<a href="{{ .Permalink }}" class="noaccent u-url">{{ title (replace .Title "-" " ") }}</a>
|
||||
<a href="{{ .RelPermalink }}" class="noaccent u-url">{{ title (replace .Title "-" " ") }}</a>
|
||||
</h1>
|
||||
{{ partial "alternates.html" . }}
|
||||
</hgroup>
|
||||
|
@ -18,7 +18,7 @@
|
|||
<ul class="posts-list">
|
||||
{{ range .Pages.ByDate }}
|
||||
<li class="post-item">
|
||||
<a href="{{.Permalink}}">
|
||||
<a href="{{.RelPermalink}}">
|
||||
{{ if .Params.emoji }}<span class="post-emoji">{{ .Params.emoji }}</span>{{ end }}
|
||||
<span class="post-title">{{ if .Title }}{{.Title}}{{ else }}<i>Untitled {{ .Type | singularize -}}</i>{{ end }}</span>
|
||||
<span class="post-day">
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<hgroup class="post-title">
|
||||
<h1 class="p-name">
|
||||
{{ with .Params.emoji }}<span data-emoji="{{.}}"></span>{{end}}
|
||||
<a href="{{ .Permalink }}" class="noaccent u-url">{{ .Title | markdownify }}</a>
|
||||
<a href="{{ .RelPermalink }}" class="noaccent u-url">{{ .Title | markdownify }}</a>
|
||||
</h1>
|
||||
<ul class="feedlinks">
|
||||
<li><a href="{{.Params.feed.rss}}" target="_blank" rel="noopener">{{ partial "svg.html" (dict "name" "rss") }}Feed</a></li>
|
||||
|
|
Loading…
Reference in a new issue