From e6753e137d263163914edf593eabcafa1a6f8c78 Mon Sep 17 00:00:00 2001 From: Avinal Kumar Date: Tue, 28 Mar 2023 14:13:20 +0530 Subject: [PATCH] minor performance improvements Signed-off-by: Avinal Kumar --- elm-land.json | 22 +++++++++++----------- src/Components/Footer.elm | 2 +- src/Pages/Home_.elm | 2 +- src/Pages/Posts/Category_/Post_.elm | 2 +- src/Utils/Constants.elm | 10 +++++----- src/View.elm | 2 +- 6 files changed, 20 insertions(+), 20 deletions(-) diff --git a/elm-land.json b/elm-land.json index 0ddd08d..c04c8da 100644 --- a/elm-land.json +++ b/elm-land.json @@ -18,7 +18,7 @@ "head": {}, "body": {} }, - "title": "Avinal | Personal Website", + "title": "Avinal Kumar | Personal Website", "meta": [ { "charset": "UTF-8" @@ -45,7 +45,7 @@ }, { "name": "description", - "content": "Associate Software Engineer at Red Hat | Open Source Contributor" + "content": "I am a Software Engineer Associate at Red Hat, specialising in hybrid cloud engineering. I have been involved with Google's Summer of Code and Google Season of Docs programmes as a mentor and contributor to Open Source for many years. For fun, I like to play around with cutting-edge areas of computer science; at the moment, I'm learning about Elm. GNU/Linux and free/open-source software are two of my favourite things." }, { "property": "og:type", @@ -61,11 +61,11 @@ }, { "property": "og:description", - "content": "Associate Software Engineer at Red Hat | Open Source Contributor" + "content": "I am a Software Engineer Associate at Red Hat, specialising in hybrid cloud engineering. I have been involved with Google's Summer of Code and Google Season of Docs programmes as a mentor and contributor to Open Source for many years. For fun, I like to play around with cutting-edge areas of computer science; at the moment, I'm learning about Elm. GNU/Linux and free/open-source software are two of my favourite things" }, { "property": "og:image", - "content": "/images/avinal-meta.png" + "content": "https://avinal.space/images/avinal-meta.png" }, { "property": "twitter:card", @@ -81,16 +81,16 @@ }, { "property": "twitter:description", - "content": "Associate Software Engineer at Red Hat | Open Source Contributor" + "content": "I am a Software Engineer Associate at Red Hat, specialising in hybrid cloud engineering. I have been involved with Google's Summer of Code and Google Season of Docs programmes as a mentor and contributor to Open Source for many years. For fun, I like to play around with cutting-edge areas of computer science; at the moment, I'm learning about Elm. GNU/Linux and free/open-source software are two of my favourite things" }, { "property": "twitter:image", - "content": "/images/avinal-meta.png" + "content": "https://avinal.space/images/avinal-meta.png" } ], "link": [ { - "rel": "stylesheet", + "defer rel": "stylesheet", "href": "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css", "integrity": "sha512-MV7K8+y+gLIBoVD59lQIYicR65iaqukzvf/nwasF0nqhPay5w/9lJmVM2hMDcnK1OnMGCdVK+iQrJ7lzPJQd1w==", "crossorigin": "anonymous", @@ -126,14 +126,14 @@ "href": "/safari-pinned-tab.svg", "color": "#5bbad5" } + ,{ + "rel": "canonical", + "href": "https://avinal.space" + } ], "script": [ { "defer src": "https://cdn.jsdelivr.net/npm/marked/marked.min.js" - }, - { - "data-goatcounter": "https://avinal.goatcounter.com/count", - "async src": "//gc.zgo.at/count.js" } ] }, diff --git a/src/Components/Footer.elm b/src/Components/Footer.elm index 329d234..65e746a 100644 --- a/src/Components/Footer.elm +++ b/src/Components/Footer.elm @@ -28,7 +28,7 @@ footerLinksToSide = Html.div [ class "fixed bottom-0 left-0 bg-neutral-900 z-20 p-4 w-full md:flex md:items-center md:justify-between md:p-4" ] [ Html.ul [ class "flex flex-wrap items-center mt-3 text-xl sm:mt-0 text-gray-400" ] (List.map singleLink <| - { text = "Home", url = "/" } + { text = "Home", url = "https://avinal.space" } :: footerLinks ) ] diff --git a/src/Pages/Home_.elm b/src/Pages/Home_.elm index 3b49657..b3918db 100644 --- a/src/Pages/Home_.elm +++ b/src/Pages/Home_.elm @@ -60,7 +60,7 @@ type alias Model = , generating : Bool } - +cellSize : Int cellSize = 10 diff --git a/src/Pages/Posts/Category_/Post_.elm b/src/Pages/Posts/Category_/Post_.elm index 7c1e86d..d275a25 100644 --- a/src/Pages/Posts/Category_/Post_.elm +++ b/src/Pages/Posts/Category_/Post_.elm @@ -233,7 +233,7 @@ errorView error = [ class " text-gray-400" ] [ Html.a - [ href "../posts" + [ href "https://avinal.space/posts" , rel "referrer noopener" , class "underline" ] diff --git a/src/Utils/Constants.elm b/src/Utils/Constants.elm index 99eec29..26ed373 100644 --- a/src/Utils/Constants.elm +++ b/src/Utils/Constants.elm @@ -17,10 +17,10 @@ type alias IconLink = footerLinks : List Link footerLinks = - [ { text = "About", url = "/pages/about-me" } - , { text = "Blog", url = "/posts" } - , { text = "Projects", url = "/pages/projects" } - , { text = "GSoC", url = "/posts/gsoc" } + [ { text = "About", url = "https://avinal.space/pages/about-me" } + , { text = "Blog", url = "https://avinal.space/posts" } + , { text = "Projects", url = "https://avinal.space/pages/projects" } + , { text = "GSoC", url = "https://avinal.space/posts/gsoc" } ] @@ -31,7 +31,7 @@ iconLinks = , { url = "https://instagram.com/avinal.k", icon = "fa-brands fa-instagram" } , { url = "https://twitter.com/Avinal_", icon = "fa-brands fa-twitter" } , { url = "mailto:ripple@avinal.space", icon = "fa-solid fa-envelope" } - , { url = "/meet", icon = "fa-solid fa-video" } + , { url = "https://avinal.space/meet", icon = "fa-solid fa-video" } ] diff --git a/src/View.elm b/src/View.elm index bf22137..d3111f0 100644 --- a/src/View.elm +++ b/src/View.elm @@ -57,7 +57,7 @@ authenticated pages. -} none : View msg none = - { title = "Avinal | Personal Website" + { title = "Avinal Kumar | Personal Website" , body = [] }