mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-08 07:42:27 +08:00
update
This commit is contained in:
6
api.go
6
api.go
@@ -380,9 +380,9 @@ func responseNotice(c *gin.Context, typ, content, hl string) {
|
||||
domain = domain[0:i]
|
||||
}
|
||||
if hl != "" {
|
||||
c.SetCookie("notice_highlight", hl, 86400, "/", domain, runmode.EnableHttps, false)
|
||||
c.SetCookie("notice_highlight", hl, 86400, "/", domain, true, false)
|
||||
}
|
||||
c.SetCookie("notice_type", typ, 86400, "/", domain, runmode.EnableHttps, false)
|
||||
c.SetCookie("notice", fmt.Sprintf("[\"%s\"]", content), 86400, "/", domain, runmode.EnableHttps, false)
|
||||
c.SetCookie("notice_type", typ, 86400, "/", domain, true, false)
|
||||
c.SetCookie("notice", fmt.Sprintf("[\"%s\"]", content), 86400, "/", domain, true, false)
|
||||
c.Redirect(http.StatusFound, c.Request.Referer())
|
||||
}
|
||||
|
||||
@@ -2,19 +2,19 @@
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>{{.Title}}</title>
|
||||
<link>{{if .EnableHttps}}https://{{else}}http://{{end}}{{.Domain}}</link>
|
||||
<atom:link href="{{if .EnableHttps}}https://{{else}}http://{{end}}{{.Domain}}/rss.html" rel="self"/>
|
||||
<link>https://{{.Domain}}</link>
|
||||
<atom:link href="https://{{.Domain}}/rss.html" rel="self"/>
|
||||
<description>{{.SubTitle}}</description>
|
||||
<language>zh-CN</language>
|
||||
<lastBuildDate>{{.BuildDate}}</lastBuildDate>
|
||||
{{range .Artcs}}
|
||||
<item>
|
||||
<title>{{.Title}}</title>
|
||||
<link>{{if $.EnableHttps}}https://{{else}}http://{{end}}{{$.Domain}}/post/{{.Slug}}.html</link>
|
||||
<comments>{{if $.EnableHttps}}https://{{else}}http://{{end}}{{$.Domain}}/post/{{.Slug}}.html#comments</comments>
|
||||
<guid>{{if $.EnableHttps}}https://{{else}}http://{{end}}{{$.Domain}}/post/{{.Slug}}.html</guid>
|
||||
<link>https://{{$.Domain}}/post/{{.Slug}}.html</link>
|
||||
<comments>https://{{$.Domain}}/post/{{.Slug}}.html#comments</comments>
|
||||
<guid>https://{{$.Domain}}/post/{{.Slug}}.html</guid>
|
||||
<description><![CDATA[<blockquote>{{.Content}}]]></description>
|
||||
</item>
|
||||
{{end}}
|
||||
</channel>
|
||||
</rss>
|
||||
</rss>
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
{{range .Artcs}}
|
||||
<url>
|
||||
<loc>{{if $.EnableHttps}}https{{else}}http{{end}}://{{$.Domain}}/post/{{.Slug}}.html</loc>
|
||||
<loc>https://{{$.Domain}}/post/{{.Slug}}.html</loc>
|
||||
<lastmod>{{dateformat .CreateTime "2006-01-02"}}</lastmod>
|
||||
<priority>0.6</priority>
|
||||
</url>
|
||||
{{end}}
|
||||
</urlset>
|
||||
</urlset>
|
||||
|
||||
@@ -27,10 +27,7 @@ func CommentsCount() {
|
||||
return
|
||||
}
|
||||
baseUrl := setting.Conf.Disqus.URL + "?api_key=" + setting.Conf.Disqus.PublicKey + "&forum=" + setting.Conf.Disqus.ShortName + "&"
|
||||
domain := "http://" + runmode.Domain
|
||||
if runmode.EnableHttps {
|
||||
domain = "https://" + runmode.Domain
|
||||
}
|
||||
domain := "https://" + runmode.Domain
|
||||
var count, index int
|
||||
for index < len(Ei.Articles) {
|
||||
logd.Debugf("count=====%d, index=======%d, length=======%d, bool=========%t", count, index, len(Ei.Articles), index < len(Ei.Articles) && count < 10)
|
||||
|
||||
1
front.go
1
front.go
@@ -140,7 +140,6 @@ func HandleArticlePage(c *gin.Context) {
|
||||
}
|
||||
}
|
||||
h["Article"] = artc
|
||||
h["EnableHttps"] = runmode.EnableHttps
|
||||
c.HTML(http.StatusOK, "homeLayout.html", h)
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ func init() {
|
||||
store.Options(sessions.Options{
|
||||
MaxAge: 86400 * 999,
|
||||
Path: "/",
|
||||
Secure: runmode.EnableHttps,
|
||||
Secure: true,
|
||||
HttpOnly: true,
|
||||
})
|
||||
router.Use(sessions.Sessions("su", store))
|
||||
|
||||
@@ -1 +1 @@
|
||||
{{define "about"}}<div id=content class=inner>{{with .Article}}<article class="post post-{{.ID}}" itemscope itemtype="http://schema.org/Article"><h1 class=title itemprop=headline>{{.Title}}</h1><div class="entry-content" itemprop=articleBody>{{str2html .Content}}</div></article><section id=comments><h1 class=title>Comments<span id=switch_thread_mode></h1><div id=disqus_thread class=ds-thread data-identifier="post-{{.Slug}}" data-url="{{if $.EnableHttps}}https://{{else}}http://{{end}}{{$.Domain}}/post/{{.Slug}}.html"></div><div id=simple_thread data-id="golomb-coded-sets"></div></section>{{end}}</div>{{end}}
|
||||
{{define "about"}}<div id=content class=inner>{{with .Article}}<article class="post post-{{.ID}}" itemscope itemtype="http://schema.org/Article"><h1 class=title itemprop=headline>{{.Title}}</h1><div class="entry-content" itemprop=articleBody>{{str2html .Content}}</div></article><section id=comments><h1 class=title>Comments<span id=switch_thread_mode></h1><div id=disqus_thread class=ds-thread data-identifier="post-{{.Slug}}" data-url="https://{{$.Domain}}/post/{{.Slug}}.html"></div><div id=simple_thread data-id="golomb-coded-sets"></div></section>{{end}}</div>{{end}}
|
||||
|
||||
@@ -1,328 +0,0 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html class="no-js">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>管理文章 - Hello World - Powered by Typecho</title>
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
<link rel="stylesheet" href="http://localhost/admin/css/normalize.css?v=14.10.10">
|
||||
<link rel="stylesheet" href="http://localhost/admin/css/grid.css?v=14.10.10">
|
||||
<link rel="stylesheet" href="http://localhost/admin/css/style.css?v=14.10.10">
|
||||
<!--[if lt IE 9]>
|
||||
<script src="http://localhost/admin/js/html5shiv.js?v=14.10.10"></script>
|
||||
<script src="http://localhost/admin/js/respond.js?v=14.10.10"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!--[if lt IE 9]>
|
||||
<div class="message error browsehappy" role="dialog">当前网页 <strong>不支持</strong> 你正在使用的浏览器. 为了正常的访问, 请 <a href="http://browsehappy.com/">升级你的浏览器</a>.</div>
|
||||
<![endif]-->
|
||||
<div class="typecho-head-nav clearfix" role="navigation">
|
||||
<nav id="typecho-nav-list">
|
||||
<ul class="root focus">
|
||||
<li class="parent"><a target="_self" href="/admin/home">控制台</a></dt>
|
||||
</li>
|
||||
<ul class="child">
|
||||
<li target="_self" class="focus"><a href="/admin/home">概要</a></li>
|
||||
<li><a target="_self" href="/admin/profile">个人设置</a></li>
|
||||
<li><a target="_self" href="/admin/plugin">插件</a></li>
|
||||
<li class="last"><a target="_self" href="/admin/theme">外观</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
<ul class="root">
|
||||
<li class="parent"><a target="_self" href="/admin/write">撰写</a></dt>
|
||||
</li>
|
||||
<ul class="child">
|
||||
<li class="last"><a target="_self" href="/admin/write">撰写文章</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
<ul class="root">
|
||||
<li class="parent"><a target="_self" href="/admin/articles">管理</a></dt>
|
||||
</li>
|
||||
<ul class="child">
|
||||
<li><a target="_self" href="/admin/articles">文章</a></li>
|
||||
<li><a target="_self" href="/admin/categories">分类</a></li>
|
||||
<li class="last"><a target="_self" href="/admin/tags">标签</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
<ul class="root">
|
||||
<li class="parent"><a target="_self" href="/admin/setting">设置</a></dt>
|
||||
</li>
|
||||
<ul class="child">
|
||||
<li><a target="_self" href="/admin/setting">基本</a></li>
|
||||
<li class="last"><a target="_self" href="/admin/reading">阅读</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="operate">
|
||||
<a target="_self" title="最后登录: 7小时前" href="/admin/profile" class="author">admin</a><a target="_self" class="exit" href="/admin/login?logout=true">登出</a><a href="/">网站</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main">
|
||||
<div class="body container">
|
||||
<div class="typecho-page-title">
|
||||
<h2>管理文章<a href="http://localhost/admin/write-post.php">新增</a></h2>
|
||||
</div>
|
||||
<div class="row typecho-page-main" role="main">
|
||||
<div class="col-mb-12 typecho-list">
|
||||
<div class="typecho-list-operate clearfix">
|
||||
<form method="get">
|
||||
<div class="operate">
|
||||
<label><i class="sr-only">全选</i>
|
||||
<input type="checkbox" class="typecho-table-select-all" />
|
||||
</label>
|
||||
<div class="btn-group btn-drop">
|
||||
<button class="btn dropdown-toggle btn-s" type="button"><i class="sr-only">操作</i>选中项 <i class="i-caret-down"></i></button>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a lang="你确认要删除这些文章吗?" href="http://localhost/index.php/action/contents-post-edit?do=delete&_=448a1ea454e9a1e7c93f8dd9b97b087a">删除</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="search" role="search">
|
||||
<input type="text" class="text-s" placeholder="请输入关键字" value="" name="keywords" />
|
||||
<select name="category">
|
||||
<option value="">所有分类</option>
|
||||
<option value="1">默认分类</option>
|
||||
<option value="2">232</option>
|
||||
<option value="3">234</option>
|
||||
<option value="4">2</option>
|
||||
<option value="5">4</option>
|
||||
<option value="6">3</option>
|
||||
<option value="7">5</option>
|
||||
<option value="8">6</option>
|
||||
<option value="9">7</option>
|
||||
<option value="10">8</option>
|
||||
<option value="11">9</option>
|
||||
</select>
|
||||
<button type="submit" class="btn btn-s">筛选</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<!-- end .typecho-list-operate -->
|
||||
<form method="post" name="manage_posts" class="operate-form">
|
||||
<div class="typecho-table-wrap">
|
||||
<table class="typecho-list-table">
|
||||
<colgroup>
|
||||
<col width="20" />
|
||||
<col width="6%" />
|
||||
<col width="45%" />
|
||||
<col width="" />
|
||||
<col width="18%" />
|
||||
<col width="16%" />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th> </th>
|
||||
<th> </th>
|
||||
<th>标题</th>
|
||||
<th>作者</th>
|
||||
<th>分类</th>
|
||||
<th>日期</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr id="post-3">
|
||||
<td>
|
||||
<input type="checkbox" value="3" name="cid[]" />
|
||||
</td>
|
||||
<td><a href="http://localhost/admin/manage-comments.php?cid=3" class="balloon-button size-1">0</a></td>
|
||||
<td>
|
||||
<a href="http://localhost/admin/write-post.php?cid=3">未命名文档</a>
|
||||
<a href="http://localhost/index.php/archives/3/" title="浏览 未命名文档"><i class="i-exlink"></i></a>
|
||||
</td>
|
||||
<td><a href="http://localhost/admin/manage-posts.php?uid=1">admin</a></td>
|
||||
<td> <a href="http://localhost/admin/manage-posts.php?category=1">默认分类</a> </td>
|
||||
<td>
|
||||
2天前 </td>
|
||||
</tr>
|
||||
<tr id="post-1">
|
||||
<td>
|
||||
<input type="checkbox" value="1" name="cid[]" />
|
||||
</td>
|
||||
<td><a href="http://localhost/admin/manage-comments.php?cid=1" class="balloon-button size-10">1</a></td>
|
||||
<td>
|
||||
<a href="http://localhost/admin/write-post.php?cid=1">欢迎使用 Typecho</a>
|
||||
<a href="http://localhost/index.php/archives/1/" title="浏览 欢迎使用 Typecho"><i class="i-exlink"></i></a>
|
||||
</td>
|
||||
<td><a href="http://localhost/admin/manage-posts.php?uid=1">admin</a></td>
|
||||
<td> <a href="http://localhost/admin/manage-posts.php?category=1">默认分类</a> </td>
|
||||
<td>
|
||||
4天前 </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
<!-- end .operate-form -->
|
||||
<div class="typecho-list-operate clearfix">
|
||||
<form method="get">
|
||||
<div class="operate">
|
||||
<label><i class="sr-only">全选</i>
|
||||
<input type="checkbox" class="typecho-table-select-all" />
|
||||
</label>
|
||||
<div class="btn-group btn-drop">
|
||||
<button class="btn dropdown-toggle btn-s" type="button"><i class="sr-only">操作</i>选中项 <i class="i-caret-down"></i></button>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a lang="你确认要删除这些文章吗?" href="http://localhost/index.php/action/contents-post-edit?do=delete&_=448a1ea454e9a1e7c93f8dd9b97b087a">删除</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="typecho-pager">
|
||||
<li class="current"><a href="http://localhost/admin/manage-posts.php?page=1">1</a></li>
|
||||
</ul>
|
||||
</form>
|
||||
</div>
|
||||
<!-- end .typecho-list-operate -->
|
||||
</div>
|
||||
<!-- end .typecho-list -->
|
||||
</div>
|
||||
<!-- end .typecho-page-main -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="typecho-foot" role="contentinfo">
|
||||
<div class="copyright">
|
||||
<a href="http://typecho.org" class="i-logo-s">Typecho</a>
|
||||
<p>由 <a href="http://typecho.org">Typecho</a> 强力驱动, 版本 1.0 (14.10.10)</p>
|
||||
</div>
|
||||
<nav class="resource">
|
||||
<a href="http://docs.typecho.org">帮助文档</a> •
|
||||
<a href="http://forum.typecho.org">支持论坛</a> •
|
||||
<a href="https://github.com/typecho/typecho/issues">报告错误</a> •
|
||||
<a href="http://extends.typecho.org">资源下载</a>
|
||||
</nav>
|
||||
</div>
|
||||
<script src="http://localhost/admin/js/jquery.js?v=14.10.10"></script>
|
||||
<script src="http://localhost/admin/js/jquery-ui.js?v=14.10.10"></script>
|
||||
<script src="http://localhost/admin/js/typecho.js?v=14.10.10"></script>
|
||||
<script>
|
||||
(function() {
|
||||
$(document).ready(function() {
|
||||
// 处理消息机制
|
||||
(function() {
|
||||
var prefix = '86a9106ae65537651a8e456835b316ab',
|
||||
cookies = {
|
||||
notice: $.cookie(prefix + '__typecho_notice'),
|
||||
noticeType: $.cookie(prefix + '__typecho_notice_type'),
|
||||
highlight: $.cookie(prefix + '__typecho_notice_highlight')
|
||||
},
|
||||
path = '/';
|
||||
|
||||
if (!!cookies.notice && 'success|notice|error'.indexOf(cookies.noticeType) >= 0) {
|
||||
var head = $('.typecho-head-nav'),
|
||||
p = $('<div class="message popup ' + cookies.noticeType + '">' + '<ul><li>' + $.parseJSON(cookies.notice).join('</li><li>') + '</li></ul></div>'),
|
||||
offset = 0;
|
||||
|
||||
if (head.length > 0) {
|
||||
p.insertAfter(head);
|
||||
offset = head.outerHeight();
|
||||
} else {
|
||||
p.prependTo(document.body);
|
||||
}
|
||||
|
||||
function checkScroll() {
|
||||
if ($(window).scrollTop() >= offset) {
|
||||
p.css({
|
||||
'position': 'fixed',
|
||||
'top': 0
|
||||
});
|
||||
} else {
|
||||
p.css({
|
||||
'position': 'absolute',
|
||||
'top': offset
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
$(window).scroll(function() {
|
||||
checkScroll();
|
||||
});
|
||||
|
||||
checkScroll();
|
||||
|
||||
p.slideDown(function() {
|
||||
var t = $(this),
|
||||
color = '#C6D880';
|
||||
|
||||
if (t.hasClass('error')) {
|
||||
color = '#FBC2C4';
|
||||
} else if (t.hasClass('notice')) {
|
||||
color = '#FFD324';
|
||||
}
|
||||
|
||||
t.effect('highlight', {
|
||||
color: color
|
||||
})
|
||||
.delay(5000).slideUp(function() {
|
||||
$(this).remove();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
$.cookie(prefix + '__typecho_notice', null, {
|
||||
path: path
|
||||
});
|
||||
$.cookie(prefix + '__typecho_notice_type', null, {
|
||||
path: path
|
||||
});
|
||||
}
|
||||
|
||||
if (cookies.highlight) {
|
||||
$('#' + cookies.highlight).effect('highlight', 1000);
|
||||
$.cookie(prefix + '__typecho_notice_highlight', null, {
|
||||
path: path
|
||||
});
|
||||
}
|
||||
})();
|
||||
|
||||
|
||||
// 导航菜单 tab 聚焦时展开下拉菜单
|
||||
(function() {
|
||||
$('#typecho-nav-list').find('.parent a').focus(function() {
|
||||
$('#typecho-nav-list').find('.child').hide();
|
||||
$(this).parents('.root').find('.child').show();
|
||||
});
|
||||
$('.operate').find('a').focus(function() {
|
||||
$('#typecho-nav-list').find('.child').hide();
|
||||
});
|
||||
})();
|
||||
|
||||
|
||||
if ($('.typecho-login').length == 0) {
|
||||
$('a').each(function() {
|
||||
var t = $(this),
|
||||
href = t.attr('href');
|
||||
|
||||
if ((href && href[0] == '#') || /^http\:\/\/localhost\/admin\/.*$/.exec(href) || /^http\:\/\/localhost\/index\.php\/action\/[_a-zA-Z0-9\/]+.*$/.exec(href)) {
|
||||
return;
|
||||
}
|
||||
|
||||
t.attr('target', '_blank');
|
||||
});
|
||||
}
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
<script>
|
||||
(function() {
|
||||
$(document).ready(function() {
|
||||
$('.typecho-list-table').tableSelectable({
|
||||
checkEl: 'input[type=checkbox]',
|
||||
rowEl: 'tr',
|
||||
selectAllEl: '.typecho-table-select-all',
|
||||
actionEl: '.dropdown-menu a,button.btn-operate'
|
||||
});
|
||||
|
||||
$('.btn-drop').dropdownMenu({
|
||||
btnEl: '.dropdown-toggle',
|
||||
menuEl: '.dropdown-menu'
|
||||
});
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -1,79 +0,0 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="zh-cn">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{.Title}}</title>
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
<link rel="stylesheet" href="/static/admin/background.css">
|
||||
<!--[if lt IE 9]>
|
||||
<script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
||||
<script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!--[if lt IE 9]>
|
||||
<div class="alert alert-danger topframe" role="alert">你的浏览器实在<strong>太太太太太太旧了</strong>,放学别走,升级完浏览器再说 <a target="_blank" class="alert-link" href="http://browsehappy.com">立即升级</a></div>
|
||||
<![endif]-->
|
||||
<div class="typecho-head-nav clearfix" role="navigation">
|
||||
<nav id="typecho-nav-list">
|
||||
<ul class="root {{if .Console}}focus{{end}}">
|
||||
<li class="parent"><a target="_self" href="/admin/home">控制台</a></dt>
|
||||
</li>
|
||||
<ul class="child">
|
||||
<li {{if eq .Path "/admin/home"}}class="focus"{{end}}><a target="_self" href="/admin/home">概要</a></li>
|
||||
<li {{if eq .Path "/admin/profile"}}class="focus"{{end}}><a target="_self" href="/admin/profile">个人设置</a></li>
|
||||
<li {{if eq .Path "/admin/plugin"}}class="focus"{{end}}><a target="_self" href="/admin/plugin">插件</a></li>
|
||||
<li class="last {{if eq .Path "/admin/theme"}}focus{{end}}"><a target="_self" href="/admin/theme">外观</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
<ul class="root {{if .Write}}focus{{end}}">
|
||||
<li class="parent"><a target="_self" href="/admin/write">撰写</a></dt>
|
||||
</li>
|
||||
<ul class="child">
|
||||
<li class="last"><a target="_self" href="/admin/write">撰写文章</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
<ul class="root {{if .Manage}}focus{{end}}">
|
||||
<li class="parent"><a target="_self" href="/admin/articles">管理</a></dt>
|
||||
</li>
|
||||
<ul class="child">
|
||||
<li><a target="_self" href="/admin/articles">文章</a></li>
|
||||
<li><a target="_self" href="/admin/series">分类</a></li>
|
||||
<li class="last"><a target="_self" href="/admin/tags">标签</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
<ul class="root {{if .Setting}}focus{{end}}">
|
||||
<li class="parent"><a target="_self" href="/admin/setting">设置</a></dt>
|
||||
</li>
|
||||
<ul class="child">
|
||||
<li><a target="_self" href="/admin/setting">基本</a></li>
|
||||
<li class="last"><a target="_self" href="/admin/reading">阅读</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="operate">
|
||||
<a target="_self" title="{{.LastLogin}}" href="/admin/profile" class="author">admin</a><a target="_self" class="exit" href="/admin/login?logout=true">登出</a><a href="/">网站</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main">
|
||||
</div>
|
||||
<div class="typecho-foot" role="contentinfo">
|
||||
<div class="copyright">
|
||||
<a href="http://typecho.org" class="i-logo-s">Typecho</a>
|
||||
<p>由 <a href="http://typecho.org">Typecho</a> 强力驱动, 版本 1.0 (14.10.10)</p>
|
||||
</div>
|
||||
<nav class="resource">
|
||||
<a href="http://docs.typecho.org">帮助文档</a> •
|
||||
<a href="http://forum.typecho.org">支持论坛</a> •
|
||||
<a href="https://github.com/typecho/typecho/issues">报告错误</a> •
|
||||
<a href="http://extends.typecho.org">资源下载</a>
|
||||
</nav>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -1 +0,0 @@
|
||||
none
|
||||
@@ -1,38 +0,0 @@
|
||||
<!Doctype html>
|
||||
<html lang="zh-cn">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" name=viewport>
|
||||
<meta name=robots content="noindex, nofollow">
|
||||
<title>Login | {{.BTitle}}</title>
|
||||
<link rel=stylesheet href="/static/admin/background.css">
|
||||
</head>
|
||||
|
||||
<body class="body-100">
|
||||
<div class="typecho-login-wrap">
|
||||
<div class="typecho-login">
|
||||
<h1><a href="/">{{.BTitle}}</a></h1>
|
||||
<form action="/admin/api/login" method=post>
|
||||
<p>
|
||||
<label for=user class="sr-only">用户名</label>
|
||||
<input type=text id=user name=user value="" placeholder="用户名" class="text-l w-100">
|
||||
</p>
|
||||
<p>
|
||||
<label for=password class="sr-only">密码</label>
|
||||
<input type=password id=password name=password class="text-l w-100" placeholder="密码">
|
||||
</p>
|
||||
<p>
|
||||
<label for=code class="sr-only">两步验证</label>
|
||||
<input type=text id=code name=code class="text-l w-100" placeholder="两步验证">
|
||||
</p>
|
||||
<p class=submit>
|
||||
<button type=submit class="btn btn-l w-100 primary">登录</button>
|
||||
</p>
|
||||
</form>
|
||||
<p class="more-link">管理后台皮肤来自于<a href="http://typecho.org" target=_blank>Typecho</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -1,393 +0,0 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html class="no-js">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>个人设置 - Hello World - Powered by Typecho</title>
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
<link rel="stylesheet" href="http://localhost/admin/css/normalize.css?v=14.10.10">
|
||||
<link rel="stylesheet" href="http://localhost/admin/css/grid.css?v=14.10.10">
|
||||
<link rel="stylesheet" href="http://localhost/admin/css/style.css?v=14.10.10">
|
||||
<!--[if lt IE 9]>
|
||||
<script src="http://localhost/admin/js/html5shiv.js?v=14.10.10"></script>
|
||||
<script src="http://localhost/admin/js/respond.js?v=14.10.10"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!--[if lt IE 9]>
|
||||
<div class="message error browsehappy" role="dialog">当前网页 <strong>不支持</strong> 你正在使用的浏览器. 为了正常的访问, 请 <a href="http://browsehappy.com/">升级你的浏览器</a>.</div>
|
||||
<![endif]-->
|
||||
<div class="typecho-head-nav clearfix" role="navigation">
|
||||
<nav id="typecho-nav-list">
|
||||
<ul class="root focus">
|
||||
<li class="parent"><a target="_self" href="/admin/home">控制台</a></dt>
|
||||
</li>
|
||||
<ul class="child">
|
||||
<li target="_self" class="focus"><a href="/admin/home">概要</a></li>
|
||||
<li><a target="_self" href="/admin/profile">个人设置</a></li>
|
||||
<li><a target="_self" href="/admin/plugin">插件</a></li>
|
||||
<li class="last"><a target="_self" href="/admin/theme">外观</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
<ul class="root">
|
||||
<li class="parent"><a target="_self" href="/admin/write">撰写</a></dt>
|
||||
</li>
|
||||
<ul class="child">
|
||||
<li class="last"><a target="_self" href="/admin/write">撰写文章</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
<ul class="root">
|
||||
<li class="parent"><a target="_self" href="/admin/articles">管理</a></dt>
|
||||
</li>
|
||||
<ul class="child">
|
||||
<li><a target="_self" href="/admin/articles">文章</a></li>
|
||||
<li><a target="_self" href="/admin/categories">分类</a></li>
|
||||
<li class="last"><a target="_self" href="/admin/tags">标签</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
<ul class="root">
|
||||
<li class="parent"><a target="_self" href="/admin/setting">设置</a></dt>
|
||||
</li>
|
||||
<ul class="child">
|
||||
<li><a target="_self" href="/admin/setting">基本</a></li>
|
||||
<li class="last"><a target="_self" href="/admin/reading">阅读</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="operate">
|
||||
<a target="_self" title="最后登录: 7小时前" href="/admin/profile" class="author">admin</a><a target="_self" class="exit" href="/admin/login?logout=true">登出</a><a href="/">网站</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main">
|
||||
<div class="body container">
|
||||
<div class="typecho-page-title">
|
||||
<h2>个人设置</h2>
|
||||
</div>
|
||||
<div class="row typecho-page-main">
|
||||
<div class="col-mb-12 col-tb-3">
|
||||
<p>
|
||||
<a href="http://gravatar.com/emails/" title="在 Gravatar 上修改头像"><img class="profile-avatar" src="http://www.gravatar.com/avatar/20a5844bc608d51cdbe28b74495f809d?s=220&r=X&d=mm" alt="admin" /></a>
|
||||
</p>
|
||||
<h2>admin</h2>
|
||||
<p>admin</p>
|
||||
<p>目前有 <em>2</em> 篇日志, 并有 <em>1</em> 条关于你的评论在 <em>11</em> 个分类中.</p>
|
||||
<p>最后登录: 2天前</p>
|
||||
</div>
|
||||
<div class="col-mb-12 col-tb-6 col-tb-offset-1 typecho-content-panel" role="form">
|
||||
<section>
|
||||
<h3>个人资料</h3>
|
||||
<form action="http://localhost/index.php/action/users-profile?_=48e2b106ce2f611ac20443fb2acdc076" method="post" enctype="application/x-www-form-urlencoded">
|
||||
<ul class="typecho-option" id="typecho-option-item-screenName-0">
|
||||
<li>
|
||||
<label class="typecho-label" for="screenName-0-1">
|
||||
昵称</label>
|
||||
<input id="screenName-0-1" name="screenName" type="text" class="text" value="admin" />
|
||||
<p class="description">
|
||||
用户昵称可以与用户名不同, 用于前台显示.
|
||||
<br />如果你将此项留空, 将默认使用用户名.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="typecho-option" id="typecho-option-item-url-1">
|
||||
<li>
|
||||
<label class="typecho-label" for="url-0-2">
|
||||
个人主页地址</label>
|
||||
<input id="url-0-2" name="url" type="text" class="text" value="http://www.typecho.org" />
|
||||
<p class="description">
|
||||
此用户的个人主页地址, 请用 <code>http://</code> 开头.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="typecho-option" id="typecho-option-item-mail-2">
|
||||
<li>
|
||||
<label class="typecho-label" for="mail-0-3">
|
||||
电子邮箱地址 *</label>
|
||||
<input id="mail-0-3" name="mail" type="text" class="text" value="webmaster@yourdomain.com" />
|
||||
<p class="description">
|
||||
电子邮箱地址将作为此用户的主要联系方式.
|
||||
<br />请不要与系统中现有的电子邮箱地址重复.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="typecho-option" id="typecho-option-item-do-3" style="display:none">
|
||||
<li>
|
||||
<input name="do" type="hidden" value="profile" />
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="typecho-option typecho-option-submit" id="typecho-option-item-submit-4">
|
||||
<li>
|
||||
<button type="submit" class="btn primary">
|
||||
更新我的档案</button>
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
</section>
|
||||
<br>
|
||||
<section id="writing-option">
|
||||
<h3>撰写设置</h3>
|
||||
<form action="http://localhost/index.php/action/users-profile?_=48e2b106ce2f611ac20443fb2acdc076" method="post" enctype="application/x-www-form-urlencoded">
|
||||
<ul class="typecho-option" id="typecho-option-item-markdown-5">
|
||||
<li>
|
||||
<label class="typecho-label">
|
||||
使用 Markdown 语法编辑和解析内容</label>
|
||||
<span>
|
||||
<input name="markdown" type="radio" value="0" id="markdown-0" />
|
||||
<label for="markdown-0">
|
||||
关闭</label>
|
||||
</span>
|
||||
<span>
|
||||
<input name="markdown" type="radio" value="1" id="markdown-1" checked="true" />
|
||||
<label for="markdown-1">
|
||||
打开</label>
|
||||
</span>
|
||||
<p class="description">
|
||||
使用 <a href="http://daringfireball.net/projects/markdown/">Markdown</a> 语法能够使您的撰写过程更加简便直观.
|
||||
<br />此功能开启不会影响以前没有使用 Markdown 语法编辑的内容.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="typecho-option" id="typecho-option-item-autoSave-6">
|
||||
<li>
|
||||
<label class="typecho-label">
|
||||
自动保存</label>
|
||||
<span>
|
||||
<input name="autoSave" type="radio" value="0" id="autoSave-0" checked="true" />
|
||||
<label for="autoSave-0">
|
||||
关闭</label>
|
||||
</span>
|
||||
<span>
|
||||
<input name="autoSave" type="radio" value="1" id="autoSave-1" />
|
||||
<label for="autoSave-1">
|
||||
打开</label>
|
||||
</span>
|
||||
<p class="description">
|
||||
自动保存功能可以更好地保护你的文章不会丢失.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="typecho-option" id="typecho-option-item-defaultAllow-7">
|
||||
<li>
|
||||
<label class="typecho-label">
|
||||
默认允许</label>
|
||||
<span>
|
||||
<input name="defaultAllow[]" type="checkbox" value="comment" id="defaultAllow-comment" checked="true" />
|
||||
<label for="defaultAllow-comment">
|
||||
可以被评论</label>
|
||||
</span>
|
||||
<span>
|
||||
<input name="defaultAllow[]" type="checkbox" value="ping" id="defaultAllow-ping" checked="true" />
|
||||
<label for="defaultAllow-ping">
|
||||
可以被引用</label>
|
||||
</span>
|
||||
<span>
|
||||
<input name="defaultAllow[]" type="checkbox" value="feed" id="defaultAllow-feed" checked="true" />
|
||||
<label for="defaultAllow-feed">
|
||||
出现在聚合中</label>
|
||||
</span>
|
||||
<p class="description">
|
||||
设置你经常使用的默认允许权限</p>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="typecho-option" id="typecho-option-item-do-8" style="display:none">
|
||||
<li>
|
||||
<input name="do" type="hidden" value="options" />
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="typecho-option typecho-option-submit" id="typecho-option-item-submit-9">
|
||||
<li>
|
||||
<button type="submit" class="btn primary">
|
||||
保存设置</button>
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
</section>
|
||||
<br>
|
||||
<section id="change-password">
|
||||
<h3>密码修改</h3>
|
||||
<form action="http://localhost/index.php/action/users-profile?_=48e2b106ce2f611ac20443fb2acdc076" method="post" enctype="application/x-www-form-urlencoded">
|
||||
<ul class="typecho-option" id="typecho-option-item-password-10">
|
||||
<li>
|
||||
<label class="typecho-label" for="password-0-11">
|
||||
用户密码</label>
|
||||
<input id="password-0-11" name="password" type="password" class="w-60" />
|
||||
<p class="description">
|
||||
为此用户分配一个密码.
|
||||
<br />建议使用特殊字符与字母、数字的混编样式,以增加系统安全性.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="typecho-option" id="typecho-option-item-confirm-11">
|
||||
<li>
|
||||
<label class="typecho-label" for="confirm-0-12">
|
||||
用户密码确认</label>
|
||||
<input id="confirm-0-12" name="confirm" type="password" class="w-60" />
|
||||
<p class="description">
|
||||
请确认你的密码, 与上面输入的密码保持一致.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="typecho-option" id="typecho-option-item-do-12" style="display:none">
|
||||
<li>
|
||||
<input name="do" type="hidden" value="password" />
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="typecho-option typecho-option-submit" id="typecho-option-item-submit-13">
|
||||
<li>
|
||||
<button type="submit" class="btn primary">
|
||||
更新密码</button>
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="typecho-foot" role="contentinfo">
|
||||
<div class="copyright">
|
||||
<a href="http://typecho.org" class="i-logo-s">Typecho</a>
|
||||
<p>由 <a href="http://typecho.org">Typecho</a> 强力驱动, 版本 1.0 (14.10.10)</p>
|
||||
</div>
|
||||
<nav class="resource">
|
||||
<a href="http://docs.typecho.org">帮助文档</a> •
|
||||
<a href="http://forum.typecho.org">支持论坛</a> •
|
||||
<a href="https://github.com/typecho/typecho/issues">报告错误</a> •
|
||||
<a href="http://extends.typecho.org">资源下载</a>
|
||||
</nav>
|
||||
</div>
|
||||
<script src="http://localhost/admin/js/jquery.js?v=14.10.10"></script>
|
||||
<script src="http://localhost/admin/js/jquery-ui.js?v=14.10.10"></script>
|
||||
<script src="http://localhost/admin/js/typecho.js?v=14.10.10"></script>
|
||||
<script>
|
||||
(function() {
|
||||
$(document).ready(function() {
|
||||
// 处理消息机制
|
||||
(function() {
|
||||
var prefix = '86a9106ae65537651a8e456835b316ab',
|
||||
cookies = {
|
||||
notice: $.cookie(prefix + '__typecho_notice'),
|
||||
noticeType: $.cookie(prefix + '__typecho_notice_type'),
|
||||
highlight: $.cookie(prefix + '__typecho_notice_highlight')
|
||||
},
|
||||
path = '/';
|
||||
|
||||
if (!!cookies.notice && 'success|notice|error'.indexOf(cookies.noticeType) >= 0) {
|
||||
var head = $('.typecho-head-nav'),
|
||||
p = $('<div class="message popup ' + cookies.noticeType + '">' + '<ul><li>' + $.parseJSON(cookies.notice).join('</li><li>') + '</li></ul></div>'),
|
||||
offset = 0;
|
||||
|
||||
if (head.length > 0) {
|
||||
p.insertAfter(head);
|
||||
offset = head.outerHeight();
|
||||
} else {
|
||||
p.prependTo(document.body);
|
||||
}
|
||||
|
||||
function checkScroll() {
|
||||
if ($(window).scrollTop() >= offset) {
|
||||
p.css({
|
||||
'position': 'fixed',
|
||||
'top': 0
|
||||
});
|
||||
} else {
|
||||
p.css({
|
||||
'position': 'absolute',
|
||||
'top': offset
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
$(window).scroll(function() {
|
||||
checkScroll();
|
||||
});
|
||||
|
||||
checkScroll();
|
||||
|
||||
p.slideDown(function() {
|
||||
var t = $(this),
|
||||
color = '#C6D880';
|
||||
|
||||
if (t.hasClass('error')) {
|
||||
color = '#FBC2C4';
|
||||
} else if (t.hasClass('notice')) {
|
||||
color = '#FFD324';
|
||||
}
|
||||
|
||||
t.effect('highlight', {
|
||||
color: color
|
||||
})
|
||||
.delay(5000).slideUp(function() {
|
||||
$(this).remove();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
$.cookie(prefix + '__typecho_notice', null, {
|
||||
path: path
|
||||
});
|
||||
$.cookie(prefix + '__typecho_notice_type', null, {
|
||||
path: path
|
||||
});
|
||||
}
|
||||
|
||||
if (cookies.highlight) {
|
||||
$('#' + cookies.highlight).effect('highlight', 1000);
|
||||
$.cookie(prefix + '__typecho_notice_highlight', null, {
|
||||
path: path
|
||||
});
|
||||
}
|
||||
})();
|
||||
|
||||
|
||||
// 导航菜单 tab 聚焦时展开下拉菜单
|
||||
(function() {
|
||||
$('#typecho-nav-list').find('.parent a').focus(function() {
|
||||
$('#typecho-nav-list').find('.child').hide();
|
||||
$(this).parents('.root').find('.child').show();
|
||||
});
|
||||
$('.operate').find('a').focus(function() {
|
||||
$('#typecho-nav-list').find('.child').hide();
|
||||
});
|
||||
})();
|
||||
|
||||
|
||||
if ($('.typecho-login').length == 0) {
|
||||
$('a').each(function() {
|
||||
var t = $(this),
|
||||
href = t.attr('href');
|
||||
|
||||
if ((href && href[0] == '#') || /^http\:\/\/localhost\/admin\/.*$/.exec(href) || /^http\:\/\/localhost\/index\.php\/action\/[_a-zA-Z0-9\/]+.*$/.exec(href)) {
|
||||
return;
|
||||
}
|
||||
|
||||
t.attr('target', '_blank');
|
||||
});
|
||||
}
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
<script>
|
||||
(function() {
|
||||
$(document).ready(function() {
|
||||
var error = $('.typecho-option .error:first');
|
||||
|
||||
if (error.length > 0) {
|
||||
$('html,body').scrollTop(error.parents('.typecho-option').offset().top);
|
||||
}
|
||||
|
||||
$('form').submit(function() {
|
||||
if (this.submitted) {
|
||||
return false;
|
||||
} else {
|
||||
this.submitted = true;
|
||||
}
|
||||
});
|
||||
|
||||
$('label input[type=text]').click(function(e) {
|
||||
var check = $('#' + $(this).parents('label').attr('for'));
|
||||
check.prop('checked', true);
|
||||
return false;
|
||||
});
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -1,311 +0,0 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html class="no-js">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>阅读设置 - Hello World - Powered by Typecho</title>
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
<link rel="stylesheet" href="http://localhost/admin/css/normalize.css?v=14.10.10">
|
||||
<link rel="stylesheet" href="http://localhost/admin/css/grid.css?v=14.10.10">
|
||||
<link rel="stylesheet" href="http://localhost/admin/css/style.css?v=14.10.10">
|
||||
<!--[if lt IE 9]>
|
||||
<script src="http://localhost/admin/js/html5shiv.js?v=14.10.10"></script>
|
||||
<script src="http://localhost/admin/js/respond.js?v=14.10.10"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!--[if lt IE 9]>
|
||||
<div class="message error browsehappy" role="dialog">当前网页 <strong>不支持</strong> 你正在使用的浏览器. 为了正常的访问, 请 <a href="http://browsehappy.com/">升级你的浏览器</a>.</div>
|
||||
<![endif]-->
|
||||
<div class="typecho-head-nav clearfix" role="navigation">
|
||||
<nav id="typecho-nav-list">
|
||||
<ul class="root focus">
|
||||
<li class="parent"><a target="_self" href="/admin/home">控制台</a></dt>
|
||||
</li>
|
||||
<ul class="child">
|
||||
<li target="_self" class="focus"><a href="/admin/home">概要</a></li>
|
||||
<li><a target="_self" href="/admin/profile">个人设置</a></li>
|
||||
<li><a target="_self" href="/admin/plugin">插件</a></li>
|
||||
<li class="last"><a target="_self" href="/admin/theme">外观</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
<ul class="root">
|
||||
<li class="parent"><a target="_self" href="/admin/write">撰写</a></dt>
|
||||
</li>
|
||||
<ul class="child">
|
||||
<li class="last"><a target="_self" href="/admin/write">撰写文章</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
<ul class="root">
|
||||
<li class="parent"><a target="_self" href="/admin/articles">管理</a></dt>
|
||||
</li>
|
||||
<ul class="child">
|
||||
<li><a target="_self" href="/admin/articles">文章</a></li>
|
||||
<li><a target="_self" href="/admin/categories">分类</a></li>
|
||||
<li class="last"><a target="_self" href="/admin/tags">标签</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
<ul class="root">
|
||||
<li class="parent"><a target="_self" href="/admin/setting">设置</a></dt>
|
||||
</li>
|
||||
<ul class="child">
|
||||
<li><a target="_self" href="/admin/setting">基本</a></li>
|
||||
<li class="last"><a target="_self" href="/admin/reading">阅读</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="operate">
|
||||
<a target="_self" title="最后登录: 7小时前" href="/admin/profile" class="author">admin</a><a target="_self" class="exit" href="/admin/login?logout=true">登出</a><a href="/">网站</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main">
|
||||
<div class="body container">
|
||||
<div class="typecho-page-title">
|
||||
<h2>阅读设置</h2>
|
||||
</div>
|
||||
<div class="row typecho-page-main" role="form">
|
||||
<div class="col-mb-12 col-tb-8 col-tb-offset-2">
|
||||
<form action="http://localhost/index.php/action/options-reading?_=e53d9ccaafcd7253533d0586ebb24d30" method="post" enctype="application/x-www-form-urlencoded">
|
||||
<ul class="typecho-option" id="typecho-option-item-postDateFormat-0">
|
||||
<li>
|
||||
<label class="typecho-label" for="postDateFormat-0-1">
|
||||
文章日期格式</label>
|
||||
<input id="postDateFormat-0-1" name="postDateFormat" type="text" class="w-40 mono" value="Y-m-d" />
|
||||
<p class="description">
|
||||
此格式用于指定显示在文章归档中的日期默认显示格式.
|
||||
<br />在某些主题中这个格式可能不会生效, 因为主题作者可以自定义日期格式.
|
||||
<br />请参考 <a href="http://www.php.net/manual/zh/function.date.php">PHP 日期格式写法</a>.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="typecho-option" id="typecho-option-item-frontPage-1">
|
||||
<li>
|
||||
<label class="typecho-label">
|
||||
站点首页</label>
|
||||
<span class="multiline">
|
||||
<input name="frontPage" type="radio" value="recent" id="frontPage-recent" checked="true" />
|
||||
<label for="frontPage-recent">
|
||||
显示最新发布的文章</label>
|
||||
</span>
|
||||
<span class="multiline">
|
||||
<input name="frontPage" type="radio" value="page" id="frontPage-page" />
|
||||
<label for="frontPage-page">
|
||||
使用 </label><select name="frontPagePage" id="frontPage-frontPagePage"><option value="2">关于</option></select><label for="frontPage-frontPagePage"> 页面作为首页</label></span><span class="multiline front-archive hidden"><input type="checkbox" id="frontArchive" name="frontArchive" value="1" />
|
||||
<label for="frontArchive">同时将文章列表页路径更改为 <input type="text" name="archivePattern" class="w-20 mono" value="/blog/" /></label></label>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="typecho-option" id="typecho-option-item-postsListSize-2">
|
||||
<li>
|
||||
<label class="typecho-label" for="postsListSize-0-3">
|
||||
文章列表数目</label>
|
||||
<input id="postsListSize-0-3" name="postsListSize" type="text" class="w-20" value="10" />
|
||||
<p class="description">
|
||||
此数目用于指定显示在侧边栏中的文章列表数目.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="typecho-option" id="typecho-option-item-pageSize-3">
|
||||
<li>
|
||||
<label class="typecho-label" for="pageSize-0-4">
|
||||
每页文章数目</label>
|
||||
<input id="pageSize-0-4" name="pageSize" type="text" class="w-20" value="5" />
|
||||
<p class="description">
|
||||
此数目用于指定文章归档输出时每页显示的文章数目.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="typecho-option" id="typecho-option-item-feedFullText-4">
|
||||
<li>
|
||||
<label class="typecho-label">
|
||||
聚合全文输出</label>
|
||||
<span>
|
||||
<input name="feedFullText" type="radio" value="0" id="feedFullText-0" />
|
||||
<label for="feedFullText-0">
|
||||
仅输出摘要</label>
|
||||
</span>
|
||||
<span>
|
||||
<input name="feedFullText" type="radio" value="1" id="feedFullText-1" checked="true" />
|
||||
<label for="feedFullText-1">
|
||||
全文输出</label>
|
||||
</span>
|
||||
<p class="description">
|
||||
如果你不希望在聚合中输出文章全文,请使用仅输出摘要选项.
|
||||
<br />摘要的文字取决于你在文章中使用分隔符的位置.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="typecho-option typecho-option-submit" id="typecho-option-item-submit-5">
|
||||
<li>
|
||||
<button type="submit" class="btn primary">
|
||||
保存设置</button>
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="typecho-foot" role="contentinfo">
|
||||
<div class="copyright">
|
||||
<a href="http://typecho.org" class="i-logo-s">Typecho</a>
|
||||
<p>由 <a href="http://typecho.org">Typecho</a> 强力驱动, 版本 1.0 (14.10.10)</p>
|
||||
</div>
|
||||
<nav class="resource">
|
||||
<a href="http://docs.typecho.org">帮助文档</a> •
|
||||
<a href="http://forum.typecho.org">支持论坛</a> •
|
||||
<a href="https://github.com/typecho/typecho/issues">报告错误</a> •
|
||||
<a href="http://extends.typecho.org">资源下载</a>
|
||||
</nav>
|
||||
</div>
|
||||
<script src="http://localhost/admin/js/jquery.js?v=14.10.10"></script>
|
||||
<script src="http://localhost/admin/js/jquery-ui.js?v=14.10.10"></script>
|
||||
<script src="http://localhost/admin/js/typecho.js?v=14.10.10"></script>
|
||||
<script>
|
||||
(function() {
|
||||
$(document).ready(function() {
|
||||
// 处理消息机制
|
||||
(function() {
|
||||
var prefix = '86a9106ae65537651a8e456835b316ab',
|
||||
cookies = {
|
||||
notice: $.cookie(prefix + '__typecho_notice'),
|
||||
noticeType: $.cookie(prefix + '__typecho_notice_type'),
|
||||
highlight: $.cookie(prefix + '__typecho_notice_highlight')
|
||||
},
|
||||
path = '/';
|
||||
|
||||
if (!!cookies.notice && 'success|notice|error'.indexOf(cookies.noticeType) >= 0) {
|
||||
var head = $('.typecho-head-nav'),
|
||||
p = $('<div class="message popup ' + cookies.noticeType + '">' + '<ul><li>' + $.parseJSON(cookies.notice).join('</li><li>') + '</li></ul></div>'),
|
||||
offset = 0;
|
||||
|
||||
if (head.length > 0) {
|
||||
p.insertAfter(head);
|
||||
offset = head.outerHeight();
|
||||
} else {
|
||||
p.prependTo(document.body);
|
||||
}
|
||||
|
||||
function checkScroll() {
|
||||
if ($(window).scrollTop() >= offset) {
|
||||
p.css({
|
||||
'position': 'fixed',
|
||||
'top': 0
|
||||
});
|
||||
} else {
|
||||
p.css({
|
||||
'position': 'absolute',
|
||||
'top': offset
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
$(window).scroll(function() {
|
||||
checkScroll();
|
||||
});
|
||||
|
||||
checkScroll();
|
||||
|
||||
p.slideDown(function() {
|
||||
var t = $(this),
|
||||
color = '#C6D880';
|
||||
|
||||
if (t.hasClass('error')) {
|
||||
color = '#FBC2C4';
|
||||
} else if (t.hasClass('notice')) {
|
||||
color = '#FFD324';
|
||||
}
|
||||
|
||||
t.effect('highlight', {
|
||||
color: color
|
||||
})
|
||||
.delay(5000).slideUp(function() {
|
||||
$(this).remove();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
$.cookie(prefix + '__typecho_notice', null, {
|
||||
path: path
|
||||
});
|
||||
$.cookie(prefix + '__typecho_notice_type', null, {
|
||||
path: path
|
||||
});
|
||||
}
|
||||
|
||||
if (cookies.highlight) {
|
||||
$('#' + cookies.highlight).effect('highlight', 1000);
|
||||
$.cookie(prefix + '__typecho_notice_highlight', null, {
|
||||
path: path
|
||||
});
|
||||
}
|
||||
})();
|
||||
|
||||
|
||||
// 导航菜单 tab 聚焦时展开下拉菜单
|
||||
(function() {
|
||||
$('#typecho-nav-list').find('.parent a').focus(function() {
|
||||
$('#typecho-nav-list').find('.child').hide();
|
||||
$(this).parents('.root').find('.child').show();
|
||||
});
|
||||
$('.operate').find('a').focus(function() {
|
||||
$('#typecho-nav-list').find('.child').hide();
|
||||
});
|
||||
})();
|
||||
|
||||
|
||||
if ($('.typecho-login').length == 0) {
|
||||
$('a').each(function() {
|
||||
var t = $(this),
|
||||
href = t.attr('href');
|
||||
|
||||
if ((href && href[0] == '#') || /^http\:\/\/localhost\/admin\/.*$/.exec(href) || /^http\:\/\/localhost\/index\.php\/action\/[_a-zA-Z0-9\/]+.*$/.exec(href)) {
|
||||
return;
|
||||
}
|
||||
|
||||
t.attr('target', '_blank');
|
||||
});
|
||||
}
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
<script>
|
||||
(function() {
|
||||
$(document).ready(function() {
|
||||
var error = $('.typecho-option .error:first');
|
||||
|
||||
if (error.length > 0) {
|
||||
$('html,body').scrollTop(error.parents('.typecho-option').offset().top);
|
||||
}
|
||||
|
||||
$('form').submit(function() {
|
||||
if (this.submitted) {
|
||||
return false;
|
||||
} else {
|
||||
this.submitted = true;
|
||||
}
|
||||
});
|
||||
|
||||
$('label input[type=text]').click(function(e) {
|
||||
var check = $('#' + $(this).parents('label').attr('for'));
|
||||
check.prop('checked', true);
|
||||
return false;
|
||||
});
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
<script>
|
||||
$('#frontPage-recent,#frontPage-page,#frontPage-file').change(function() {
|
||||
var t = $(this);
|
||||
if (t.prop('checked')) {
|
||||
if ('frontPage-recent' == t.attr('id')) {
|
||||
$('.front-archive').addClass('hidden');
|
||||
} else {
|
||||
$('.front-archive').insertAfter(t.parent()).removeClass('hidden');
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -1,480 +0,0 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html class="no-js">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>管理分类 - Hello World - Powered by Typecho</title>
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
<link rel="stylesheet" href="http://localhost/admin/css/normalize.css?v=14.10.10">
|
||||
<link rel="stylesheet" href="http://localhost/admin/css/grid.css?v=14.10.10">
|
||||
<link rel="stylesheet" href="http://localhost/admin/css/style.css?v=14.10.10">
|
||||
<!--[if lt IE 9]>
|
||||
<script src="http://localhost/admin/js/html5shiv.js?v=14.10.10"></script>
|
||||
<script src="http://localhost/admin/js/respond.js?v=14.10.10"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!--[if lt IE 9]>
|
||||
<div class="message error browsehappy" role="dialog">当前网页 <strong>不支持</strong> 你正在使用的浏览器. 为了正常的访问, 请 <a href="http://browsehappy.com/">升级你的浏览器</a>.</div>
|
||||
<![endif]-->
|
||||
<div class="typecho-head-nav clearfix" role="navigation">
|
||||
<nav id="typecho-nav-list">
|
||||
<ul class="root focus">
|
||||
<li class="parent"><a target="_self" href="/admin/home">控制台</a></dt>
|
||||
</li>
|
||||
<ul class="child">
|
||||
<li target="_self" class="focus"><a href="/admin/home">概要</a></li>
|
||||
<li><a target="_self" href="/admin/profile">个人设置</a></li>
|
||||
<li><a target="_self" href="/admin/plugin">插件</a></li>
|
||||
<li class="last"><a target="_self" href="/admin/theme">外观</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
<ul class="root">
|
||||
<li class="parent"><a target="_self" href="/admin/write">撰写</a></dt>
|
||||
</li>
|
||||
<ul class="child">
|
||||
<li class="last"><a target="_self" href="/admin/write">撰写文章</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
<ul class="root">
|
||||
<li class="parent"><a target="_self" href="/admin/articles">管理</a></dt>
|
||||
</li>
|
||||
<ul class="child">
|
||||
<li><a target="_self" href="/admin/articles">文章</a></li>
|
||||
<li><a target="_self" href="/admin/categories">分类</a></li>
|
||||
<li class="last"><a target="_self" href="/admin/tags">标签</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
<ul class="root">
|
||||
<li class="parent"><a target="_self" href="/admin/setting">设置</a></dt>
|
||||
</li>
|
||||
<ul class="child">
|
||||
<li><a target="_self" href="/admin/setting">基本</a></li>
|
||||
<li class="last"><a target="_self" href="/admin/reading">阅读</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="operate">
|
||||
<a target="_self" title="最后登录: 7小时前" href="/admin/profile" class="author">admin</a><a target="_self" class="exit" href="/admin/login?logout=true">登出</a><a href="/">网站</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main">
|
||||
<div class="body container">
|
||||
<div class="typecho-page-title">
|
||||
<h2>管理分类<a href="http://localhost/admin/category.php">新增</a></h2>
|
||||
</div>
|
||||
<div class="row typecho-page-main manage-metas">
|
||||
<div class="col-mb-12" role="main">
|
||||
<form method="post" name="manage_categories" class="operate-form">
|
||||
<div class="typecho-list-operate clearfix">
|
||||
<div class="operate">
|
||||
<label><i class="sr-only">全选</i>
|
||||
<input type="checkbox" class="typecho-table-select-all" />
|
||||
</label>
|
||||
<div class="btn-group btn-drop">
|
||||
<button class="btn dropdown-toggle btn-s" type="button"><i class="sr-only">操作</i>选中项 <i class="i-caret-down"></i></button>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a lang="此分类下的所有内容将被删除, 你确认要删除这些分类吗?" href="http://localhost/index.php/action/metas-category-edit?do=delete&_=7fe4662ec063c94e7072ce37ddbe3abc">删除</a></li>
|
||||
<li><a lang="刷新分类可能需要等待较长时间, 你确认要刷新这些分类吗?" href="http://localhost/index.php/action/metas-category-edit?do=refresh&_=7fe4662ec063c94e7072ce37ddbe3abc">刷新</a></li>
|
||||
<li class="multiline">
|
||||
<button type="button" class="btn merge btn-s" rel="http://localhost/index.php/action/metas-category-edit?do=merge&_=7fe4662ec063c94e7072ce37ddbe3abc">合并到</button>
|
||||
<select name="merge">
|
||||
<option value="1">默认分类</option>
|
||||
<option value="2">232</option>
|
||||
<option value="3">234</option>
|
||||
<option value="4">2</option>
|
||||
<option value="5">4</option>
|
||||
<option value="6">3</option>
|
||||
<option value="7">5</option>
|
||||
<option value="8">6</option>
|
||||
<option value="9">7</option>
|
||||
<option value="10">8</option>
|
||||
<option value="11">9</option>
|
||||
</select>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="search" role="search">
|
||||
</div>
|
||||
</div>
|
||||
<div class="typecho-table-wrap">
|
||||
<table class="typecho-list-table">
|
||||
<colgroup>
|
||||
<col width="20" />
|
||||
<col width="30%" />
|
||||
<col width="15%" />
|
||||
<col width="25%" />
|
||||
<col width="" />
|
||||
<col width="10%" />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr class="nodrag">
|
||||
<th> </th>
|
||||
<th>名称</th>
|
||||
<th>子分类</th>
|
||||
<th>缩略名</th>
|
||||
<th> </th>
|
||||
<th>文章数</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr id="mid-category-1">
|
||||
<td>
|
||||
<input type="checkbox" value="1" name="mid[]" />
|
||||
</td>
|
||||
<td><a href="http://localhost/admin/category.php?mid=1">默认分类</a>
|
||||
<a href="http://localhost/index.php/category/default/" title="浏览 默认分类"><i class="i-exlink"></i></a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="http://localhost/admin/category.php?parent=1">新增</a>
|
||||
</td>
|
||||
<td>default</td>
|
||||
<td>
|
||||
默认 </td>
|
||||
<td><a class="balloon-button left size-10" href="http://localhost/admin/manage-posts.php?category=1">2</a></td>
|
||||
</tr>
|
||||
<tr id="mid-category-2">
|
||||
<td>
|
||||
<input type="checkbox" value="2" name="mid[]" />
|
||||
</td>
|
||||
<td><a href="http://localhost/admin/category.php?mid=2">232</a>
|
||||
<a href="http://localhost/index.php/category/2342/" title="浏览 232"><i class="i-exlink"></i></a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="http://localhost/admin/category.php?parent=2">新增</a>
|
||||
</td>
|
||||
<td>2342</td>
|
||||
<td>
|
||||
<a class="hidden-by-mouse" href="http://localhost/index.php/action/metas-category-edit?do=default&mid=2&_=7fe4662ec063c94e7072ce37ddbe3abc" title="设为默认">默认</a>
|
||||
</td>
|
||||
<td><a class="balloon-button left size-1" href="http://localhost/admin/manage-posts.php?category=2">0</a></td>
|
||||
</tr>
|
||||
<tr id="mid-category-3">
|
||||
<td>
|
||||
<input type="checkbox" value="3" name="mid[]" />
|
||||
</td>
|
||||
<td><a href="http://localhost/admin/category.php?mid=3">234</a>
|
||||
<a href="http://localhost/index.php/category/23423/" title="浏览 234"><i class="i-exlink"></i></a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="http://localhost/admin/category.php?parent=3">新增</a>
|
||||
</td>
|
||||
<td>23423</td>
|
||||
<td>
|
||||
<a class="hidden-by-mouse" href="http://localhost/index.php/action/metas-category-edit?do=default&mid=3&_=7fe4662ec063c94e7072ce37ddbe3abc" title="设为默认">默认</a>
|
||||
</td>
|
||||
<td><a class="balloon-button left size-1" href="http://localhost/admin/manage-posts.php?category=3">0</a></td>
|
||||
</tr>
|
||||
<tr id="mid-category-4">
|
||||
<td>
|
||||
<input type="checkbox" value="4" name="mid[]" />
|
||||
</td>
|
||||
<td><a href="http://localhost/admin/category.php?mid=4">2</a>
|
||||
<a href="http://localhost/index.php/category/2/" title="浏览 2"><i class="i-exlink"></i></a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="http://localhost/admin/category.php?parent=4">新增</a>
|
||||
</td>
|
||||
<td>2</td>
|
||||
<td>
|
||||
<a class="hidden-by-mouse" href="http://localhost/index.php/action/metas-category-edit?do=default&mid=4&_=7fe4662ec063c94e7072ce37ddbe3abc" title="设为默认">默认</a>
|
||||
</td>
|
||||
<td><a class="balloon-button left size-1" href="http://localhost/admin/manage-posts.php?category=4">0</a></td>
|
||||
</tr>
|
||||
<tr id="mid-category-5">
|
||||
<td>
|
||||
<input type="checkbox" value="5" name="mid[]" />
|
||||
</td>
|
||||
<td><a href="http://localhost/admin/category.php?mid=5">4</a>
|
||||
<a href="http://localhost/index.php/category/4/" title="浏览 4"><i class="i-exlink"></i></a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="http://localhost/admin/category.php?parent=5">新增</a>
|
||||
</td>
|
||||
<td>4</td>
|
||||
<td>
|
||||
<a class="hidden-by-mouse" href="http://localhost/index.php/action/metas-category-edit?do=default&mid=5&_=7fe4662ec063c94e7072ce37ddbe3abc" title="设为默认">默认</a>
|
||||
</td>
|
||||
<td><a class="balloon-button left size-1" href="http://localhost/admin/manage-posts.php?category=5">0</a></td>
|
||||
</tr>
|
||||
<tr id="mid-category-6">
|
||||
<td>
|
||||
<input type="checkbox" value="6" name="mid[]" />
|
||||
</td>
|
||||
<td><a href="http://localhost/admin/category.php?mid=6">3</a>
|
||||
<a href="http://localhost/index.php/category/3/" title="浏览 3"><i class="i-exlink"></i></a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="http://localhost/admin/category.php?parent=6">新增</a>
|
||||
</td>
|
||||
<td>3</td>
|
||||
<td>
|
||||
<a class="hidden-by-mouse" href="http://localhost/index.php/action/metas-category-edit?do=default&mid=6&_=7fe4662ec063c94e7072ce37ddbe3abc" title="设为默认">默认</a>
|
||||
</td>
|
||||
<td><a class="balloon-button left size-1" href="http://localhost/admin/manage-posts.php?category=6">0</a></td>
|
||||
</tr>
|
||||
<tr id="mid-category-7">
|
||||
<td>
|
||||
<input type="checkbox" value="7" name="mid[]" />
|
||||
</td>
|
||||
<td><a href="http://localhost/admin/category.php?mid=7">5</a>
|
||||
<a href="http://localhost/index.php/category/5/" title="浏览 5"><i class="i-exlink"></i></a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="http://localhost/admin/category.php?parent=7">新增</a>
|
||||
</td>
|
||||
<td>5</td>
|
||||
<td>
|
||||
<a class="hidden-by-mouse" href="http://localhost/index.php/action/metas-category-edit?do=default&mid=7&_=7fe4662ec063c94e7072ce37ddbe3abc" title="设为默认">默认</a>
|
||||
</td>
|
||||
<td><a class="balloon-button left size-1" href="http://localhost/admin/manage-posts.php?category=7">0</a></td>
|
||||
</tr>
|
||||
<tr id="mid-category-8">
|
||||
<td>
|
||||
<input type="checkbox" value="8" name="mid[]" />
|
||||
</td>
|
||||
<td><a href="http://localhost/admin/category.php?mid=8">6</a>
|
||||
<a href="http://localhost/index.php/category/6/" title="浏览 6"><i class="i-exlink"></i></a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="http://localhost/admin/category.php?parent=8">新增</a>
|
||||
</td>
|
||||
<td>6</td>
|
||||
<td>
|
||||
<a class="hidden-by-mouse" href="http://localhost/index.php/action/metas-category-edit?do=default&mid=8&_=7fe4662ec063c94e7072ce37ddbe3abc" title="设为默认">默认</a>
|
||||
</td>
|
||||
<td><a class="balloon-button left size-1" href="http://localhost/admin/manage-posts.php?category=8">0</a></td>
|
||||
</tr>
|
||||
<tr id="mid-category-9">
|
||||
<td>
|
||||
<input type="checkbox" value="9" name="mid[]" />
|
||||
</td>
|
||||
<td><a href="http://localhost/admin/category.php?mid=9">7</a>
|
||||
<a href="http://localhost/index.php/category/7/" title="浏览 7"><i class="i-exlink"></i></a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="http://localhost/admin/category.php?parent=9">新增</a>
|
||||
</td>
|
||||
<td>7</td>
|
||||
<td>
|
||||
<a class="hidden-by-mouse" href="http://localhost/index.php/action/metas-category-edit?do=default&mid=9&_=7fe4662ec063c94e7072ce37ddbe3abc" title="设为默认">默认</a>
|
||||
</td>
|
||||
<td><a class="balloon-button left size-1" href="http://localhost/admin/manage-posts.php?category=9">0</a></td>
|
||||
</tr>
|
||||
<tr id="mid-category-10">
|
||||
<td>
|
||||
<input type="checkbox" value="10" name="mid[]" />
|
||||
</td>
|
||||
<td><a href="http://localhost/admin/category.php?mid=10">8</a>
|
||||
<a href="http://localhost/index.php/category/8/" title="浏览 8"><i class="i-exlink"></i></a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="http://localhost/admin/category.php?parent=10">新增</a>
|
||||
</td>
|
||||
<td>8</td>
|
||||
<td>
|
||||
<a class="hidden-by-mouse" href="http://localhost/index.php/action/metas-category-edit?do=default&mid=10&_=7fe4662ec063c94e7072ce37ddbe3abc" title="设为默认">默认</a>
|
||||
</td>
|
||||
<td><a class="balloon-button left size-1" href="http://localhost/admin/manage-posts.php?category=10">0</a></td>
|
||||
</tr>
|
||||
<tr id="mid-category-11">
|
||||
<td>
|
||||
<input type="checkbox" value="11" name="mid[]" />
|
||||
</td>
|
||||
<td><a href="http://localhost/admin/category.php?mid=11">9</a>
|
||||
<a href="http://localhost/index.php/category/9/" title="浏览 9"><i class="i-exlink"></i></a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="http://localhost/admin/category.php?parent=11">新增</a>
|
||||
</td>
|
||||
<td>9</td>
|
||||
<td>
|
||||
<a class="hidden-by-mouse" href="http://localhost/index.php/action/metas-category-edit?do=default&mid=11&_=7fe4662ec063c94e7072ce37ddbe3abc" title="设为默认">默认</a>
|
||||
</td>
|
||||
<td><a class="balloon-button left size-1" href="http://localhost/admin/manage-posts.php?category=11">0</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="typecho-foot" role="contentinfo">
|
||||
<div class="copyright">
|
||||
<a href="http://typecho.org" class="i-logo-s">Typecho</a>
|
||||
<p>由 <a href="http://typecho.org">Typecho</a> 强力驱动, 版本 1.0 (14.10.10)</p>
|
||||
</div>
|
||||
<nav class="resource">
|
||||
<a href="http://docs.typecho.org">帮助文档</a> •
|
||||
<a href="http://forum.typecho.org">支持论坛</a> •
|
||||
<a href="https://github.com/typecho/typecho/issues">报告错误</a> •
|
||||
<a href="http://extends.typecho.org">资源下载</a>
|
||||
</nav>
|
||||
</div>
|
||||
<script src="http://localhost/admin/js/jquery.js?v=14.10.10"></script>
|
||||
<script src="http://localhost/admin/js/jquery-ui.js?v=14.10.10"></script>
|
||||
<script src="http://localhost/admin/js/typecho.js?v=14.10.10"></script>
|
||||
<script>
|
||||
(function() {
|
||||
$(document).ready(function() {
|
||||
// 处理消息机制
|
||||
(function() {
|
||||
var prefix = '86a9106ae65537651a8e456835b316ab',
|
||||
cookies = {
|
||||
notice: $.cookie(prefix + '__typecho_notice'),
|
||||
noticeType: $.cookie(prefix + '__typecho_notice_type'),
|
||||
highlight: $.cookie(prefix + '__typecho_notice_highlight')
|
||||
},
|
||||
path = '/';
|
||||
|
||||
if (!!cookies.notice && 'success|notice|error'.indexOf(cookies.noticeType) >= 0) {
|
||||
var head = $('.typecho-head-nav'),
|
||||
p = $('<div class="message popup ' + cookies.noticeType + '">' + '<ul><li>' + $.parseJSON(cookies.notice).join('</li><li>') + '</li></ul></div>'),
|
||||
offset = 0;
|
||||
|
||||
if (head.length > 0) {
|
||||
p.insertAfter(head);
|
||||
offset = head.outerHeight();
|
||||
} else {
|
||||
p.prependTo(document.body);
|
||||
}
|
||||
|
||||
function checkScroll() {
|
||||
if ($(window).scrollTop() >= offset) {
|
||||
p.css({
|
||||
'position': 'fixed',
|
||||
'top': 0
|
||||
});
|
||||
} else {
|
||||
p.css({
|
||||
'position': 'absolute',
|
||||
'top': offset
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
$(window).scroll(function() {
|
||||
checkScroll();
|
||||
});
|
||||
|
||||
checkScroll();
|
||||
|
||||
p.slideDown(function() {
|
||||
var t = $(this),
|
||||
color = '#C6D880';
|
||||
|
||||
if (t.hasClass('error')) {
|
||||
color = '#FBC2C4';
|
||||
} else if (t.hasClass('notice')) {
|
||||
color = '#FFD324';
|
||||
}
|
||||
|
||||
t.effect('highlight', {
|
||||
color: color
|
||||
})
|
||||
.delay(5000).slideUp(function() {
|
||||
$(this).remove();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
$.cookie(prefix + '__typecho_notice', null, {
|
||||
path: path
|
||||
});
|
||||
$.cookie(prefix + '__typecho_notice_type', null, {
|
||||
path: path
|
||||
});
|
||||
}
|
||||
|
||||
if (cookies.highlight) {
|
||||
$('#' + cookies.highlight).effect('highlight', 1000);
|
||||
$.cookie(prefix + '__typecho_notice_highlight', null, {
|
||||
path: path
|
||||
});
|
||||
}
|
||||
})();
|
||||
|
||||
|
||||
// 导航菜单 tab 聚焦时展开下拉菜单
|
||||
(function() {
|
||||
$('#typecho-nav-list').find('.parent a').focus(function() {
|
||||
$('#typecho-nav-list').find('.child').hide();
|
||||
$(this).parents('.root').find('.child').show();
|
||||
});
|
||||
$('.operate').find('a').focus(function() {
|
||||
$('#typecho-nav-list').find('.child').hide();
|
||||
});
|
||||
})();
|
||||
|
||||
|
||||
if ($('.typecho-login').length == 0) {
|
||||
$('a').each(function() {
|
||||
var t = $(this),
|
||||
href = t.attr('href');
|
||||
|
||||
if ((href && href[0] == '#') || /^http\:\/\/localhost\/admin\/.*$/.exec(href) || /^http\:\/\/localhost\/index\.php\/action\/[_a-zA-Z0-9\/]+.*$/.exec(href)) {
|
||||
return;
|
||||
}
|
||||
|
||||
t.attr('target', '_blank');
|
||||
});
|
||||
}
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
(function() {
|
||||
$(document).ready(function() {
|
||||
var table = $('.typecho-list-table').tableDnD({
|
||||
onDrop: function() {
|
||||
var ids = [];
|
||||
|
||||
$('input[type=checkbox]', table).each(function() {
|
||||
ids.push($(this).val());
|
||||
});
|
||||
|
||||
$.post('http://localhost/index.php/action/metas-category-edit?do=sort&_=7fe4662ec063c94e7072ce37ddbe3abc',
|
||||
$.param({
|
||||
mid: ids
|
||||
}));
|
||||
|
||||
$('tr', table).each(function(i) {
|
||||
if (i % 2) {
|
||||
$(this).addClass('even');
|
||||
} else {
|
||||
$(this).removeClass('even');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
table.tableSelectable({
|
||||
checkEl: 'input[type=checkbox]',
|
||||
rowEl: 'tr',
|
||||
selectAllEl: '.typecho-table-select-all',
|
||||
actionEl: '.dropdown-menu a'
|
||||
});
|
||||
|
||||
$('.btn-drop').dropdownMenu({
|
||||
btnEl: '.dropdown-toggle',
|
||||
menuEl: '.dropdown-menu'
|
||||
});
|
||||
|
||||
$('.dropdown-menu button.merge').click(function() {
|
||||
var btn = $(this);
|
||||
btn.parents('form').attr('action', btn.attr('rel')).submit();
|
||||
});
|
||||
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -1,374 +0,0 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html class="no-js">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>基本设置 - Hello World - Powered by Typecho</title>
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
<link rel="stylesheet" href="http://localhost/admin/css/normalize.css?v=14.10.10">
|
||||
<link rel="stylesheet" href="http://localhost/admin/css/grid.css?v=14.10.10">
|
||||
<link rel="stylesheet" href="http://localhost/admin/css/style.css?v=14.10.10">
|
||||
<!--[if lt IE 9]>
|
||||
<script src="http://localhost/admin/js/html5shiv.js?v=14.10.10"></script>
|
||||
<script src="http://localhost/admin/js/respond.js?v=14.10.10"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!--[if lt IE 9]>
|
||||
<div class="message error browsehappy" role="dialog">当前网页 <strong>不支持</strong> 你正在使用的浏览器. 为了正常的访问, 请 <a href="http://browsehappy.com/">升级你的浏览器</a>.</div>
|
||||
<![endif]-->
|
||||
<div class="typecho-head-nav clearfix" role="navigation">
|
||||
<nav id="typecho-nav-list">
|
||||
<ul class="root focus">
|
||||
<li class="parent"><a target="_self" href="/admin/home">控制台</a></dt>
|
||||
</li>
|
||||
<ul class="child">
|
||||
<li target="_self" class="focus"><a href="/admin/home">概要</a></li>
|
||||
<li><a target="_self" href="/admin/profile">个人设置</a></li>
|
||||
<li><a target="_self" href="/admin/plugin">插件</a></li>
|
||||
<li class="last"><a target="_self" href="/admin/theme">外观</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
<ul class="root">
|
||||
<li class="parent"><a target="_self" href="/admin/write">撰写</a></dt>
|
||||
</li>
|
||||
<ul class="child">
|
||||
<li class="last"><a target="_self" href="/admin/write">撰写文章</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
<ul class="root">
|
||||
<li class="parent"><a target="_self" href="/admin/articles">管理</a></dt>
|
||||
</li>
|
||||
<ul class="child">
|
||||
<li><a target="_self" href="/admin/articles">文章</a></li>
|
||||
<li><a target="_self" href="/admin/categories">分类</a></li>
|
||||
<li class="last"><a target="_self" href="/admin/tags">标签</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
<ul class="root">
|
||||
<li class="parent"><a target="_self" href="/admin/setting">设置</a></dt>
|
||||
</li>
|
||||
<ul class="child">
|
||||
<li><a target="_self" href="/admin/setting">基本</a></li>
|
||||
<li class="last"><a target="_self" href="/admin/reading">阅读</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="operate">
|
||||
<a target="_self" title="最后登录: 7小时前" href="/admin/profile" class="author">admin</a><a target="_self" class="exit" href="/admin/login?logout=true">登出</a><a href="/">网站</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main">
|
||||
<div class="body container">
|
||||
<div class="typecho-page-title">
|
||||
<h2>基本设置</h2>
|
||||
</div>
|
||||
<div class="row typecho-page-main" role="form">
|
||||
<div class="col-mb-12 col-tb-8 col-tb-offset-2">
|
||||
<form action="http://localhost/index.php/action/options-general?_=f90abdb2b52a2818286e72429dfcc97b" method="post" enctype="application/x-www-form-urlencoded">
|
||||
<ul class="typecho-option" id="typecho-option-item-title-0">
|
||||
<li>
|
||||
<label class="typecho-label" for="title-0-1">
|
||||
站点名称</label>
|
||||
<input id="title-0-1" name="title" type="text" class="w-100" value="Hello World" />
|
||||
<p class="description">
|
||||
站点的名称将显示在网页的标题处.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="typecho-option" id="typecho-option-item-siteUrl-1">
|
||||
<li>
|
||||
<label class="typecho-label" for="siteUrl-0-2">
|
||||
站点地址</label>
|
||||
<input id="siteUrl-0-2" name="siteUrl" type="text" class="w-100 mono" value="http://localhost" />
|
||||
<p class="description">
|
||||
站点地址主要用于生成内容的永久链接.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="typecho-option" id="typecho-option-item-description-2">
|
||||
<li>
|
||||
<label class="typecho-label" for="description-0-3">
|
||||
站点描述</label>
|
||||
<input id="description-0-3" name="description" type="text" class="text" value="Just So So ..." />
|
||||
<p class="description">
|
||||
站点描述将显示在网页代码的头部.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="typecho-option" id="typecho-option-item-keywords-3">
|
||||
<li>
|
||||
<label class="typecho-label" for="keywords-0-4">
|
||||
关键词</label>
|
||||
<input id="keywords-0-4" name="keywords" type="text" class="text" value="typecho,php,blog" />
|
||||
<p class="description">
|
||||
请以半角逗号 "," 分割多个关键字.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="typecho-option" id="typecho-option-item-allowRegister-4">
|
||||
<li>
|
||||
<label class="typecho-label">
|
||||
是否允许注册</label>
|
||||
<span>
|
||||
<input name="allowRegister" type="radio" value="0" id="allowRegister-0" checked="true" />
|
||||
<label for="allowRegister-0">
|
||||
不允许</label>
|
||||
</span>
|
||||
<span>
|
||||
<input name="allowRegister" type="radio" value="1" id="allowRegister-1" />
|
||||
<label for="allowRegister-1">
|
||||
允许</label>
|
||||
</span>
|
||||
<p class="description">
|
||||
允许访问者注册到你的网站, 默认的注册用户不享有任何写入权限.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="typecho-option" id="typecho-option-item-timezone-5">
|
||||
<li>
|
||||
<label class="typecho-label" for="timezone-0-6">
|
||||
时区</label>
|
||||
<select name="timezone" id="timezone-0-6">
|
||||
<option value="0">
|
||||
格林威治(子午线)标准时间 (GMT)</option>
|
||||
<option value="3600">
|
||||
中欧标准时间 阿姆斯特丹,荷兰,法国 (GMT +1)</option>
|
||||
<option value="7200">
|
||||
东欧标准时间 布加勒斯特,塞浦路斯,希腊 (GMT +2)</option>
|
||||
<option value="10800">
|
||||
莫斯科时间 伊拉克,埃塞俄比亚,马达加斯加 (GMT +3)</option>
|
||||
<option value="14400">
|
||||
第比利斯时间 阿曼,毛里塔尼亚,留尼汪岛 (GMT +4)</option>
|
||||
<option value="18000">
|
||||
新德里时间 巴基斯坦,马尔代夫 (GMT +5)</option>
|
||||
<option value="21600">
|
||||
科伦坡时间 孟加拉 (GMT +6)</option>
|
||||
<option value="25200">
|
||||
曼谷雅加达 柬埔寨,苏门答腊,老挝 (GMT +7)</option>
|
||||
<option value="28800" selected="true">
|
||||
北京时间 香港,新加坡,越南 (GMT +8)</option>
|
||||
<option value="32400">
|
||||
东京平壤时间 西伊里安,摩鹿加群岛 (GMT +9)</option>
|
||||
<option value="36000">
|
||||
悉尼关岛时间 塔斯马尼亚岛,新几内亚 (GMT +10)</option>
|
||||
<option value="39600">
|
||||
所罗门群岛 库页岛 (GMT +11)</option>
|
||||
<option value="43200">
|
||||
惠灵顿时间 新西兰,斐济群岛 (GMT +12)</option>
|
||||
<option value="-3600">
|
||||
佛德尔群岛 亚速尔群岛,葡属几内亚 (GMT -1)</option>
|
||||
<option value="-7200">
|
||||
大西洋中部时间 格陵兰 (GMT -2)</option>
|
||||
<option value="-10800">
|
||||
布宜诺斯艾利斯 乌拉圭,法属圭亚那 (GMT -3)</option>
|
||||
<option value="-14400">
|
||||
智利巴西 委内瑞拉,玻利维亚 (GMT -4)</option>
|
||||
<option value="-18000">
|
||||
纽约渥太华 古巴,哥伦比亚,牙买加 (GMT -5)</option>
|
||||
<option value="-21600">
|
||||
墨西哥城时间 洪都拉斯,危地马拉,哥斯达黎加 (GMT -6)</option>
|
||||
<option value="-25200">
|
||||
美国丹佛时间 (GMT -7)</option>
|
||||
<option value="-28800">
|
||||
美国旧金山时间 (GMT -8)</option>
|
||||
<option value="-32400">
|
||||
阿拉斯加时间 (GMT -9)</option>
|
||||
<option value="-36000">
|
||||
夏威夷群岛 (GMT -10)</option>
|
||||
<option value="-39600">
|
||||
东萨摩亚群岛 (GMT -11)</option>
|
||||
<option value="-43200">
|
||||
艾尼威托克岛 (GMT -12)</option>
|
||||
</select>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="typecho-option" id="typecho-option-item-attachmentTypes-6">
|
||||
<li>
|
||||
<label class="typecho-label">
|
||||
允许上传的文件类型</label>
|
||||
<span class="multiline">
|
||||
<input name="attachmentTypes[]" type="checkbox" value="@image@" id="attachmentTypes-image" checked="true" />
|
||||
<label for="attachmentTypes-image">
|
||||
图片文件 <code>(gif jpg jpeg png tiff bmp)</code></label>
|
||||
</span>
|
||||
<span class="multiline">
|
||||
<input name="attachmentTypes[]" type="checkbox" value="@media@" id="attachmentTypes-media" />
|
||||
<label for="attachmentTypes-media">
|
||||
多媒体文件 <code>(mp3 wmv wma rmvb rm avi flv)</code></label>
|
||||
</span>
|
||||
<span class="multiline">
|
||||
<input name="attachmentTypes[]" type="checkbox" value="@doc@" id="attachmentTypes-doc" />
|
||||
<label for="attachmentTypes-doc">
|
||||
常用档案文件 <code>(txt doc docx xls xlsx ppt pptx zip rar pdf)</code></label>
|
||||
</span>
|
||||
<span class="multiline">
|
||||
<input name="attachmentTypes[]" type="checkbox" value="@other@" id="attachmentTypes-other" />
|
||||
<label for="attachmentTypes-other">
|
||||
其他格式 <input type="text" class="w-50 text-s mono" name="attachmentTypesOther" value="" /></label>
|
||||
</span>
|
||||
<p class="description">
|
||||
用逗号 "," 将后缀名隔开, 例如: <code>cpp, h, mak</code></p>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="typecho-option typecho-option-submit" id="typecho-option-item-submit-7">
|
||||
<li>
|
||||
<button type="submit" class="btn primary">
|
||||
保存设置</button>
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="typecho-foot" role="contentinfo">
|
||||
<div class="copyright">
|
||||
<a href="http://typecho.org" class="i-logo-s">Typecho</a>
|
||||
<p>由 <a href="http://typecho.org">Typecho</a> 强力驱动, 版本 1.0 (14.10.10)</p>
|
||||
</div>
|
||||
<nav class="resource">
|
||||
<a href="http://docs.typecho.org">帮助文档</a> •
|
||||
<a href="http://forum.typecho.org">支持论坛</a> •
|
||||
<a href="https://github.com/typecho/typecho/issues">报告错误</a> •
|
||||
<a href="http://extends.typecho.org">资源下载</a>
|
||||
</nav>
|
||||
</div>
|
||||
<script src="http://localhost/admin/js/jquery.js?v=14.10.10"></script>
|
||||
<script src="http://localhost/admin/js/jquery-ui.js?v=14.10.10"></script>
|
||||
<script src="http://localhost/admin/js/typecho.js?v=14.10.10"></script>
|
||||
<script>
|
||||
(function() {
|
||||
$(document).ready(function() {
|
||||
// 处理消息机制
|
||||
(function() {
|
||||
var prefix = '86a9106ae65537651a8e456835b316ab',
|
||||
cookies = {
|
||||
notice: $.cookie(prefix + '__typecho_notice'),
|
||||
noticeType: $.cookie(prefix + '__typecho_notice_type'),
|
||||
highlight: $.cookie(prefix + '__typecho_notice_highlight')
|
||||
},
|
||||
path = '/';
|
||||
|
||||
if (!!cookies.notice && 'success|notice|error'.indexOf(cookies.noticeType) >= 0) {
|
||||
var head = $('.typecho-head-nav'),
|
||||
p = $('<div class="message popup ' + cookies.noticeType + '">' + '<ul><li>' + $.parseJSON(cookies.notice).join('</li><li>') + '</li></ul></div>'),
|
||||
offset = 0;
|
||||
|
||||
if (head.length > 0) {
|
||||
p.insertAfter(head);
|
||||
offset = head.outerHeight();
|
||||
} else {
|
||||
p.prependTo(document.body);
|
||||
}
|
||||
|
||||
function checkScroll() {
|
||||
if ($(window).scrollTop() >= offset) {
|
||||
p.css({
|
||||
'position': 'fixed',
|
||||
'top': 0
|
||||
});
|
||||
} else {
|
||||
p.css({
|
||||
'position': 'absolute',
|
||||
'top': offset
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
$(window).scroll(function() {
|
||||
checkScroll();
|
||||
});
|
||||
|
||||
checkScroll();
|
||||
|
||||
p.slideDown(function() {
|
||||
var t = $(this),
|
||||
color = '#C6D880';
|
||||
|
||||
if (t.hasClass('error')) {
|
||||
color = '#FBC2C4';
|
||||
} else if (t.hasClass('notice')) {
|
||||
color = '#FFD324';
|
||||
}
|
||||
|
||||
t.effect('highlight', {
|
||||
color: color
|
||||
})
|
||||
.delay(5000).slideUp(function() {
|
||||
$(this).remove();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
$.cookie(prefix + '__typecho_notice', null, {
|
||||
path: path
|
||||
});
|
||||
$.cookie(prefix + '__typecho_notice_type', null, {
|
||||
path: path
|
||||
});
|
||||
}
|
||||
|
||||
if (cookies.highlight) {
|
||||
$('#' + cookies.highlight).effect('highlight', 1000);
|
||||
$.cookie(prefix + '__typecho_notice_highlight', null, {
|
||||
path: path
|
||||
});
|
||||
}
|
||||
})();
|
||||
|
||||
|
||||
// 导航菜单 tab 聚焦时展开下拉菜单
|
||||
(function() {
|
||||
$('#typecho-nav-list').find('.parent a').focus(function() {
|
||||
$('#typecho-nav-list').find('.child').hide();
|
||||
$(this).parents('.root').find('.child').show();
|
||||
});
|
||||
$('.operate').find('a').focus(function() {
|
||||
$('#typecho-nav-list').find('.child').hide();
|
||||
});
|
||||
})();
|
||||
|
||||
|
||||
if ($('.typecho-login').length == 0) {
|
||||
$('a').each(function() {
|
||||
var t = $(this),
|
||||
href = t.attr('href');
|
||||
|
||||
if ((href && href[0] == '#') || /^http\:\/\/localhost\/admin\/.*$/.exec(href) || /^http\:\/\/localhost\/index\.php\/action\/[_a-zA-Z0-9\/]+.*$/.exec(href)) {
|
||||
return;
|
||||
}
|
||||
|
||||
t.attr('target', '_blank');
|
||||
});
|
||||
}
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
<script>
|
||||
(function() {
|
||||
$(document).ready(function() {
|
||||
var error = $('.typecho-option .error:first');
|
||||
|
||||
if (error.length > 0) {
|
||||
$('html,body').scrollTop(error.parents('.typecho-option').offset().top);
|
||||
}
|
||||
|
||||
$('form').submit(function() {
|
||||
if (this.submitted) {
|
||||
return false;
|
||||
} else {
|
||||
this.submitted = true;
|
||||
}
|
||||
});
|
||||
|
||||
$('label input[type=text]').click(function(e) {
|
||||
var check = $('#' + $(this).parents('label').attr('for'));
|
||||
check.prop('checked', true);
|
||||
return false;
|
||||
});
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -1,321 +0,0 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html class="no-js">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>管理标签 - Hello World - Powered by Typecho</title>
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
<link rel="stylesheet" href="http://localhost/admin/css/normalize.css?v=14.10.10">
|
||||
<link rel="stylesheet" href="http://localhost/admin/css/grid.css?v=14.10.10">
|
||||
<link rel="stylesheet" href="http://localhost/admin/css/style.css?v=14.10.10">
|
||||
<!--[if lt IE 9]>
|
||||
<script src="http://localhost/admin/js/html5shiv.js?v=14.10.10"></script>
|
||||
<script src="http://localhost/admin/js/respond.js?v=14.10.10"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!--[if lt IE 9]>
|
||||
<div class="message error browsehappy" role="dialog">当前网页 <strong>不支持</strong> 你正在使用的浏览器. 为了正常的访问, 请 <a href="http://browsehappy.com/">升级你的浏览器</a>.</div>
|
||||
<![endif]-->
|
||||
<div class="typecho-head-nav clearfix" role="navigation">
|
||||
<nav id="typecho-nav-list">
|
||||
<ul class="root focus">
|
||||
<li class="parent"><a target="_self" href="/admin/home">控制台</a></dt>
|
||||
</li>
|
||||
<ul class="child">
|
||||
<li target="_self" class="focus"><a href="/admin/home">概要</a></li>
|
||||
<li><a target="_self" href="/admin/profile">个人设置</a></li>
|
||||
<li><a target="_self" href="/admin/plugin">插件</a></li>
|
||||
<li class="last"><a target="_self" href="/admin/theme">外观</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
<ul class="root">
|
||||
<li class="parent"><a target="_self" href="/admin/write">撰写</a></dt>
|
||||
</li>
|
||||
<ul class="child">
|
||||
<li class="last"><a target="_self" href="/admin/write">撰写文章</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
<ul class="root">
|
||||
<li class="parent"><a target="_self" href="/admin/articles">管理</a></dt>
|
||||
</li>
|
||||
<ul class="child">
|
||||
<li><a target="_self" href="/admin/articles">文章</a></li>
|
||||
<li><a target="_self" href="/admin/categories">分类</a></li>
|
||||
<li class="last"><a target="_self" href="/admin/tags">标签</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
<ul class="root">
|
||||
<li class="parent"><a target="_self" href="/admin/setting">设置</a></dt>
|
||||
</li>
|
||||
<ul class="child">
|
||||
<li><a target="_self" href="/admin/setting">基本</a></li>
|
||||
<li class="last"><a target="_self" href="/admin/reading">阅读</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="operate">
|
||||
<a target="_self" title="最后登录: 7小时前" href="/admin/profile" class="author">admin</a><a target="_self" class="exit" href="/admin/login?logout=true">登出</a><a href="/">网站</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main">
|
||||
<div class="body container">
|
||||
<div class="typecho-page-title">
|
||||
<h2>管理标签</h2>
|
||||
</div>
|
||||
<div class="row typecho-page-main manage-metas">
|
||||
<div class="col-mb-12 col-tb-8" role="main">
|
||||
<form method="post" name="manage_tags" class="operate-form">
|
||||
<div class="typecho-list-operate clearfix">
|
||||
<div class="operate">
|
||||
<label><i class="sr-only">全选</i>
|
||||
<input type="checkbox" class="typecho-table-select-all" />
|
||||
</label>
|
||||
<div class="btn-group btn-drop">
|
||||
<button class="btn dropdown-toggle btn-s" type="button"><i class="sr-only">操作</i>选中项 <i class="i-caret-down"></i></button>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a lang="你确认要删除这些标签吗?" href="http://localhost/index.php/action/metas-tag-edit?do=delete&_=2e6004cd103d97bddfccf02fddd0ecbe">删除</a></li>
|
||||
<li><a lang="刷新标签可能需要等待较长时间, 你确认要刷新这些标签吗?" href="http://localhost/index.php/action/metas-tag-edit?do=refresh&_=2e6004cd103d97bddfccf02fddd0ecbe">刷新</a></li>
|
||||
<li class="multiline">
|
||||
<button type="button" class="btn btn-s merge" rel="http://localhost/index.php/action/metas-tag-edit?do=merge&_=2e6004cd103d97bddfccf02fddd0ecbe">合并到</button>
|
||||
<input type="text" name="merge" class="text-s" />
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="typecho-list-notable tag-list clearfix">
|
||||
<li class="size-5" id="tag-18">
|
||||
<input type="checkbox" value="18" name="mid[]" />
|
||||
<span rel="http://localhost/admin/manage-tags.php?mid=18">sad</span>
|
||||
<a class="tag-edit-link" href="http://localhost/admin/manage-tags.php?mid=18"><i class="i-edit"></i></a>
|
||||
</li>
|
||||
<li class="size-5" id="tag-17">
|
||||
<input type="checkbox" value="17" name="mid[]" />
|
||||
<span rel="http://localhost/admin/manage-tags.php?mid=17">sdasdf</span>
|
||||
<a class="tag-edit-link" href="http://localhost/admin/manage-tags.php?mid=17"><i class="i-edit"></i></a>
|
||||
</li>
|
||||
<li class="size-5" id="tag-16">
|
||||
<input type="checkbox" value="16" name="mid[]" />
|
||||
<span rel="http://localhost/admin/manage-tags.php?mid=16">sdfsad</span>
|
||||
<a class="tag-edit-link" href="http://localhost/admin/manage-tags.php?mid=16"><i class="i-edit"></i></a>
|
||||
</li>
|
||||
<li class="size-5" id="tag-15">
|
||||
<input type="checkbox" value="15" name="mid[]" />
|
||||
<span rel="http://localhost/admin/manage-tags.php?mid=15">asdfasd</span>
|
||||
<a class="tag-edit-link" href="http://localhost/admin/manage-tags.php?mid=15"><i class="i-edit"></i></a>
|
||||
</li>
|
||||
<li class="size-5" id="tag-14">
|
||||
<input type="checkbox" value="14" name="mid[]" />
|
||||
<span rel="http://localhost/admin/manage-tags.php?mid=14">sdfsdfasdf</span>
|
||||
<a class="tag-edit-link" href="http://localhost/admin/manage-tags.php?mid=14"><i class="i-edit"></i></a>
|
||||
</li>
|
||||
<li class="size-5" id="tag-13">
|
||||
<input type="checkbox" value="13" name="mid[]" />
|
||||
<span rel="http://localhost/admin/manage-tags.php?mid=13">sdfsdfasd</span>
|
||||
<a class="tag-edit-link" href="http://localhost/admin/manage-tags.php?mid=13"><i class="i-edit"></i></a>
|
||||
</li>
|
||||
<li class="size-5" id="tag-12">
|
||||
<input type="checkbox" value="12" name="mid[]" />
|
||||
<span rel="http://localhost/admin/manage-tags.php?mid=12">sadfasdf</span>
|
||||
<a class="tag-edit-link" href="http://localhost/admin/manage-tags.php?mid=12"><i class="i-edit"></i></a>
|
||||
</li>
|
||||
</ul>
|
||||
<input type="hidden" name="do" value="delete" />
|
||||
</form>
|
||||
</div>
|
||||
<div class="col-mb-12 col-tb-4" role="form">
|
||||
<form action="http://localhost/index.php/action/metas-tag-edit?_=2e6004cd103d97bddfccf02fddd0ecbe" method="post" enctype="application/x-www-form-urlencoded">
|
||||
<ul class="typecho-option" id="typecho-option-item-name-0">
|
||||
<li>
|
||||
<label class="typecho-label" for="name-0-1">
|
||||
标签名称 *</label>
|
||||
<input id="name-0-1" name="name" type="text" class="text" />
|
||||
<p class="description">
|
||||
这是标签在站点中显示的名称.可以使用中文,如 "地球".</p>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="typecho-option" id="typecho-option-item-slug-1">
|
||||
<li>
|
||||
<label class="typecho-label" for="slug-0-2">
|
||||
标签缩略名</label>
|
||||
<input id="slug-0-2" name="slug" type="text" class="text" />
|
||||
<p class="description">
|
||||
标签缩略名用于创建友好的链接形式, 如果留空则默认使用标签名称.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="typecho-option" id="typecho-option-item-do-2" style="display:none">
|
||||
<li>
|
||||
<input name="do" type="hidden" value="insert" />
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="typecho-option" id="typecho-option-item-mid-3" style="display:none">
|
||||
<li>
|
||||
<input name="mid" type="hidden" />
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="typecho-option typecho-option-submit" id="typecho-option-item--4">
|
||||
<li>
|
||||
<button type="submit" class="btn primary">
|
||||
增加标签</button>
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="typecho-foot" role="contentinfo">
|
||||
<div class="copyright">
|
||||
<a href="http://typecho.org" class="i-logo-s">Typecho</a>
|
||||
<p>由 <a href="http://typecho.org">Typecho</a> 强力驱动, 版本 1.0 (14.10.10)</p>
|
||||
</div>
|
||||
<nav class="resource">
|
||||
<a href="http://docs.typecho.org">帮助文档</a> •
|
||||
<a href="http://forum.typecho.org">支持论坛</a> •
|
||||
<a href="https://github.com/typecho/typecho/issues">报告错误</a> •
|
||||
<a href="http://extends.typecho.org">资源下载</a>
|
||||
</nav>
|
||||
</div>
|
||||
<script src="http://localhost/admin/js/jquery.js?v=14.10.10"></script>
|
||||
<script src="http://localhost/admin/js/jquery-ui.js?v=14.10.10"></script>
|
||||
<script src="http://localhost/admin/js/typecho.js?v=14.10.10"></script>
|
||||
<script>
|
||||
(function() {
|
||||
$(document).ready(function() {
|
||||
// 处理消息机制
|
||||
(function() {
|
||||
var prefix = '86a9106ae65537651a8e456835b316ab',
|
||||
cookies = {
|
||||
notice: $.cookie(prefix + '__typecho_notice'),
|
||||
noticeType: $.cookie(prefix + '__typecho_notice_type'),
|
||||
highlight: $.cookie(prefix + '__typecho_notice_highlight')
|
||||
},
|
||||
path = '/';
|
||||
|
||||
if (!!cookies.notice && 'success|notice|error'.indexOf(cookies.noticeType) >= 0) {
|
||||
var head = $('.typecho-head-nav'),
|
||||
p = $('<div class="message popup ' + cookies.noticeType + '">' + '<ul><li>' + $.parseJSON(cookies.notice).join('</li><li>') + '</li></ul></div>'),
|
||||
offset = 0;
|
||||
|
||||
if (head.length > 0) {
|
||||
p.insertAfter(head);
|
||||
offset = head.outerHeight();
|
||||
} else {
|
||||
p.prependTo(document.body);
|
||||
}
|
||||
|
||||
function checkScroll() {
|
||||
if ($(window).scrollTop() >= offset) {
|
||||
p.css({
|
||||
'position': 'fixed',
|
||||
'top': 0
|
||||
});
|
||||
} else {
|
||||
p.css({
|
||||
'position': 'absolute',
|
||||
'top': offset
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
$(window).scroll(function() {
|
||||
checkScroll();
|
||||
});
|
||||
|
||||
checkScroll();
|
||||
|
||||
p.slideDown(function() {
|
||||
var t = $(this),
|
||||
color = '#C6D880';
|
||||
|
||||
if (t.hasClass('error')) {
|
||||
color = '#FBC2C4';
|
||||
} else if (t.hasClass('notice')) {
|
||||
color = '#FFD324';
|
||||
}
|
||||
|
||||
t.effect('highlight', {
|
||||
color: color
|
||||
})
|
||||
.delay(5000).slideUp(function() {
|
||||
$(this).remove();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
$.cookie(prefix + '__typecho_notice', null, {
|
||||
path: path
|
||||
});
|
||||
$.cookie(prefix + '__typecho_notice_type', null, {
|
||||
path: path
|
||||
});
|
||||
}
|
||||
|
||||
if (cookies.highlight) {
|
||||
$('#' + cookies.highlight).effect('highlight', 1000);
|
||||
$.cookie(prefix + '__typecho_notice_highlight', null, {
|
||||
path: path
|
||||
});
|
||||
}
|
||||
})();
|
||||
|
||||
|
||||
// 导航菜单 tab 聚焦时展开下拉菜单
|
||||
(function() {
|
||||
$('#typecho-nav-list').find('.parent a').focus(function() {
|
||||
$('#typecho-nav-list').find('.child').hide();
|
||||
$(this).parents('.root').find('.child').show();
|
||||
});
|
||||
$('.operate').find('a').focus(function() {
|
||||
$('#typecho-nav-list').find('.child').hide();
|
||||
});
|
||||
})();
|
||||
|
||||
|
||||
if ($('.typecho-login').length == 0) {
|
||||
$('a').each(function() {
|
||||
var t = $(this),
|
||||
href = t.attr('href');
|
||||
|
||||
if ((href && href[0] == '#') || /^http\:\/\/localhost\/admin\/.*$/.exec(href) || /^http\:\/\/localhost\/index\.php\/action\/[_a-zA-Z0-9\/]+.*$/.exec(href)) {
|
||||
return;
|
||||
}
|
||||
|
||||
t.attr('target', '_blank');
|
||||
});
|
||||
}
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
(function() {
|
||||
$(document).ready(function() {
|
||||
|
||||
$('.typecho-list-notable').tableSelectable({
|
||||
checkEl: 'input[type=checkbox]',
|
||||
rowEl: 'li',
|
||||
selectAllEl: '.typecho-table-select-all',
|
||||
actionEl: '.dropdown-menu a'
|
||||
});
|
||||
|
||||
$('.btn-drop').dropdownMenu({
|
||||
btnEl: '.dropdown-toggle',
|
||||
menuEl: '.dropdown-menu'
|
||||
});
|
||||
|
||||
$('.dropdown-menu button.merge').click(function() {
|
||||
var btn = $(this);
|
||||
btn.parents('form').attr('action', btn.attr('rel')).submit();
|
||||
});
|
||||
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1 +1 @@
|
||||
{{define "article"}}<div id=content class=inner>{{with .Article}}<article class="post post-{{.ID}}" itemscope itemtype="http://schema.org/Article"><div class=meta><div class=date><time itemprop=datePublished content="{{dateformat .CreateTime " 2006-01-02 "}}">{{dateformat .CreateTime "Jan 02, 2006"}}</time></div><div class=comment><a href="#comments">{{.Count}} Comments</a></div></div><h1 class=title itemprop=headline>{{.Title}}</h1><div class="entry-content" itemprop=articleBody>{{str2html .Content}}<p>本文链接:<a rel="bookmark" title="Permalink to {{.Title}}" href="//{{$.Domain}}/post/{{.Slug}}.html" itemprop="url">https://{{$.Domain}}/post/{{.Slug}}.html</a>,<a href="//{{$.Domain}}/post/{{.Slug}}.html#comments">参与评论 »</a></p><p>--<acronym title="End of File">EOF</acronym>--</p><p class="post-info">发表于 <span class="date">{{dateformat .CreateTime "2006-01-02 15:04:05"}}</span>{{if gt (.Tags|len) 0}},并被添加「{{range $index, $elem := .Tags}}{{if gt $index 0}}、{{end}}<a href="/search.html?q=tag:{{$elem}}">{{$elem}}</a>{{end}}」标签{{end}}{{if .UpdateTime|isnotzero}},最后修改于 <span class="date">{{dateformat .UpdateTime "2006-01-02 15:04:05"}}</span>{{end}}。</p>{{with $.Copyright}}<p class="copyright-info">{{str2html $.Copyright}}<a href="//{{$.Domain}}/post/about.html#toc-1">更多说明 »</a></p>{{end}} {{with $.Serie}}{{if gt $.Days 100}}<p class="expire-tips">提醒:本文最后更新于 {{$.Days}} 天前,文中所描述的信息可能已发生改变,请谨慎使用。</p>{{end}}<div class="entry-series"><h3>专题「{{.Name}}」的其它文章 <a href="/series.html#toc-{{.ID}}" title="更多">»</a></h3><ul>{{range .Articles}}{{if ne .ID $.Article.ID}}<li><a href="/post/{{.Slug}}.html">{{.Title}}</a> <span class="date">({{dateformat .CreateTime "Jan 02, 2006"}})</span></li>{{end}}{{end}}</ul></div>{{end}}</div></article><nav class="page-navi">{{with .Prev}}<a href="/post/{{.Slug}}.html" class=prev>« {{.Title}}</a>{{end}}{{with .Next}}<a href="/post/{{.Slug}}.html" class=next>{{.Title}} »</a>{{end}}</nav><section id=comments><h1 class=title>Comments<span id=switch_thread_mode></h1><div id=disqus_thread class=ds-thread data-identifier="post-{{.Slug}}" data-url="{{if $.EnableHttps}}https://{{else}}http://{{end}}{{$.Domain}}/post/{{.Slug}}.html"></div><div id=simple_thread data-id="golomb-coded-sets"></div></section>{{end}}</div>{{end}}
|
||||
{{define "article"}}<div id=content class=inner>{{with .Article}}<article class="post post-{{.ID}}" itemscope itemtype="http://schema.org/Article"><div class=meta><div class=date><time itemprop=datePublished content="{{dateformat .CreateTime " 2006-01-02 "}}">{{dateformat .CreateTime "Jan 02, 2006"}}</time></div><div class=comment><a href="#comments">{{.Count}} Comments</a></div></div><h1 class=title itemprop=headline>{{.Title}}</h1><div class="entry-content" itemprop=articleBody>{{str2html .Content}}<p>本文链接:<a rel="bookmark" title="Permalink to {{.Title}}" href="//{{$.Domain}}/post/{{.Slug}}.html" itemprop="url">https://{{$.Domain}}/post/{{.Slug}}.html</a>,<a href="//{{$.Domain}}/post/{{.Slug}}.html#comments">参与评论 »</a></p><p>--<acronym title="End of File">EOF</acronym>--</p><p class="post-info">发表于 <span class="date">{{dateformat .CreateTime "2006-01-02 15:04:05"}}</span>{{if gt (.Tags|len) 0}},并被添加「{{range $index, $elem := .Tags}}{{if gt $index 0}}、{{end}}<a href="/search.html?q=tag:{{$elem}}">{{$elem}}</a>{{end}}」标签{{end}}{{if .UpdateTime|isnotzero}},最后修改于 <span class="date">{{dateformat .UpdateTime "2006-01-02 15:04:05"}}</span>{{end}}。</p>{{with $.Copyright}}<p class="copyright-info">{{str2html $.Copyright}}<a href="//{{$.Domain}}/post/about.html#toc-1">更多说明 »</a></p>{{end}} {{with $.Serie}}{{if gt $.Days 100}}<p class="expire-tips">提醒:本文最后更新于 {{$.Days}} 天前,文中所描述的信息可能已发生改变,请谨慎使用。</p>{{end}}<div class="entry-series"><h3>专题「{{.Name}}」的其它文章 <a href="/series.html#toc-{{.ID}}" title="更多">»</a></h3><ul>{{range .Articles}}{{if ne .ID $.Article.ID}}<li><a href="/post/{{.Slug}}.html">{{.Title}}</a> <span class="date">({{dateformat .CreateTime "Jan 02, 2006"}})</span></li>{{end}}{{end}}</ul></div>{{end}}</div></article><nav class="page-navi">{{with .Prev}}<a href="/post/{{.Slug}}.html" class=prev>« {{.Title}}</a>{{end}}{{with .Next}}<a href="/post/{{.Slug}}.html" class=next>{{.Title}} »</a>{{end}}</nav><section id=comments><h1 class=title>Comments<span id=switch_thread_mode></h1><div id=disqus_thread class=ds-thread data-identifier="post-{{.Slug}}" data-url="https://{{$.Domain}}/post/{{.Slug}}.html"></div><div id=simple_thread data-id="golomb-coded-sets"></div></section>{{end}}</div>{{end}}
|
||||
|
||||
13
xml.go
13
xml.go
@@ -38,12 +38,11 @@ func doFeed() {
|
||||
_, _, artcs := PageList(1, FEED_COUNT)
|
||||
buildDate := time.Now()
|
||||
params := map[string]interface{}{
|
||||
"Title": Ei.BTitle,
|
||||
"SubTitle": Ei.SubTitle,
|
||||
"Domain": runmode.Domain,
|
||||
"Enablehttps": runmode.EnableHttps,
|
||||
"BuildDate": buildDate.Format(time.RFC1123Z),
|
||||
"Artcs": artcs,
|
||||
"Title": Ei.BTitle,
|
||||
"SubTitle": Ei.SubTitle,
|
||||
"Domain": runmode.Domain,
|
||||
"BuildDate": buildDate.Format(time.RFC1123Z),
|
||||
"Artcs": artcs,
|
||||
}
|
||||
|
||||
f, err := os.OpenFile("static/feed.xml", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, os.ModePerm)
|
||||
@@ -66,7 +65,7 @@ func doSitemap() {
|
||||
logd.Error("not found sitemapTpl.")
|
||||
return
|
||||
}
|
||||
params := map[string]interface{}{"Artcs": Ei.Articles, "Domain": runmode.Domain, "Enablehttps": runmode.EnableHttps}
|
||||
params := map[string]interface{}{"Artcs": Ei.Articles, "Domain": runmode.Domain}
|
||||
f, err := os.OpenFile("static/sitemap.xml", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, os.ModePerm)
|
||||
if err != nil {
|
||||
logd.Error(err)
|
||||
|
||||
Reference in New Issue
Block a user