subText学习心得二(皮肤安装方法)

官方原文

Skin Installation Instructions
SubText skins are generally delivered as a zip file. To install the skins follow these instructions;

   1. Unzip the skins folder
   2. Create a directory under the skins directory in your subtext installation. This would normally have a name matching the skin name
   3. Copy the unzipped files into your new directory
   4. Navigate to the admin directory of your subtext installation.
   5. If you have an existing skins.user.config file skip to step 7.
   6. Create a new file named skins.user.config and containing the following information;

      <?xml version="1.0"?>
      <SkinTemplates xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <Skins>
        </Skins>
      </SkinTemplates>

   7.  Add a reference to your new skin template between the <Skins> tag; for example;

      <SkinTemplate Name="Skin Display Name"
        TemplateFolder="Skin Folder Name">
      </SkinTemplate>

      You do not need to prefix the skin folder with /skins/; so if, for example, you uploaded your skin into "myNewSkin" then the TemplateFolder attribute would have a value of "myNewSkin".

      Your new skin may need extra template lines, please check the skin documentation carefully.
   8. Go to the administration pages for your blog, choose Options, then choose Configure
   9. Pull down the Display Skin drop down list and choose the name of your new skin.
  10. Press the "Save" button.

1。在Subtext.Web\Admin文件夹中找到Skins.config文件.更改配置文件。

注意:皮肤文件存在Subtext.Web\Skins\文件夹中,

<SkinTemplate Name="皮肤的名称" TemplateFolder="皮肤的文件夹">
      <Styles>
          <Style href="~/skins/_System/csharp.css" />
          <Style href="~/skins/_System/commonstyle.css" />
          <Style href="~/skins/_System/commonlayout.css" />
          <Style href="print.css" media="print" />
      </Styles>

  </SkinTemplate>

 在学习做新皮肤时,建议直接复制原来的一个皮肤在上面修改。

 

转载于:https://www.cnblogs.com/lgh/archive/2008/07/21/1247381.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值