Posts Tagged ‘wordpress’

在 WordPress文章后添加作者简介

Friday, March 19th, 2010

这个倒是挺有用. 顶了.

很多博客在每篇文章的下方都附有一个对作者的简短介绍。 在WordPress多用户博客中这逐渐成为一种趋势。 这里我们就来介绍下怎样在不使用插件的情况下,让文章的结尾部分中出现作者的简介。

首先打开主题文件夹中的style.css文件,添加以下代码:

Read More: 1039 Words Totally

Nginx WP Super Cache 配置规则

Friday, December 25th, 2009

location /blog/{                 autoindex off;                 set $wp_super_cache_file ”;                 set $wp_super_cache_uri $request_uri;                 if ( $request_method = POST )                 {                         set $wp_super_cache_uri ”;                 }                 if ( $query_string )                 {                         set $wp_super_cache_uri ”;                 }                 if ( $http_cookie ~* "comment_author_|wordpress|wp-postpass_" )                 {                         set $wp_super_cache_uri ”;                 }                 if ( $wp_super_cache_uri ~ ^(.+)$ )                 {                         set $wp_super_cache_file /blog/wp/wp-content/cache/wp_super_cache/$http_host/$1index.html;                 }                 if ( -f $document_root$wp_super_cache_file )                 {                         rewrite ^(.*)$ $wp_super_cache_file break;                 }                 if (-f $request_filename)                 {                         expires 30d;                         break;                 }                 if (!-e $request_filename)                 {                         rewrite ^(.+)$ /blog/index.php?q=$1 last;                 }         }