diff options
author | Indrajith K L | 2022-10-31 19:44:23 +0530 |
---|---|---|
committer | Indrajith K L | 2022-10-31 19:44:23 +0530 |
commit | 3ae816e68c6bbe45ebd80a7b8a48c6cf337ebbdf (patch) | |
tree | 113a413407f0c5c6c8812adaa8e5472973805d39 /src/_includes/partials/head.njk | |
parent | 8ff9a0e3ef822eddb11ab0d07afeeefe5b144c2c (diff) | |
download | indrajith-dev-3ae816e68c6bbe45ebd80a7b8a48c6cf337ebbdf.tar.gz indrajith-dev-3ae816e68c6bbe45ebd80a7b8a48c6cf337ebbdf.tar.bz2 indrajith-dev-3ae816e68c6bbe45ebd80a7b8a48c6cf337ebbdf.zip |
Meta Tag Updates
* Update meta tags to support social share
Diffstat (limited to 'src/_includes/partials/head.njk')
-rw-r--r-- | src/_includes/partials/head.njk | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/_includes/partials/head.njk b/src/_includes/partials/head.njk index 97690fb..34f6c42 100644 --- a/src/_includes/partials/head.njk +++ b/src/_includes/partials/head.njk @@ -2,18 +2,31 @@ <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="generator" content="Eleventy"> +{%- if description %} +<meta name="description" content="{{description}}"> +{%- else -%} <meta name="description" content="Frontend Web Developer, Game Dev Hobbyist, Night Owl, Synthwave & Vaporwave Lover"> +{%- endif -%} <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:site" content="@indrajithKLIS"> <meta name="twitter:creator" content="@indrajithKLIS"> -<meta name="twitter:url" content="https://indrajith.dev/"> +<meta name="twitter:url" content="https://indrajith.dev{{page.url}}"> +<meta name="generator" content="Eleventy"> +{%- if description %} +<meta name="twitter:description" content="{{description}}"> +{%- else -%} <meta name="twitter:description" content="Frontend Web Developer, Game Dev Hobbyist, Night Owl, Synthwave & Vaporwave Lover"> +{%- endif -%} <meta name="twitter:image" content="https://indrajith.dev/images/me.png"> <meta property="og:type" content="website"> -<meta property="og:url" content="https://indrajith.dev/"> +<meta property="og:url" content="https://indrajith.dev{{page.url}}"> <meta property="og:locale" content="en_US"> <meta property="og:title" content="Indrajith K L"> +{%- if description %} +<meta property="og:description" content="{{description}}"> +{%- else -%} <meta property="og:description" content="Frontend Web Developer, Game Dev Hobbyist, Night Owl, Synthwave & Vaporwave Lover"> +{%- endif -%} <meta property="og:image" content="https://indrajith.dev/images/me.png"> <link rel="stylesheet" href="/global.css"> {% favicon './favicon.svg' %} |