Make the meta description tag have a good static default value

This commit is contained in:
Joseph Schorr 2014-04-11 17:06:09 -04:00
parent 0e54b0501c
commit a114a887b7
2 changed files with 6 additions and 1 deletions

View file

@ -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;
});

View file

@ -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 %}