Summation! Long live Sister Li! Use ChatGPT to write GitBook layout hammer note color matching WordPress theme

Original link: https://fangyuanxiaozhan.com/p/2023-03-26-13-04-25-gitbook-for-wordpress/

When I wrote the serialization of “Chrome Plugin Heroes” on Github in the early days, I used the automatic construction function of GitBook, that is, in the Github warehouse, store markdown format articles and configuration files according to certain specifications, and GitBook will automatically build a book , for readers to read.

The GitBook reading experience is really good. In the PC version, the left side is the table of contents, and the right side is the text content. Click the left table of contents to switch the right text content. In the mobile version, the table of contents receives a drawer layout, click on the upper left The corner icon can call out the drawer, and clicking the content in the drawer can switch the content of the main screen .

Later, the open source version of GitBook was no longer updated, and I began to focus on the commercial paid version (limited storage space), so I started looking for free alternatives. Finally chose WordPress

WordPress is a very successful product. Since its release in 2003, it has achieved a balance between open source and commercialization . The free version has been updated all the time, creating a rich plug-in and theme ecology. Developers can gain benefits by developing WordPress plug-ins or themes . You can also use love to generate electricity and publish free themes and plug-ins. Since the WordPress code is open source, there is naturally no concept similar to Apple tax .

One-third of the world’s websites are built by WordPress . WordPress supports complete and powerful background management, supports comment functions, and supports full-site search. Search engines will optimize WordPress websites, and website SEO becomes simple! Common functions such as spam comment filtering, comment email reminder, website cache optimization, Google ad access, RSS subscription, etc., can all be easily obtained through free and stable plug-ins .

It is both human nature and human nature . After I switched to WordPress, I began to miss the excellent layout design of GitBook . At the same time, I wanted the comfortable reading experience of color matching like a hammer sticky note , but I couldn’t find a ready-made theme, so I planned to write one myself. But the WordPress theme needs to use PHP syntax, so I asked ChatGPT to help write PHP. ChatGPT writes PHP very well, and the work is so sticky, which made me feel like a party A.

WordPress PHP

The first version of the theme has been written, and the tentative name of the theme is ” Summation! Long live Sister Li! GitBook For WordPress ” has been released to https://ift.tt/kje7bSE (Fangyuan Small Station) to run and use. Manage the Github Actions at runtime, the open source address of the management script https://ift.tt/jhpmzcn The purpose of the script is to use Hexo to manage WordPress “Use Github Actions to automatically update articles to WordPress”

theme

Theme cover image

screenshot

Effect demo

  • Wide and narrow screen adaptive

Gitbook

If your focus is on tifa, come here https://ift.tt/oM2hBqW The server bandwidth is limited, and the picture loading is a bit slow, you may need to wait a while (if there is a cheap bandwidth server recommendation, you can recommend a wave in the comment area )

  • support search

support search

(I think Alice’s modeling is really good, the second round of the remake of ff7 will be released in 2023!)

About the theme “Summation! Long live Sister Li! GitBook For WordPress”

The theme is open source on Github: https://ift.tt/uIwOa57

  • Sidebar showing published articles in reverse chronological order
  • Directory switching articles, sidebar automatically scrolls the current article to the top of the sidebar
  • Adaptive layout between mobile terminal and PC terminal
  • support comments
  • support search
  • The record number is reserved at the bottom

Update on follow-up plans

  • Support automatic generation of multi-level directories according to themes
  • Continuously polish the style and optimize the code structure
  • Write a Recommended List of WordPress Free Plugins

Don’t forget why you set off in the first place just because you have traveled too far

Don't forget why you set out in the first place just because you've gone too far

The greatest joy of blogging lies in sharing. A blog should be: a generator of interesting ideas, a sharer of personal projects, and a launcher of high-quality content ; rather than a generator of nonsense, advertisements, and goods…

In 2023, writing a theme for WordPress to make personal independent blogs more readable and easy to use seems to be a very cost-effective thing, but according to my tossing experience, writing an independent blog on a personal domain name is much more enjoyable than posting content on a content platform , because you can write what you want, and publish your opinions to the Internet at any time , instead of being visible to the content published today, it may become a wasteland of knowledge tomorrow .

“Peace! Long Live Sister Li! GitBook For WordPress” theme uses Mr. Luo’s avatar as the material, and finally puts a quote from Mr. Luo’s ancient times: I hope those who like to use the principle of “shooting the first bird” to teach young people, and because of this Chinese people who think they are “mature” will one day understand the fact that some birds come to the world to do what they think is right, not just to hide from their guns. If you are not killed, you will continue to be tough and arrogant. If you are killed, I will admit it .

The permanent update address of this article:

https://fangyuanxiaozhan.com/p/2023-03-26-13-04-25-gitbook-for-wordpress/

This article is transferred from: https://fangyuanxiaozhan.com/p/2023-03-26-13-04-25-gitbook-for-wordpress/
This site is only for collection, and the copyright belongs to the original author.