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 | |
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')
-rw-r--r-- | src/_includes/partials/head.njk | 17 | ||||
-rw-r--r-- | src/_includes/posts.njk | 2 | ||||
-rw-r--r-- | src/posts/big-list-game-dev.njk | 1 |
3 files changed, 17 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> diff --git a/src/posts/big-list-game-dev.njk b/src/posts/big-list-game-dev.njk index d8523f8..4f70620 100644 --- a/src/posts/big-list-game-dev.njk +++ b/src/posts/big-list-game-dev.njk @@ -1,6 +1,7 @@ --- layout: posts.njk title: Big List of Open Source Game Development Tools +description: Big List of Open Source Game Development Tools --- <p class="article-intro indent-8"> |