forked from nhsconnect/gpconnect
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for configuring the twitter support via the _config.yml…
… file.
- Loading branch information
1 parent
42a7abe
commit 639e299
Showing
6 changed files
with
18 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
{% if site.twitter %} | ||
<meta name="twitter:card" content="summary"> | ||
<meta name="twitter:site" content="@nhsconnectapi"> | ||
<meta name="twitter:creator" content="@nhsconnectapi"> | ||
<meta name="twitter:site" content="@{{site.twitter_username}}"> | ||
<meta name="twitter:creator" content="@{{site.twitter_username}}"> | ||
{% if page.title %}<meta name="twitter:title" content="{{ page.title }}"> | ||
{% else %}<meta name="twitter:title" content="{{ site.title }}"> | ||
{% endif %}{% if page.url %}<meta name="twitter:url" content="{{ site.url }}{{ page.url }}"> | ||
{% endif %}{% if page.description %}<meta name="twitter:description" content="{{ page.summary }}"> | ||
{% else %}<meta name="twitter:description" content="{{ site.description }}"> | ||
{% endif %}{% if page.thumbnail %}<meta name="twitter:image:src" content="{{ site.url }}/images/{{ page.thumbnail }}"> | ||
{% else %}<meta name="twitter:image:src" content="{{ site.url }}/images/logo.png">{% endif %} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
<a href="https://twitter.com/nhsconnectapi" class="twitter-follow-button" data-size="large" data-show-count="false">Follow @nhsconnectapi</a><script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> | ||
{% if site.twitter %} | ||
<p>Follow us on Twitter for all the latest news and announcements:</p> | ||
<a href="https://twitter.com/{{site.twitter_username}}" class="twitter-follow-button" data-size="large" data-show-count="false">Follow @{{site.twitter_username}}</a><script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
<a href="http://twitter.com/share?url={{page.url}}&text={{page.title}}&via=nhsconnectapi&hashtags=GPConnect" class="twitter-share-button" data-size="large" data-show-count="true">Tweet Me</a><script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> | ||
{% if site.twitter %} | ||
<a href="http://twitter.com/share?url={{page.url}}&text={{page.title}}&via={{site.twitter_username}}&hashtags={{site.twitter_site_hashtags}}" class="twitter-share-button" data-size="large" data-show-count="true">Tweet Me</a><script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
<a class="twitter-timeline" data-height="600" href="https://twitter.com/nhsconnectapi">Tweets by @nhsconnectapi</a> <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> | ||
{% if site.twitter %} | ||
<a class="twitter-timeline" data-height="600" href="https://twitter.com/{{site.twitter_username}}">Tweets by @{{site.twitter_username}}</a> <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters