Skip to content

Commit ba671c2

Browse files
authored
Revert Search result pages should not link to github.io change (#316)
1 parent 7fed364 commit ba671c2

File tree

2 files changed

+10
-387
lines changed

2 files changed

+10
-387
lines changed

_layouts/default.html

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,8 @@
44
<meta name="description" content="Documentation for Procore developers" />
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66
<meta charset="utf-8">
7-
87
<title>{{ page.title }}</title>
9-
<script>
10-
// Expose Jekyll config to JavaScript for parent origin detection
11-
window.JEKYLL_CONFIG = {
12-
url: "{{ site.url }}",
13-
baseurl: "{{ site.baseurl }}"
14-
};
15-
16-
// Only set base target="_parent" if NOT in an iframe
17-
// This allows iframed pages to navigate within the iframe
18-
if (window.self === window.top) {
19-
var base = document.createElement('base');
20-
base.target = '_parent';
21-
document.head.appendChild(base);
22-
}
23-
</script>
8+
<base target="_parent">
249
<link rel="stylesheet" href="{{ 'assets/css/main.css' | relative_url }}">
2510
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/nav.css"/>
2611
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css">
@@ -38,7 +23,7 @@
3823
<dl class="col_content">
3924
{% for item in section.items %}
4025
<dd{% if item.url == page.url %} class="active"{% endif %}>
41-
<a href="{% if item.absolute == true %}{{ site.url }}{{ site.baseurl }}{{ item.url }}{% else %}{{ item.url | relative_url }}{% endif %}">
26+
<a href="{% if item.absolute != true %}{{ site.url }}{{ site.baseurl }}{% endif %}{{ item.url }}">
4227
<!-- <a href="https://b601-208-127-107-52.ngrok-free.app/documentation{{ item.url }}"> -->
4328
{{ item.title }}
4429
</a>

0 commit comments

Comments
 (0)