In this article, I will introduce how to better understand the use of Akina for Typecho template and feel its unique soul and charm.
What should I do before use
Please add Akina \ images \ avatar Replace JPG with your own avatar and use QQ avatar globally Replace the collection picture in Akina\images\donate with your own collection code (of course, it's OK not to replace it) Set in the background - comments are allowed to use < img SRC = "" > tags, otherwise expressions will not be used normally. The topic level turns off anti spam protection, enables paging, displays the first page as the default, and displays newer comments in front. Topic level comments allow img tags
About expression
Because everyone's domain name is different, in order to adapt to this, expression links can't be written dead. The blogger modified the relevant js to automatically obtain the website address, but only the icon package, i.e. "img" tag, can be used after such modification
The theme comes with an expression package, which can add expressions according to its format.
Home page (hmoe.php) settings
Akina provides a unique home page In the blog background - Settings - Reading - site home page Choose to call hmoe directly PHP template file, check it, and change the path of the article list page to / blog (of course, it can be changed to other, but at the same time, modify the path home.php in the template)
Other pages
In the management - independent page - add page Friend chain must be links HTML end. About must be about HTML end. Message must be message HTML end. Archive must be archives HTML end. Select a template with the same name as the user-defined template (if page is not selected for many), it is recommended to configure pseudo static.
typecho pseudo static
apache configuration
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1] </IfModule>
nginx configuration
server { listen 80; server_name yourdomain.com; root /home/yourdomain/www/; index index.html index.htm index.php; if (!-e $request_filename) { rewrite ^(.*)$ /index.php$1 last; } location ~ .*\.php(\/.*)*$ { include fastcgi.conf; fastcgi_pass 127.0.0.1:9000; } access_log logs/yourdomain.log combined; }
Then you can set it in the background - > permanent connection - > enable address rewriting - > select wordpress style
Friend chain writing
!!! <br/> <div class="links"> <ul class="link-items fontSmooth"> <li class="link-item"><a class="link-item-inner effect-apollo" href="http://zhebk. Cn / "title =" we are so small. " target="_ Blank "> < span class =" sitename "> carton blog < / span > < div class =" linkdes "> we are so small. < / div ></a></li> ...... </ul> </div> !!!
Gallery picture writing
!!! <a href="Big picture address" alt="explain" title="title"><img class="aligncenter" src="Small picture address" alt="explain"></a> !!!
Download button writing
!!! <p> <a id="download_link" class="download" href="download url" rel="external" target="_blank" title="Download address"> <span><i class="iconfont icon-download"></i>Click download</span> </a> </p> !!!
Label style
#H1 label
##H2 label
###H3 label
####H4 label
#####H5 label
Background template settings
Provide website subtitle, DNS pre resolution acceleration, CDN image acceleration, filing number and other information
Pay special attention when using CDN image acceleration
Please create AkinaCDN folder in the space provided by CDN service provider, and then upload the css, fonts, images, js folders and files under the theme directory. Finally, fill in the domain name according to the prompt in the background template setting. Tip: poor quality CDN will even slow down the website. Pay attention to CDN paying users. This operation will make your wallet suffer an irreversible dimensionality reduction blow.
Use skills
Add a custom field img in the article editor, followed by a picture link. You can customize the top picture of the page (except archiving). By default, the pictures under Akina\images\postbg are used randomly. Add a custom field dt in the article editor and leave it blank. Dynamic article display style can be turned on. When using dynamic style, the title will not be seen on the front page of the article. The first 70 characters of the article are displayed by default. You can use <-- More -- > the summary splitter customizes the display. Article small spark trigger condition: reading quantity is greater than or equal to 1000. If you don't want some independent pages to be displayed on the navigation bar, you can add a custom field navbar and change the field value to hide