Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2021-02-12 20:24:11 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2021-02-12 20:24:11 +0300
commitf55f4e7d56467fbcc2d6b40396dafdb866177bf3 (patch)
treed0ac6cbdb60158b385893091dff40f1e4c0544c3 /layouts
parent9dfde72da74c8932b963c0e186674c75ba1be15d (diff)
Add missing script tags
Diffstat (limited to 'layouts')
-rw-r--r--layouts/comments.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/comments.html b/layouts/comments.html
index 70110e4d..28101679 100644
--- a/layouts/comments.html
+++ b/layouts/comments.html
@@ -1,4 +1,5 @@
<% if production_and_default_branch? %>
+<script type="text/javascript">
var disqus_config = function () {
this.page.url = '<%= @config[:base_url] %><%= @item.identifier.without_ext + '.html' %>';
this.page.title = '<%= @item.key?(:title) ? "#{item[:title]} - GitLab Documentation" : "GitLab Documentation" %>';
@@ -21,4 +22,5 @@ window.loadDisqus = function() {
(d.head || d.body).appendChild(s);
}
};
+</script>
<% end %>