Change default theme id to caicai_anatole

pull/146/head
johnniang 2019-04-15 12:00:28 +08:00
parent fae4b9a4ef
commit 4b7df3286f
3 changed files with 5 additions and 5 deletions

View File

@ -22,7 +22,7 @@ public class HaloConst {
/**
* Default theme name.
*/
public final static String DEFAULT_THEME_NAME = "anatole";
public final static String DEFAULT_THEME_ID = "caicai_anatole";
/**
* version constant

View File

@ -44,7 +44,7 @@ import java.nio.file.Paths;
import java.util.*;
import java.util.stream.Collectors;
import static run.halo.app.model.support.HaloConst.DEFAULT_THEME_NAME;
import static run.halo.app.model.support.HaloConst.DEFAULT_THEME_ID;
/**
* @author : RYAN0UP
@ -279,7 +279,7 @@ public class ThemeServiceImpl implements ThemeService {
if (StringUtils.isBlank(activatedThemeId)) {
synchronized (this) {
if (StringUtils.isBlank(activatedThemeId)) {
return optionService.getByProperty(PrimaryProperties.THEME).orElse(DEFAULT_THEME_NAME);
return optionService.getByProperty(PrimaryProperties.THEME).orElse(DEFAULT_THEME_ID);
}
}
}

View File

@ -21,7 +21,7 @@ import javax.validation.Valid;
import java.util.HashMap;
import java.util.Map;
import static run.halo.app.model.support.HaloConst.DEFAULT_THEME_NAME;
import static run.halo.app.model.support.HaloConst.DEFAULT_THEME_ID;
/**
* Installation controller.
@ -166,7 +166,7 @@ public class InstallController {
properties.put(BlogProperties.BLOG_LOCALE, installParam.getLocale());
properties.put(BlogProperties.BLOG_TITLE, installParam.getTitle());
properties.put(BlogProperties.BLOG_URL, installParam.getUrl());
properties.put(PrimaryProperties.THEME, DEFAULT_THEME_NAME);
properties.put(PrimaryProperties.THEME, DEFAULT_THEME_ID);
properties.put(PrimaryProperties.BIRTHDAY, String.valueOf(System.currentTimeMillis()));
properties.put(EmailProperties.ENABLED, Boolean.FALSE.toString());
properties.put(CommentProperties.NEW_NOTICE, Boolean.FALSE.toString());