protected virtual string GetHtmlNavigation() { var htmlBuilder = new StringBuilder(); htmlBuilder.Append("<code>"); foreach (var node in OrganizationInfo.Take(OrganizationInfo.Count - 1)) { htmlBuilder.Append($"<a href=\"{node.RelativePath}index.html\">{HtmlEncoder.Default.Encode(node.ItemInfo.Name)}</a> / "); } htmlBuilder.Append(HtmlEncoder.Default.Encode(OrganizationInfo.Last().ItemInfo.Name)); htmlBuilder.Append("</code>"); return(htmlBuilder.ToString()); }
protected override string GetHtmlNavigation() { var htmlBuilder = new StringBuilder(); htmlBuilder.Append("<code>"); foreach (var node in OrganizationInfo.Take(5)) { htmlBuilder.Append($"<a href=\"{node.RelativePath}index.html\">{HtmlEncoder.Default.Encode(node.ItemInfo.Name)}</a> / "); } htmlBuilder.Append($" <a href=\"{Path.GetFileNameWithoutExtension(input.Topic.Path) + HtmlExtensionFilename}\">{HtmlEncoder.Default.Encode(OrganizationInfo[5].ItemInfo.Name)}</a> "); htmlBuilder.Append(HtmlEncoder.Default.Encode(OrganizationInfo[6].ItemInfo.Name)); htmlBuilder.Append("</code>"); return(htmlBuilder.ToString()); }