Przeglądaj źródła

Add: templates: twitter-card (#732)

Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
Reo Uehara 2 lat temu
rodzic
commit
b498330793
2 zmienionych plików z 3 dodań i 1 usunięć
  1. 1 1
      layouts/_default/baseof.html
  2. 2 0
      layouts/partials/opengraph.html

+ 1 - 1
layouts/_default/baseof.html

@@ -5,7 +5,7 @@
     <!------ ADD COMMON HEADERS -------->
     {{- partial "header.html" . -}}
     {{ template "_internal/opengraph.html" . }}
-
+    {{ template "_internal/twitter_cards.html" . }}
     <!------ ADD PAGE SPECIFIC HEADERS ------->
     {{ block "header" . }} {{ end }}
 

+ 2 - 0
layouts/partials/opengraph.html

@@ -10,3 +10,5 @@
 <meta property="og:description" content="{{ $description }}"/>
 <meta property="og:image" content="{{ $image | relURL }}">
 <meta property="og:url" content="{{ $url }}">
+
+{{ template "_internal/twitter_cards.html" . }}