Commit aeab580d authored by Liang Ding's avatar Liang Ding

🎨 使用相对路径

parent 0c8815ee
...@@ -197,8 +197,7 @@ public class PageMgmtService { ...@@ -197,8 +197,7 @@ public class PageMgmtService {
page.put(Page.PAGE_COMMENTABLE, true); page.put(Page.PAGE_COMMENTABLE, true);
page.put(Page.PAGE_TYPE, "page"); page.put(Page.PAGE_TYPE, "page");
page.put(Page.PAGE_PERMALINK, permalink); page.put(Page.PAGE_PERMALINK, permalink);
final JSONObject preference = preferenceQueryService.getPreference(); page.put(Page.PAGE_ICON, "images/github-icon.png");
page.put(Page.PAGE_ICON, Latkes.getStaticServePath() + "/images/github-icon.png");
page.put(Page.PAGE_CONTENT, content); page.put(Page.PAGE_CONTENT, content);
pageRepository.add(page); pageRepository.add(page);
} else { } else {
......
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