-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add news article template and Postman API docs
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{% load wagtailimages_tags wagtailcore_tags static %} | ||
|
||
{% image page.promote_image original as promote_image %} | ||
|
||
<html> | ||
<head> | ||
|
||
<title>{{ page.title }}</title> | ||
<meta name="description" content="{{ page.search_description }}"> | ||
<link rel="canonical" href="{{page.get_full_url}}" /> | ||
<meta http-equiv="refresh"> | ||
|
||
<meta property="og:url" content="{{page.get_full_url}}" /> | ||
<meta property="og:type" content="article" /> | ||
<meta property="og:title" content="{{ page.title }}" /> | ||
<meta property="og:description" content="{{ page.search_description }}" /> | ||
<meta property="og:image" content="{{ promote_image.url }}" /> | ||
<meta property="og:image:alt" content="OpenStax: {{ page.title }}" /> | ||
|
||
<meta name="twitter:card" content="summary_large_image"> | ||
<meta name="twitter:site" content="@OpenStax"> | ||
<meta name="twitter:title" content="{{ page.title }}"> | ||
<meta name="twitter:description" content="{{ page.search_description }}"> | ||
<meta name="twitter:image" content="{{ promote_image.url }}"> | ||
<meta name="twitter:image:alt" content="OpenStax"> | ||
</head> | ||
<body> | ||
{% block content %}{% endblock %} | ||
</body> | ||
</html> |