Merge pull request '个人建站新增public模式' (#276) from KingChan/forgeplus:chenjing into standalone_develop

This commit is contained in:
KingChan 2024-04-16 15:09:57 +08:00
commit 6d70bc6aa9
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ class Page < ApplicationRecord
belongs_to :project
# language_frame 前端语言框架
enum language_frame: { hugo: 0, jekyll: 1, hexo: 2}
enum language_frame: { hugo: 0, jekyll: 1, hexo: 2, public: 3}
after_create do
PageService.genernate_user(user_id)

View File

@ -14,7 +14,7 @@
<label>
建站工具 <span class="ml10 color-orange mr20">*</span>
</label>
<% state_options = [['hugo', "hugo"], ['jeklly', "jeklly"],['hexo',"hexo"]] %>
<% state_options = [['hugo', "hugo"], ['jeklly', "jeklly"],['hexo',"hexo"],['public',"public"]] %>
<%= select_tag('page_theme[language_frame]', options_for_select(state_options), class: 'form-control') %>
</div>
<% end%>