Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix!: allow URIs without authority component #22

Merged
merged 1 commit into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions data/resume.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@ avatar: avatar.jpg
website: cjshearer.dev
links:
- svg: node_modules/@fortawesome/fontawesome-free/svgs/brands/github
link: github.com/cjshearer
protocol: https
url: https://github.com/cjshearer
- svg: node_modules/@fortawesome/fontawesome-free/svgs/brands/linkedin
link: linkedin.com/in/cjshearer
protocol: https
url: https://linkedin.com/in/cjshearer
- svg: node_modules/@fortawesome/fontawesome-free/svgs/solid/envelope
link: cjshearer@live.com
protocol: mailto
url: mailto:cjshearer@live.com
name:
first: Cody
last: Shearer
Expand Down
5 changes: 3 additions & 2 deletions layouts/partials/resume/drawer.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
<ul aria-label="social links">
{{ range . }}
<li>
<a href="{{ .protocol }}://{{ .link }}" class="text-sm">
{{ .link }}
<a href="{{ .url }}" class="text-sm">
{{ $url := .url | urls.Parse }}
{{ $url.Hostname }}{{ $url.RequestURI }}
</a>
</li>
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/resume/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<li class="aspect-square">
<a
class="group relative block h-full w-full rounded-full text-center before:absolute before:left-0 before:top-0 before:-z-10 before:h-full before:w-full before:scale-90 before:rounded-[inherit] before:transition-[transform_box-shadow] before:duration-[250ms] before:[box-shadow:inset_0_0_0_3rem_currentColor] hover:before:scale-100 hover:before:[box-shadow:inset_0_0_0_0.125rem_currentColor]"
href="{{ .protocol }}://{{ .link }}"
href="{{ .url }}"
>
<div
class="flex h-full w-full items-center justify-center text-neutral-800 group-hover:text-inherit"
Expand Down