Git Product home page Git Product logo

typecho's Introduction

Hi there 👋

typecho's People

Contributors

funny002 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

typecho's Issues

匹配图片正则表达式更改

原来的会匹配一般链接,增加匹配.jpg或者.png结尾的条件

functions.php(line81)

$is = preg_match('/[a-z]+:[^\s]+/', $text, $val);
改为
$is = preg_match('/(http(s)?)[^\s]+((.jpg)+|(.png)+)/', $text, $val);

原谅我不用pull request

我报错这个

Warning: require(/www/wwwroot/link.hytn.top/usr/themes/default/public/header.php): failed to open stream: No such file or directory in /www/wwwroot/link.hytn.top/var/Widget/Archive.php on line 1333

Fatal error: require(): Failed opening required '/www/wwwroot/link.hytn.top/usr/themes/default/public/header.php' (include_path='.:') in /www/wwwroot/link.hytn.top/var/Widget/Archive.php on line 1333

把need里边那个/去了也没好,麻烦看看

php报错

离谱,大佬你这主题上来3个php报错,给我整懵逼了....typecho的need里面开头不用带杠,带杠资源路径会多一个 /

文章title字段不正常

head.php line5
原来的

<title>options->title(); ?></title> 会生成博客的标题,就导致每篇文章的title都一样

参考typecho官方主题的header文件,改成如下后可以获取文章的title
<title>archiveTitle(array( 'category' => _t('分类 %s 下的文章'), 'search' => _t('包含关键字 %s 的文章'), 'tag' => _t('标签 %s 下的文章'), 'author' => _t('%s 发布的文章') ), '', ' - '); ?>options->title(); ?></title>

有bug

不知道这些bug是你没更新还是还没调通,总之我解决了这些问题才能打开
1.public大小写错了,而且多了个斜杠
2.目录大小写有问题style image等
3.random图片引用在default里面

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.