Make the meta description tag have a good static default value
This commit is contained in:
parent
0e54b0501c
commit
a114a887b7
2 changed files with 6 additions and 1 deletions
|
@ -4203,6 +4203,11 @@ quayApp.run(['$location', '$rootScope', 'Restangular', 'UserService', 'PlanServi
|
|||
$rootScope.description = 'Hosted private docker repositories. Includes full user management and history. Free for public repositories.';
|
||||
}
|
||||
|
||||
// Note: We set the content of the description tag manually here rather than using Angular binding
|
||||
// because we need the <meta> tag to have a default description that is not of the form "{{ description }}",
|
||||
// we read by tools that do not properly invoke the Angular code.
|
||||
$('#descriptionTag').attr('content', $rootScope.description);
|
||||
|
||||
$rootScope.fixFooter = !!current.$$route.fixFooter;
|
||||
$rootScope.current = current.$$route;
|
||||
});
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
{% block added_meta %}
|
||||
<base href="/">
|
||||
|
||||
<meta name="description" content="{% raw %}{{ description }}{% endraw %}"></meta>
|
||||
<meta id="descriptionTag" name="description" content="Hosted private docker repositories. Includes full user management and history. Free for public repositories."></meta>
|
||||
<meta name="google-site-verification" content="GalDznToijTsHYmLjJvE4QaB9uk_IP16aaGDz5D75T4" />
|
||||
<meta name="fragment" content="!" />
|
||||
{% endblock %}
|
||||
|
|
Reference in a new issue