Commit f9b4b22e authored by Liang Ding's avatar Liang Ding

🐛 修复 Windows 上生成静态站点的问题

parent 30b32ed1
......@@ -73,7 +73,7 @@
</scm>
<properties>
<org.b3log.latke.version>3.2.8</org.b3log.latke.version>
<org.b3log.latke.version>3.2.9</org.b3log.latke.version>
<jsoup.version>1.12.1</jsoup.version>
<flexmark.version>0.50.40</flexmark.version>
......
......@@ -49,7 +49,7 @@ import java.util.List;
* Static site console request processing. HTML 静态站点生成 https://github.com/88250/solo/issues/19
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 2.0.1.0, Feb 27, 2020
* @version 2.0.1.1, Feb 28, 2020
* @since 3.9.0
*/
@Singleton
......@@ -154,7 +154,7 @@ public class StaticSiteConsole {
if (!Latkes.isInJar()) {
rootPath = StaticSiteConsole.class.getResource("/repository.json").getPath();
rootPath = StringUtils.substringBeforeLast(rootPath, "/repository.json");
staticSitePath = StaticSiteConsole.class.getResource("/").getPath() + "static-site";
staticSitePath = rootPath + "/static-site";
} else {
LOGGER.log(Level.INFO, "Do not support export static site when running in jar");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment