File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ public class MarkdownPages : MarkdownPagesBase<MarkdownFileInfo>
14
14
public MarkdownPages ( ILogger < MarkdownPages > log , IWebHostEnvironment env ) : base ( log , env ) { }
15
15
List < MarkdownFileInfo > Pages { get ; set ; } = new ( ) ;
16
16
public List < MarkdownFileInfo > GetVisiblePages ( string ? prefix = null , bool allDirectories = false ) => prefix == null
17
- ? Pages . Where ( x => IsVisible ( x ) && ! x . Slug ! . Contains ( '/' ) ) . OrderBy ( x => x . Order ) . ToList ( )
17
+ ? Pages . Where ( x => IsVisible ( x ) && ! x . Slug ! . Contains ( '/' ) ) . OrderBy ( x => x . Order ) . ThenBy ( x => x . Path ) . ToList ( )
18
18
: Pages . Where ( x => IsVisible ( x ) && x . Slug ! . StartsWith ( prefix . WithTrailingSlash ( ) ) )
19
19
. Where ( x => allDirectories || ( x . Slug . CountOccurrencesOf ( '/' ) == prefix . CountOccurrencesOf ( '/' ) + 1 ) )
20
- . OrderBy ( x => x . Order ) . ToList ( ) ;
20
+ . OrderBy ( x => x . Order ) . ThenBy ( x => x . Path ) . ToList ( ) ;
21
21
22
22
public MarkdownFileInfo ? GetBySlug ( string slug )
23
23
{
Original file line number Diff line number Diff line change 8
8
"AllowedHosts" : " *" ,
9
9
"AppConfig" : {
10
10
"LocalBaseUrl" : " https://localhost:5002" ,
11
- "PublicBaseUrl" : " https://razor-ssg.web-templates.io "
11
+ "PublicBaseUrl" : " https://docs2.servicestack.net "
12
12
}
13
13
}
You can’t perform that action at this time.
0 commit comments