Website source code for rms-tour.gnu.org.in
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

head.html 3.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <head>
  2. <meta charset="utf-8">
  3. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  4. <meta name="viewport" content="width=device-width, initial-scale=1">
  5. <link rel="shortcut icon" href="https://rms-tour.gnu.org.in/registration/static/favicon.ico"/>
  6. {% assign title = page.title | default: site.title | escape %}
  7. {% assign canonical = page.url | replace:'index.html','' | absolute_url %}
  8. {% assign description = page.description | default: page.excerpt | default: site.description | strip_html | normalize_whitespace | escape %}
  9. <title> {{ title }} | RMS Tour of India, 2019</title>
  10. <meta name="description" content="{{ description }}">
  11. {% if page.keywords %}
  12. {% if page.keywords.first %}
  13. {% assign keywords = page.keywords | join: ',' %}
  14. {% else %}
  15. {% assign keywords = page.keywords %}
  16. {% endif %}
  17. <meta name="keywords" content="{{ keywords }}">
  18. {% endif %}
  19. <link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
  20. <link rel="canonical" href="{{ canonical }}">
  21. {% assign feed_path = "/feed.xml" %}
  22. {% if site.feed and site.feed.path %}
  23. {% assign feed_path = site.feed.path %}
  24. {% endif %}
  25. <link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ feed_path | absolute_url }}">
  26. {% include head_custom.html %}
  27. {% if site.facebook_app_id %}
  28. <meta property="fb:admins" content="{{ site.facebook_app_id }}">
  29. <meta property="og:title" content="{{ title }}">
  30. <meta property="og:site_name" content="{{ site.title | escape }}">
  31. <meta property="og:url" content="{{ canonical }}">
  32. <meta property="og:description" content="{{ description }}">
  33. {% if site.facebook_page %}<meta property="article:author" content="{{ site.facebook_page }}">{% endif %}
  34. {% if page.facebook.image %}
  35. <meta property="og:image" content="{{ page.facebook.image }}">
  36. {% elsif site.facebook_image %}
  37. <meta property="og:image" content="{{ site.facebook_image }}">
  38. {% endif %}
  39. {% endif %}
  40. <meta name="twitter:card" content="{{ page.twitter_card.type | default: "summary" }}">
  41. {% if site.twitter_username %}<meta name="twitter:site" content="{{ site.twitter_username }}">{% endif %}
  42. <meta name="twitter:title" content="{{ title | truncate: 70 }}">
  43. <meta name="twitter:description" content="{{ description | truncate: 200 }}">
  44. {% if page.twitter_card.creator %}
  45. <meta name="twitter:creator" content="{{ page.twitter_card.creator }}">
  46. {% elsif site.twitter_username %}
  47. <meta name="twitter:creator" content="{{ site.twitter_username }}">
  48. {% endif %}
  49. {% if page.twitter_card.image %}
  50. {% if page.twitter_card.type == 'gallery' %}
  51. <meta name="twitter:image0" content="{{ page.twitter_card.image }}">
  52. <meta name="twitter:image1" content="{{ page.twitter_card.image1 }}">
  53. <meta name="twitter:image2" content="{{ page.twitter_card.image2 }}">
  54. <meta name="twitter:image3" content="{{ page.twitter_card.image3 }}">
  55. {% else %}
  56. <meta name="twitter:image:src" content="{{ page.twitter_card.image }}">
  57. {% if page.twitter_card.type == 'photo' %}
  58. {% if page.twitter_card.width %}<meta name="twitter:image:width" content="{{ page.twitter_card.width }}">{% endif %}
  59. {% if page.twitter_card.height %}<meta name="twitter:image:height" content="{{ page.twitter_card.height }}">{% endif %}
  60. {% endif %}
  61. {% endif %}
  62. {% elsif site.twitter_image %}
  63. <meta name="twitter:image:src" content="{{ site.twitter_image }}">
  64. {% endif %}
  65. {% include fonts.html %}
  66. {% include google_analytics.html %}
  67. </head>