Skip to content

Commit

Permalink
test base url
Browse files Browse the repository at this point in the history
  • Loading branch information
niltor committed Mar 29, 2024
1 parent 5d4eb87 commit 5102b98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/BuildSite/HtmlBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ private static string GetFullPath(Catalog catalog)
}
public void EnableBaseUrl()
{
var webInfoPath = Path.Combine(DataPath, "webinfo.json");
var webInfoPath = Path.Combine(Environment.CurrentDirectory, "webinfo.json");
if (File.Exists(webInfoPath))
{
var content = File.ReadAllText(webInfoPath);
Expand All @@ -205,7 +205,7 @@ private static string GetTitleFromMarkdown(string content)
var match = regex.Match(content);
if (match.Success)
{
return match.Groups[1].Value;
return match.Groups[1].Value.Trim();
}
return "";
}
Expand Down

0 comments on commit 5102b98

Please sign in to comment.