当前位置: 首页 > news >正文

数据库怎么做两个网站东莞新闻最新消息

数据库怎么做两个网站,东莞新闻最新消息,seo排名赚挂机,解决设计网站问题由于电脑重装了一次#xff0c;发现之前Hexo与NexT主题版本过于落后#xff0c;重新部署了下。 1 Node.js与git安装 这一块安装就不赘述了。去两个官网找安装文件安装即可。 node.js git 打开git以后配置的几个关键命令行。 git config --global user.name 你的gi…由于电脑重装了一次发现之前Hexo与NexT主题版本过于落后重新部署了下。 1 Node.js与git安装 这一块安装就不赘述了。去两个官网找安装文件安装即可。 node.js git 打开git以后配置的几个关键命令行。 git config --global user.name 你的github名字 git config --global user.email 你的邮箱地址生成ssh密钥根据地址找到ssh密钥文件用记事本打开。 ssh-keygen -t rsa -C 你的邮箱地址 根据上面然后在自己的github账户上设置中进行上传密钥。 关于安装成功测试可以输入以下几个命令。 node -v npm -v关于重新部署的原因最早是安装一些插件报了错。 后面虽然有一些参考资料的语句是有用的但是整体还是因为比较古老的版本各种bug于是痛定思痛决定重新部署。 2 Hexo与NexT主题安装 Hexo的博客我前面写过很多了有兴趣大家可以移步前面。这里主要讲最新的几个安装步骤。首先给出官网文档。 Hexo npm install hexo-cli -g hexo init blog cd blog npm install hexo server相关hexo主题。 Hexo可选主题 我还是选择老朋友NexT主题。 NexT官方仓库 NexT官方文档 cd 你的博客根目录 npm install hexo-theme-nexthexo server显示NexT版本。 然后安装部分插件。 npm install hexo-tag-cloud^2.0.* --save npm install --save hexo-tag-aplayer npm install hexo-tag-dplayer --save npm install --save hexo-pdf npm install --save hexo-admin-qiniu npm install hexo-generator-searchdb npm install hexo-filter-mathjax npm install hexo-word-counter npm install hexo-related-posts npm install next-theme/hexo-next-valine从git上clone下next主题修改配置文件。 git clone https://github.com/next-theme/hexo-theme-next themes/nextHexo配置主题的本质就是有两个_config.yml一个是根目录下的一个是主题文件下的。根据这两个进行不同的修改。 数学公式启用busuanzi访客统计插件配置本地搜索插件配置进度条配置相关文章配置 相关配置文档和仓库 awesome nexthexo word counterhexo next valine 配置过程中的几个注意事项。valine出现了一个报错是“Cannot read property ‘enable_sync’ of undefined”后面发现需要在根目录的配置文件添加如下的命令即可正常运行。 关于配置valine评论系统时报了401的错误。且以前的评论不显示。需要配置serverURLs。具体配置可以见参考资料的内容这里不赘述了。 3 自定义的一些插件 3.1 页脚修改 这个地方主要是修改了下访客数量和访问总量那两部分中文。打开theme/next/layout/_partials/footer.njk文件。在画圈部分加上中文即可。 效果图。 3.2 侧边栏插入访客可视化、词云、建站时间以及最近推送文章 这些插件主要实现方式是在根目录/source下建立一个新的文件夹_data然后新建一个sidebar.njk的新文件并输入如下的代码。 div iddays/div /script script languagejavascript function show_date_time(){ window.setTimeout(show_date_time(), 1000); BirthDaynew Date(你的建站时间); todaynew Date(); timeold(today.getTime()-BirthDay.getTime()); sectimeoldtimeold/1000 secondsoldMath.floor(sectimeold); msPerDay24*60*60*1000 e_daysoldtimeold/msPerDay daysoldMath.floor(e_daysold); e_hrsold(e_daysold-daysold)*24; hrsoldsetzero(Math.floor(e_hrsold)); e_minsold(e_hrsold-hrsold)*60; minsoldsetzero(Math.floor((e_hrsold-hrsold)*60)); secondssetzero(Math.floor((e_minsold-minsold)*60)); document.getElementById(days).innerHTML已运行daysold天hrsold小时minsold分seconds秒; } function setzero(i){ if (i10) {i0 i}; return i; } show_date_time(); /script script typetext/javascript idclstr_globe src//cdn.clustrmaps.com/globe.js?d你自己的数字/script{% if site.tags.length 1 %}script typetext/javascript charsetutf-8 src{{ url_for(/js/tagcloud.js) }}/scriptscript typetext/javascript charsetutf-8 src{{ url_for(/js/tagcanvas.js) }}/scriptdiv classwidget-wraph3 classwidget-titleTag Cloud/h3div idmyCanvasContainer classwidget tagcloudcanvas width250 height250 idresCanvas stylewidth:100%{{ list_tags() }}/canvas/div/div {% endif %}{%- if theme.recent_posts %}div classlinks-of-recent-posts motion-elementdiv classlinks-of-recent-posts-title{%- if theme.recent_posts.icon %}i class{{ theme.recent_posts.icon }} fa-fw/i{%- endif %}{{ theme.recent_posts.title }}/divul classlinks-of-recent-posts-list{%- set posts site.posts.sort(date, desc).toArray() %}{%- for post in posts.slice(0, theme.recent_posts.max_count) %}li classlinks-of-recent-posts-item{{ next_url(post.path, post.title, {title: post.path}) }}/li{%- endfor %}/ul/div {%- endif %}另外在NexT主题的配置文件中也要修改下。 访客可视化以及建站时间效果。 文章标签词云以及最近推送文章效果。 3.3 背景图的替换以及下方背景色块设置 同样需要在根目录/source/_data下新建一个style.styl的新文件并输入如下的代码。 #days {display: block;color: rgb(7, 179, 155);font-size: 13px;margin-top: 15px; } body {background: url(http://media.gisersqdai.top/snzs.jpg);background-size: cover;background-repeat: no-repeat;background-attachment: fixed;background-position: 50% 50%; } // 页面底部页脚 .footer {line-height: 1.5;background-color: rgba(255, 255, 255, 0.75);color: #333;border-top-width: 3px;border-top-style: solid;border-top-color: rgb(161, 102, 171);box-shadow: 0px -10px 10px 0px rgba(0, 0, 0, 0.15); } // 选中文字部分的样式 ::selection {background-color: rgb(255, 241, 89);color: #555; }.links-of-recent-postsfont-size: 0.8125emmargin-top: 10px.links-of-recent-posts-titlefont-size: 1.03emfont-weight: 600margin-top: 0.links-of-recent-posts-listlist-style: nonemargin: 0padding: 0也需要在NexT配置文件中修改。 背景色块效果。 3.4 Daovoice 增加一个Daovoice支持的聊天界面。daovoice控制台。在next/layout/_partials/head/head.njk文件中加入如下代码。 {% if theme.daovoice %}script(function(i,s,o,g,r,a,m){i[DaoVoiceObject]r;i[r]i[r]||function(){(i[r].qi[r].q||[]).push(arguments)},i[r].l1*new Date();as.createElement(o),ms.getElementsByTagName(o)[0];a.async1;a.srcg;a.charsetutf-8;m.parentNode.insertBefore(a,m)})(window,document,script,(https: document.location.protocol ? https: : http:) //widget.daovoice.io/widget/0f81ff2f.js,daovoice)daovoice(init, {app_id: {{theme.daovoice_app_id}}});daovoice(update);/script {% endif %}NexT配置文件中增加。 效果图。 参考资料: 【Git】保姆级详解Git配置SSH Key密钥和公钥到githubgit设置SSH密钥“Cannot read property ‘match’ of undefined” during Npm install“internal/modules/cjs/loader.js:582 throw err”nodejs 报错 Error: EPERM: operation not permitted,mkdir‘xxxxxxxxxxxxxxxx‘Cannot read property ‘enable_sync’ of undefined解决Valine评论不显示的问题【解决方法】Valine评论不显示Valine评论异常解决为博客新增评论系统Next主题设置-安装Valine和Artitalkhexo d命令报错 ERROR Deployer not found: gitHexo主题中添加日历云功能hexo next主题添加日历云Hexo日历插件Hexo x NexT - 顯示最新文章、導入Google Analytics 的坑Hexo-NexT 设置近期文章hexo next主题添加日历云Hexo日历插件迎来船新版本的HexoNexT个人blog搭建指南github pages和hexo-theme-next【目录】HexoNexTGemini 搭建博客拥抱舒爽
http://www.hkea.cn/news/14573276/

相关文章:

  • 个人博客网站备案使用网站效果图
  • python 直播网站开发唐山做网站企业
  • 网站建设的七个步骤中英文网站是咋做的
  • 网站开发工程师岗位职责说明书如何下载字体到wordpress
  • 福州短视频seo网站一个静态网站多少钱
  • 两学一做专栏网站株洲网站建设优化
  • 做商城网站需要备案吗深圳信息职业技术学院
  • 龙岗南联网站建设十大黄金软件app免费
  • 网站举报12321网站程序 seo
  • 专门做顶账房的网站旅游网站建设可行性分析
  • 申报课题所需的网站怎么做小说推广赚钱
  • 网站手机源码深圳石岩网站建设
  • 旅游手机网站建设企业营销型网站建设价格
  • 门户网站流程图在线转格式网站怎么做
  • 郑州做网站托管装修十大风格
  • 谷歌网站地图生成三网合一网站建设计划
  • 外贸自建站收款通道使用net域名的大网站
  • 宜昌网站建设哪家好网站多国语言
  • 地方门户类网站怎么检查网站有没有被挂马
  • 怎么自建网站网站建设于朦胧
  • 19年做网站夜晚直播
  • 万网企业网站建设网页模板下载后怎么用
  • 效果图网站有哪些好的品牌网站设计提案
  • 空压机网站开发公司网站内容管理系统源码
  • wordpress html5 app外贸seo博客
  • iis6.0做网站压缩网络营销的网站分类有哪些
  • 免费建视频网站微信如何建设网站
  • 特殊教育学校网站建设方案设计制作生态瓶教案
  • 活动推广软文范例太原seo网络推广平台
  • 转入已备案网站课堂资源管理网站开发需求分析