当前位置: 首页 > Web前端 > HTML

个性化hexo博客,添加评论系统、分享、友情链接功能

时间:2023-04-02 19:14:21 HTML

个人博客地址:http://lx.nextdev.cn前言上一篇我们使用codingpage+hexo搭建个人博客。在本文中,我们将修改博客。注意本文所有修改均基于hexo博客主题评论系统网易云关注帖子开始使用注册账号,然后打开WEB代码获取代码,找到productKey打开主题配置文件,找到GentieproductKey,修改为如下代码:#GentieproductKeygentie_productKey:这里写keyOK!分享系统ShareSDK开始使用并注册一个账号,然后打开后台,找到appkey打开blog\themes\next\layout\_partials\share新建一个文件命名为sharesdk.swig,输入以下代码:分享

新浪微博

腾讯微博

QQ空间

QQ好友

微信

li>p>

豆瓣

人人网

开心

脸书

推特

口袋

Google+

有道云笔记

明道

朋友网

Tumblr

Instapaper

LinkedIn

取消
打开:LX-Blog\themes\next\layout\pos??t.swig将以下代码:{%iftheme.jiathis%}{%include'_partials/share/jiathis.swig'%}{%elseiftheme.baidushare%}{%include'_partials/share/baidushare.swig'%}{%elseiftheme.add_this_id%}{%include'_partials/share/add-this.swig'%}{%elseiftheme.duoshuo_shortnameandtheme.duoshuo_share%}{%include'_partials/share/duoshuo_share.swig'%}{%endif%}改组成:{%iftheme.jiathis%}{%include'_partials/share/jiathis.swig'%}{%elseiftheme.baidushare%}{%include'_partials/share/baidushare.swig'%}{%elseif主题。add_this_id%}{%include'_partials/share/add-this.swig'%}{%elseiftheme.duoshuo_shortnameandtheme.duoshuo_share%}{%include'_partials/share/duoshuo_share.swig'%}{%elseiftheme.sharesdk%}{%include'_partials/share/sharesdk.swig'%}{%endif%}打开主题配置文件,添加如下代码:sharesdk:trueshareSDKappkey:添加友情链接到你的appkey打开主题配置文件,找到Blogrolls,将代码改为:links_title:友情链接links_layout:inlinelinks:凌霄的博客:http://lx.nextdev.cn/done!欢迎评论

猜你喜欢