给wiki新制作的一套模板。没什么太多内容,基于bootstrap模板,自适应。
1.首页自定义了一下,为默认文档分类格式。
2.评论部分,取消了盖楼功能,最好设置为允许2层评论回复,这样作者回复会单独显示。
更新:新建页面,设置模板为index,设置>阅读>站点首页,设置为新建页面。
则首页为循环所有分类,每个分类10篇文章的CMS风格。
新版header.php文件:
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?><!DOCTYPE HTML><html class="no-js"><head> <meta charset="<?php $this->options->charset(); ?>"> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <title><?php $this->archiveTitle(array( 'category' => _t('分类 %s 下的文章'), 'search' => _t('包含关键字 %s 的文章'), 'tag' => _t('标签 %s 下的文章'), 'author' => _t('%s 发布的文章') ), '', ' - '); ?><?php $this->options->title(); ?></title> <!-- 使用url函数转换相关路径 --> <!-- Styles --> <link href="<?php $this->options->themeUrl('dist/css/core.css'); ?>" rel="stylesheet" /> <link href="<?php $this->options->themeUrl('dist/css/main.css'); ?>" rel="stylesheet" /> <link href="<?php $this->options->themeUrl('dist/css/global.css'); ?>" rel="stylesheet" /> <!--[if lt IE 9]> <script src="<?php $this->options->themeUrl('dist/js/selectivizr-min.js'); ?>"></script> <script src="<?php $this->options->themeUrl('dist/js/html5shiv.min.js'); ?>"></script> <script src="<?php $this->options->themeUrl('dist/js/respond.min.js'); ?>"></script> <![endif]--> <link rel="apple-touch-icon-precomposed" href="//dist.vpsmm.com/static/wiki.jpg" sizes="114x114"/> <!-- 通过自有函数输出HTML头部信息 --> <?php $this->header(); ?></head><body> <div class="page-wrapper"><div class="page-banner page-banner-subpage page-banner-breadcrumbs"> <div class="container"> <div class="row"> <div class="col-lg-4 col-md-5 col-sm-6"> <div class="banner-slogan"> <h2 class="docs-title slogan-title h1"><a href="<?php $this->options->siteUrl(); ?>"><?php $this->options->title() ?></a></h2> </div> </div> <div class="col-lg-8 col-md-7 col-sm-6"> <div class="banner-search"> <form method="post" action="<?php $this->options->siteUrl(); ?>" _lpchecked="1"> <div class="input-icon"> <input type="text" name="s" value="" class="form-control input-lg" placeholder="关键词检索" autocomplete="off"> <button type="submit" class="btn btn-link btn-icon btn-lg"><i class="zmdi zmdi-search"></i></button> </div> </form> </div> </div> </div> </div></div> <!-- /.page-banner -->
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(17)
感谢大咖分享,对于小白来说真的很有意思,已经使用 https://www.hensou.com/
已全部加载完毕