Skip to content

Commit d16dcc0

Browse files
committed
wip
1 parent 6a079a0 commit d16dcc0

File tree

2 files changed

+1
-29
lines changed

2 files changed

+1
-29
lines changed

src/Elastic.Markdown/Assets/pages-nav.ts

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -113,34 +113,6 @@ export function initNav() {
113113
keepNavStateCallback();
114114
keepNavPositionCallback();
115115
}, true);
116-
117-
// $$('a', pagesNav).forEach(a => {
118-
// a.addEventListener('click', (e) => {
119-
// e.preventDefault();
120-
// history.pushState(null, '', a.href);
121-
// const markdownContentContainer = $('.markdown-content');
122-
// markdownContentContainer.innerHTML = 'loading...';
123-
// const url = a.href;
124-
// fetch(url)
125-
// .then(response => response.text())
126-
// .then(text => {
127-
// const doc = new DOMParser().parseFromString(text, 'text/html')
128-
// const markdownContent = $('.markdown-content', doc);
129-
// const toc = $('#toc-nav', doc);
130-
// const tocContainer = $('#toc-nav');
131-
// if (toc && tocContainer) {
132-
// tocContainer.innerHTML = toc.innerHTML;
133-
// }
134-
// if (markdownContent && markdownContentContainer) {
135-
// markdownContentContainer.innerHTML = markdownContent.innerHTML;
136-
// initHighlight();
137-
// initCopyButton();
138-
// initTabs();
139-
// initTocNav();
140-
// }
141-
// });
142-
// });
143-
// });
144116
}
145117

146118
// initNav();

src/Elastic.Markdown/Slices/_Layout.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<div class="basis-full">
3838
@if (Model.Previous != null)
3939
{
40-
<a href="@Model.Previous.Url" hx-get="@Model.Previous.Url" class="flex h-full items-center text-ink-light hover:black border-1 border-gray-300 hover:border-gray-500 rounded-lg p-6 shadow-md">
40+
<a href="@Model.Previous.Url" hx-get="@Model.Previous.Url" hx-select="#content" hx-target="#content" class="flex h-full items-center text-ink-light hover:black border-1 border-gray-300 hover:border-gray-500 rounded-lg p-6 shadow-md">
4141
<svg class="size-6 mr-2" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
4242
<path stroke-linecap="round" stroke-linejoin="round" d="M15.75 19.5 8.25 12l7.5-7.5"/>
4343
</svg>

0 commit comments

Comments
 (0)