本站用了Catch Box(Light)的主题。
style.css文件修改如下:
/*第一处修改*/
.site {
width: 1100px;
}
#content {
overflow: hidden;
}
#sidebar-header-top {
width: 100%;
}
#primary {
width: 750px;
}
#secondary {
width: 260px;
}
/*第二处修改*/
strong {
font-weight: bold;
font-size: 24px;
}
/*第三处修改*/
body, input, textarea {
color: #373737;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 16px;
font-weight: 300;
line-height: 1.62em;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
}
自定义Page模板如下:
page-my01.php
<?php
/**
* Template Name: Neohope Posts Page Template for www
* Description: A Page Template that shows only my posts
*/
get_header(); ?>
<?php
//Hansen
// 3:Java
// 5:CPP
// 6:IOS
// 7:SQLServer
// 8:JavaScript
// 9:Windows
// 11:Cmd
// 12:Network
// 13:NonTech
// 14:Crack
// 15:C#
// 16:Python
// 17:Perl
// 18:HL7
// 20:Ruby
// 21:Editors
// 23:Linux
// 24:UNIX
// 25:ESB
// 26:Oracle
// 27:Android
// 28:SoftwareEngineer
// 29:Webservice
// 30:MacOS
// 31:CI
// 32:Algorithm
// 33:Database
// 34:Language
// 35:OS
// 36:Architecture
// 37:Specification
// 38:TLS
// 39:Digest
// 40:Go
// 41:Io
// 42:Prolog
// 43:SourceResearch
// 44:WebServer
// 45:Tomcat
// 46:MBox
// 47:AndroidApp
// 48:Charset
// 49:DICOM
// 50:MIME
// 58:Masm
// 93:CommonLisp
// 94:C
//116:VB
//119:IIS
//120:Jetty
//121:R
//124:Crawler
//125:VirtualBox
//126:VMWare
//129:QT
//131:HTML
//133:Cocoa
//136:BigData
//137:Hadoop
//170:MongoDB
//173:BarCode
//177:CommonDB
//181:NOSQL
//184:Redis
//186:BSD
//188:Docker
//190:Wine
//193:VM
//196:Application
//197:Browser
//202:Shell
//206:CORBA
//208:Memcached
//210:MessageQueue
//211:ActiveMQ
//213:Kafka
//215:QPID
//217:eXistDB
//220:Cassandra
//222:HBase
//224:ICE
//226:Security
//227:IM
//228:HtmlEditor
//229:Thrift
//231:Avro
//233:ProtocolBuffer
//235:Dubbo
//237:Weird
//240:IHE
//242:RPC
//243:Framework
//246:WS&POS
//262:NLP
//264:Word2Vec
//265:Wkhtmltopdf
//267:Search
//270:ZooKeeper
//272:VBS
//273:VBA
//275:RMI
//277:XMLRPC
//279:EJB
//281:JMS
//283:JNDI
//286:JobScheduler
//287:Quartz
//289:REST
//294:DCOM
//296:COM+
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
//not working
//$args = array(
//'category__and' => array(10,136,188,242,25,217,208,170,181,184),
//'paged' => $paged,
//'posts_per_page' => 10
//);
// 25:ESB
// 31:CI
//124:Crawler
//136:BigData
//170:MongoDB
//181:NOSQL
//184:Redis
//188:Docker
//208:Memcached
//210:MessageQueue
//217:eXistDB
//229:Thrift
//231:Avro
//233:ProtocolBuffer
//235:Dubbo
//262:NLP
query_posts('cat=25,31,124,136,170,181,184,188,208,210,217,229,231,233,235,262&paged='.$paged);
?>
<!--input type="text"-->
<?php
//$catlist = get_categories();
//
//foreach ($catlist as $cat)
//{
// echo str_pad($cat->term_id, 3, " ", STR_PAD_LEFT).':'. $cat->name.';';
//}
?>
<!--/input-->
<?php if ( have_posts() ) : ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>
<?php catchbox_content_nav( 'nav-below' ); ?>
<?php else : ?>
<article id="post-0" class="post no-results not-found">
<header class="entry-header">
<h1 class="entry-title"><?php _e( 'Nothing Found', 'catch-box' ); ?></h1>
</header><!-- .entry-header -->
<div class="entry-content">
<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'catch-box' ); ?></p>
<?php get_search_form(); ?>
</div><!-- .entry-content -->
</article><!-- #post-0 -->
<?php endif; ?>
</div><!-- #content -->
<?php
/**
* catchbox_after_content hook
*
*/
do_action( 'catchbox_after_content' ); ?>
</div><!-- #primary -->
<?php
/**
* catchbox_after_primary hook
*
*/
do_action( 'catchbox_after_primary' ); ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
谢谢 mac上字体泰国纤细,用了上面css代码 改了粗细看起来好多了。
这个主题真的很悦目
简洁明了 一直在使用
Pingback: 本博客使用Wordpress主题:Catch Box – 宁乐熙
仍然有个问题,为什么按照上述的代码,博客不会响应式了?我看到你的可以响应。求解答啊!谢谢!
额,可能是我这边的版本比较老旧吧,实在没有改其他地方呢。