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

Skip to content

Commit 8d225e9

Browse files
committed
Use canonical paths for Disqus threads
1 parent 549abe8 commit 8d225e9

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

daux.patch

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
From 40008c88788c97fd4b81e1117a5f029d9a457acd Mon Sep 17 00:00:00 2001
1+
From b3713faf02ab4ace5be4dbc57f9deb45510c57dd Mon Sep 17 00:00:00 2001
22
From: Alexander Overvoorde <[email protected]>
3-
Date: Mon, 17 Apr 2017 20:02:04 +0200
3+
Date: Thu, 11 May 2017 15:48:53 +0200
44
Subject: [PATCH] Adjust theme for Vulkan tutorial
55

66
---
77
daux/VulkanLinkProcessor.php | 69 ++++
8-
templates/content.php | 26 +-
8+
templates/content.php | 25 +-
99
templates/layout/00_layout.php | 2 +-
1010
templates/layout/05_page.php | 17 +-
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, 924 insertions(+), 137 deletions(-)
23+
16 files changed, 923 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..4e4d456
9999
+ }
100100
+?>
101101
diff --git a/templates/content.php b/templates/content.php
102-
index 2febe38..03017b7 100644
102+
index 2febe38..f1083bd 100644
103103
--- a/templates/content.php
104104
+++ b/templates/content.php
105105
@@ -2,17 +2,14 @@
@@ -122,7 +122,7 @@ index 2febe38..03017b7 100644
122122
</div>
123123
<?php } ?>
124124

125-
@@ -26,5 +23,24 @@
125+
@@ -26,5 +23,23 @@
126126
</ul>
127127
</nav>
128128
<?php } ?>
@@ -131,8 +131,7 @@ index 2febe38..03017b7 100644
131131
+ <script>
132132
+ if (document.location.host) {
133133
+ var disqus_config = function() {
134-
+ var path = location.pathname;
135-
+ if (path == '/') path = '/Introduction';
134+
+ var path = '/<?= $page['request'] ?>';
136135
+ this.page.identifier = path;
137136
+ };
138137
+

0 commit comments

Comments
 (0)