发新话题
打印

如何使生成的html文件head中的mate包含keyword,description呢

如何使生成的html文件head中的mate包含keyword,description呢

如何使生成的html文件head中的mate包含keyword,description呢?另外求教:如何生成html时,把title变成“文件名+tag+目录+博客名”
这是我的博客文章的head:

<head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <meta http-equiv="Content-Language" content="zh-CN" />
        <link rel="stylesheet" rev="stylesheet" href="http://www.sooduu.com/style/default.css" type="text/css" media="screen" />
        <link rel="stylesheet" rev="stylesheet" href="http://www.sooduu.com/css/print.css" type="text/css" media="print" />
        <script language="JavaScript" src="http://www.sooduu.com/script/common.js" type="text/javascript"></script>
        <title>认证之友-2007年6月份18000审核员考试试题—审核部分</title>

</head>


这是月光博客文章的head:
<head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <meta http-equiv="Content-Language" content="zh-CN" />
        <meta name="keywords" content="常用RSS阅读器评测,blog" />
        <meta name="description" content="月光博客-常用RSS阅读器评测" />
        <link rel="alternate" type="application/rss+xml" href="http://feed.williamlong.info" title="月光博客" />
        <link rel="stylesheet" rev="stylesheet" href="http://www.williamlong.info/style/j-spring.css" type="text/css" media="screen" />
        <link rel="stylesheet" rev="stylesheet" href="http://www.williamlong.info/css/print.css" type="text/css" media="print" />

        <script language="JavaScript" src="http://www.williamlong.info/script/common.js" type="text/javascript"></script>
        <title>常用RSS阅读器评测-月光博客</title>
</head>

TOP

我只知道思路,因为具体懒得去看:在模板里的title里加上你想要的调用代码。

TOP

打开Template里,依次修改这几个文件就行了
catalog.html   
default.html  
search.html  
single.html  
tags.html

TOP

楼上好厉害。

TOP

不知怎么改哈!!!请指教!

TOP

引用:
原帖由 竞博客 于 2007-9-18 11:11 发表
打开Template里,依次修改这几个文件就行了
catalog.html   
default.html  
search.html  
single.html  
tags.html
怎么改呢??论坛里有相关文章吗.

TOP

竞博客,快来继续。

TOP

月光博客每一篇文章的都不一样 LZ想达到这种效果吧?我也想知道 帮顶~
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="Content-Language" content="zh-CN" />
<meta name="keywords" content="Google Earth卫星上天,分辨率提高至0.5米,blog" />
<meta name="description" content="月光博客-Google Earth卫星上天,分辨率提高至0.5米" />

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="Content-Language" content="zh-CN" />
<meta name="keywords" content="Google AdSense移动手机版,blog" />
<meta name="description" content="月光博客-Google AdSense移动手机版" />

TOP

看这篇吧,想要什么其实自己加相关调用代码就好了。
http://bbs.z-blog.net/viewthread.php?tid=16714&highlight=

TOP

先顶一下,这几天考试,改天再来详细看看.

TOP

月光太厉害啦

TOP

像9楼所说,灵活调用Z-blog的标签库
http://bbs.z-blog.net/viewthread.php?tid=253

再者,Z-blog的结构基本都是一样的,你何不查看月光的模板是怎么写的
例如首页模板都是http://域名/TEMPLATE/default.html
ZIPPO广州实体店-全场4折起,售后7天包退换。
支持Z-blog,谴责篡改&去除版权标记的可耻行为
------------------------------------------------------------------------------------------
新手请多看应用教程区Z-wiki,或站内搜索寻找答案
1、Z-blog主题模板以及标签库的说明   2、默认模板右侧栏目代码注释       3、默认CSS样式的注释     
4、Z-BLOG使用小贴士收集         5、加广告请搜索gg/google/广告

TOP

发新话题