GithubHelp home page GithubHelp logo

Line's Projects

typecho-tips-customize-independent-page-templates-to-achieve-archiving-classification-and-labelin icon typecho-tips-customize-independent-page-templates-to-achieve-archiving-classification-and-labelin

typecho 主题开发过程中,某些独立页面承担着这个站点的美化或者是导航作用。 有些时候,用户自己增加的单独页面可以什么内容都没有,但是显示的时候,效果却能出来。 此时用户自己增加的单独页面就承担了导航的作用,但是里面自己写的代码又成了美化作用。 而独立页面中,文章分类、文章归档、标签、友链、关于这五个页面,前三个都是需要读取数据库,去显示内容的,这显然不能通过用户自己编辑内容去显示。 此时文章模板 能够实现这种需求

typecho-tips-realize-the-link-in-the-article-to-open-in-a-new-tab icon typecho-tips-realize-the-link-in-the-article-to-open-in-a-new-tab

在拿到一个没有经过魔改,或者使用未考虑链接跳转这种情况的主题时,该文章就会对你很有用处。 默认情况Typecho文章中如果有添加链接,那么是从当前窗口跳转的,并且外链没有添加nofollow标签,不利于SEO,Typecho文章内链接新窗口并添加nofollow标签如下。

typecho-tips-support-emoji-expressions icon typecho-tips-support-emoji-expressions

安装完 typecho,发现并不能使用 Emoji 表情,评论里的 Emoji 表情,都会显示空白,看来不是 typecho 程序的问题,typecho 还是比较健壮的,于是苗头指向了数据库。建数据库的时候使用 utf-8,utf-8 是不支持 Emoji 表情的。 要想数据库支持 Emoji 表情,就得使用 utf8mb4 编码来支持,于是我们需要修改已有数据库的编码格式,好消息是 utf8mb4 是 utf-8 的超集,完全兼容 utf-8,修改后,不会影响现有数据。

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.