We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87597b4 commit 3198dcdCopy full SHA for 3198dcd
_layouts/default.html
@@ -15,6 +15,7 @@
15
16
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
17
<script type="text/javascript" src="/javascripts/jquery.min.js"></script>
18
+ <script type="text/javascript" src="/javascripts/page.js"></script>
19
{% if page.javascript != null %}
20
{% for javascript in page.javascript %}
21
<script type="text/javascript" src="/javascripts/{{ javascript }}.js"></script>
javascripts/page.js
@@ -0,0 +1,14 @@
1
+var Page = {
2
+ SiteLinks: {
3
+ highlight: function() {
4
+ var current_page = location.pathname;
5
+ var $sitelink = $("div.site-links a[href=\"" + current_page + "\"]");
6
+
7
+ if ($sitelink) {
8
+ $sitelink.css('text-weight: bold;');
9
+ }
10
11
12
+};
13
14
+$(Page.SiteLinks.highlight);
0 commit comments