我将Camaleon CMS安装到了我的项目中,并且可以正常工作。我可以为每个类别添加类别和页面。我想手动编辑主页的内容(我编辑了index.html.erb文件,但所有页面都发生了更改)。这是index.html.erb的样子(进行更改后):
<html lang="en">
<head>
<!-- META SECTION -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- END META SECTION -->
<%= stylesheet_link_tag theme_asset_path("css/main.css") %>
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Montserrat%3A400%2C700&ver=4.2.2">
<%= javascript_include_tag theme_asset_path("js/main.js") %>
<%= raw the_head %>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body class="<%= is_home? ? "home-page" : "inner-page" %>"><div class="container">
<div class="side">
<%= image_tag "en0.jpg", class: "image" %>
<div class="sidetext">
<p>Leave the shopping headache on us</p>
<br/>
<%=link_to 'Download', "", class: "downloadlink" %>
<br/><br/>
<p>#TrulyWOW</p>
</div>
</div>
<div class="main">
<div class="navbar">
<div style="position: absolute; top: 0;"><%= raw current_site.draw_languages("language-list list-inline", true) %></div>
<!-- .navbar-toggle is used as the toggle for collapsed navbar content -->
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<%= raw draw_menu({container_id: "menu-menu-1", container_class: "nav navbar-nav navbar-right"}) %>
</div>
<div class="images">
<%= image_tag "en1.png", class: "image1" %>
<%= image_tag "en2.png", class: "image2" %>
<%= image_tag "en3.png", class: "image3" %>
<%= image_tag "en4.png", class: "image4" %>
<%= image_tag "en5.png", class: "image5" %>
<%= image_tag "en6.png", class: "image6" %>
<%= image_tag "en7.png", class: "image7" %>
</div>
如何编辑主页,使更改仅出现在该页面上,而不显示在其他页面上?