diff --git a/Lib/BuildSite/HtmlBuilder.cs b/Lib/BuildSite/HtmlBuilder.cs
index bc5e7c5..e50be09 100644
--- a/Lib/BuildSite/HtmlBuilder.cs
+++ b/Lib/BuildSite/HtmlBuilder.cs
@@ -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);
@@ -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 "";
}