forked from github/docs
-
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.
Inline CSRF token in HTML (github#17748)
* Inline CSRF token * Fix tests
- Loading branch information
Showing
8 changed files
with
33 additions
and
68 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,30 @@ | ||
<head> | ||
{% comment %} For human readers {% endcomment %} | ||
<meta charset="utf-8" /> | ||
<title>{% if error == '404' %}{% data ui.errors.oops %}{% elsif currentVersion == 'homepage' %}GitHub Documentation{% elsif page.fullTitle %}{{ page.fullTitle }}{% else %}GitHub Documentation{% endif %}</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1">{% if page.hidden %} | ||
<meta name="robots" content="noindex" />{% endif %} | ||
<meta name="google-site-verification" content="OgdQc0GZfjDI52wDv1bkMT-SLpBUo_h5nn9mI9L22xQ" /> | ||
<meta name="google-site-verification" content="c1kuD-K2HIVF635lypcsWPoD4kilo5-jA_wBFyT4uMY" /> | ||
|
||
<!-- localized data needed by client-side JS --> | ||
<meta name="site.data.ui.search.placeholder" content="{% data ui.search.placeholder %}"> | ||
<!-- end localized data --> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="alternate icon" type="image/png" href="/assets/images/site/favicon.png"> | ||
<link rel="icon" type="image/svg+xml" href="/assets/images/site/favicon.svg"> | ||
<link rel="stylesheet" href="{{ builtAssets.main.css }}"> | ||
|
||
{% comment %} For Google and Bots {% endcomment %} | ||
{% if page.intro %} | ||
<meta name="description" content="{{ page.introPlainText }}"> | ||
{% endif %} | ||
|
||
<!-- hreflangs --> | ||
{% if page.hidden %} | ||
<meta name="robots" content="noindex" /> | ||
{% endif %} | ||
{% for languageVariant in page.languageVariants %} | ||
<link | ||
rel="alternate" | ||
hreflang="{{ languageVariant.hreflang }}" | ||
href="https://docs.github.com{{ languageVariant.href }}" | ||
/> | ||
{% endfor %} | ||
<meta name="google-site-verification" content="OgdQc0GZfjDI52wDv1bkMT-SLpBUo_h5nn9mI9L22xQ" /> | ||
<meta name="google-site-verification" content="c1kuD-K2HIVF635lypcsWPoD4kilo5-jA_wBFyT4uMY" /> | ||
|
||
<link rel="stylesheet" href="{{ builtAssets.main.css }}"> | ||
<link rel="alternate icon" type="image/png" href="/assets/images/site/favicon.png"> | ||
<link rel="icon" type="image/svg+xml" href="/assets/images/site/favicon.svg"> | ||
{% comment %} For our JS {% endcomment %} | ||
<meta name="csrf-token" content="$CSRFTOKEN$"> | ||
<meta name="site.data.ui.search.placeholder" content="{% data ui.search.placeholder %}"> | ||
</head> |
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
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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