diff --git a/src/Elastic.Markdown/Slices/HtmlWriter.cs b/src/Elastic.Markdown/Slices/HtmlWriter.cs index 112c2afc..8f0a2525 100644 --- a/src/Elastic.Markdown/Slices/HtmlWriter.cs +++ b/src/Elastic.Markdown/Slices/HtmlWriter.cs @@ -45,8 +45,8 @@ public async Task RenderLayout(MarkdownFile markdown, Cancel ctx = defau await DocumentationSet.Tree.Resolve(ctx); var navigationHtml = await RenderNavigation(markdown, ctx); - var previous = DocumentationSet.MarkdownFiles.GetValueOrDefault(markdown.NavigationIndex -1); - var next = DocumentationSet.MarkdownFiles.GetValueOrDefault(markdown.NavigationIndex +1); + var previous = DocumentationSet.MarkdownFiles.GetValueOrDefault(markdown.NavigationIndex - 1); + var next = DocumentationSet.MarkdownFiles.GetValueOrDefault(markdown.NavigationIndex + 1); var remote = DocumentationSet.Context.Git.RepositoryName; var branch = DocumentationSet.Context.Git.Branch;