Skip to content

Commit 12235d5

Browse files
save
1 parent ad25a63 commit 12235d5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

EssentialCSharp.Web/Views/Shared/_Layout.cshtml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@
124124
<span v-cloak>{{chapterParentPage.title}}</span>
125125
</a>
126126
<div class="menu-chapter-title text-light">
127-
<form
128127
<span v-cloak>{{currentPageCount}} / {{totalPageCount}}</span>
129128
</div>
130129

@@ -296,7 +295,7 @@
296295
Title = $"Chapter {x.Key}: {x.First().ChapterTitle}",
297296
Items = GetItems(x, 1)
298297
});
299-
var groupedTocData = _SiteMappings.SiteMappings.GroupBy(x => x.ChapterNumber).OrderBy(x => x.Key);
298+
var groupedTocData = _SiteMappings.SiteMappings.DistinctBy(x => (x.ChapterNumber, x.PageNumber)).GroupBy(x => x.ChapterNumber).OrderBy(x => x.Key);
300299
int currentPageCount = 1;
301300
int overallCount = 1;
302301
bool currentPageFound = false;

0 commit comments

Comments
 (0)