Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5562cb6

Browse files
committed
Fix disqus threads for different introduction links
1 parent c2a8307 commit 5562cb6

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

daux.patch

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
From 24cae4bbb80534bb43ae606abb86a5761b8f8093 Mon Sep 17 00:00:00 2001
1+
From c8e1e54ea9c3272ee26ba310fcdc56a3b34e1653 Mon Sep 17 00:00:00 2001
22
From: Alexander Overvoorde <[email protected]>
3-
Date: Sun, 17 Jul 2016 23:43:54 +0200
3+
Date: Mon, 18 Jul 2016 03:10:10 +0200
44
Subject: [PATCH] Adjust theme for Vulkan tutorial
55

66
---
77
daux/VulkanLinkProcessor.php | 69 ++++
8-
templates/content.php | 18 +-
8+
templates/content.php | 24 +-
99
templates/layout/00_layout.php | 2 +-
1010
templates/layout/05_page.php | 14 +-
1111
themes/daux/css/theme-blue.min.css | 2 +-
@@ -20,7 +20,7 @@ Subject: [PATCH] Adjust theme for Vulkan tutorial
2020
themes/daux/less/structure.less | 27 +-
2121
themes/daux/less/theme-blue.less | 10 +-
2222
themes/daux_singlepage/css/main.min.css | 2 +-
23-
16 files changed, 913 insertions(+), 137 deletions(-)
23+
16 files changed, 919 insertions(+), 137 deletions(-)
2424
create mode 100644 daux/VulkanLinkProcessor.php
2525

2626
diff --git a/daux/VulkanLinkProcessor.php b/daux/VulkanLinkProcessor.php
@@ -99,7 +99,7 @@ index 0000000..82b908c
9999
+ }
100100
+?>
101101
diff --git a/templates/content.php b/templates/content.php
102-
index 2febe38..5d351fc 100644
102+
index 2febe38..82e79cd 100644
103103
--- a/templates/content.php
104104
+++ b/templates/content.php
105105
@@ -2,17 +2,14 @@
@@ -122,13 +122,19 @@ index 2febe38..5d351fc 100644
122122
</div>
123123
<?php } ?>
124124

125-
@@ -26,5 +23,16 @@
125+
@@ -26,5 +23,22 @@
126126
</ul>
127127
</nav>
128128
<?php } ?>
129129
+
130130
+ <div id="disqus_thread"></div>
131131
+ <script>
132+
+ var disqus_config = function() {
133+
+ var path = location.pathname;
134+
+ if (path == '/') path = '/Introduction';
135+
+ this.page.identifier = path;
136+
+ };
137+
+
132138
+ (function() {
133139
+ var d = document, s = d.createElement('script');
134140
+ s.src = '//vulkan-tutorial.disqus.com/embed.js';

0 commit comments

Comments
 (0)