Skip to content

moeflow-com/moeflow-deploy

Repository files navigation

如何部署一个自己的萌翻

请参见部署视频演示 https://www.bilibili.com/video/BV1EX4y1J7MA/

修改主页内容

升级前端版本至 v1.0.3 后端版本至 v1.0.8 后,即可在管理员页面-站点管理中,设置主页 HTML 和 CSS,以下为示例:

主页 HTML

<div class="homepage-title">
  <h1>欢迎使用萌翻!</h1>
  <p>
    <a href="login">登陆</a>
  </p>
  <p>
    <a href="register">注册</a>
  </p>
</div>
<div class="homepage-footer">备案号</div>

主页 CSS

html {
  width: 100%;
  height: 100%;
}
body {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.homepage-title {
  flex: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.homepage-footer {
  height: 50px;
  text-align: center;
}

About

self-host configurations for moeflow

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published