diff options
Diffstat (limited to 'src/_includes')
-rw-r--r-- | src/_includes/partials/head.njk | 17 | ||||
-rw-r--r-- | src/_includes/posts.njk | 2 |
2 files changed, 16 insertions, 3 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' %} diff --git a/src/_includes/posts.njk b/src/_includes/posts.njk index 11d0591..00a1349 100644 --- a/src/_includes/posts.njk +++ b/src/_includes/posts.njk @@ -21,7 +21,7 @@ <div class="flex flex-col text-xs text-center"> <span>If you found this article useful, spread the word by sharing this link 👉 <span class="w-1 absolute ml-2 my-0"> - <a href="https://twitter.com/share?ref_src=twsrc%5Etfw" class="twitter-share-button" data-via="indrajithKLIS" data-hashtags="#gamedev #indiegamedev #gametools" data-show-count="false">Tweet</a> + <a href="https://twitter.com/share?ref_src=twsrc%5Etfw" class="twitter-share-button" data-via="indrajithKLIS" data-hashtags="gamedev #indiegamedev #gametools" data-show-count="false">Tweet</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> </span> </span> |