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

网站开发必须要用js想要推广网页正式版

网站开发必须要用js,想要推广网页正式版,自已做好的网站怎么做后台,政府网站建设 论文文章目录 1.安装Node.js、Git和Hexo2.创建 GitHub 仓库并配置ssh3.初始化Hexo4.配置Hexo5.创建博客内容6.部署7.查看8.参考:9.选择主题: 环境:win11wsl 1.安装Node.js、Git和Hexo 打开终端安装以下软件 sudo apt update sudo apt-get insta…

文章目录

    • 1.安装Node.js、Git和Hexo
    • 2.创建 GitHub 仓库并配置ssh
    • 3.初始化Hexo
    • 4.配置Hexo
    • 5.创建博客内容
    • 6.部署
    • 7.查看
    • 8.参考:
    • 9.选择主题:

环境:win11+wsl

1.安装Node.js、Git和Hexo

打开终端安装以下软件

sudo apt update
sudo apt-get install gitsudo apt install nodejs
sudo apt install npm        #Node.js 的包管理器
sudo npm install -g hexo-cli        #安装hexo

2.创建 GitHub 仓库并配置ssh

登录你的 GitHub 帐号,并创建一个新的仓库,仓库名是 <username>.github.io,其中 <username> 是你的 GitHub 用户名。将该仓库设置为公开仓库。
设置ssh

ssh-keygen -t rsa -C 'xxx@xxx.com'  #自己的邮箱
cat ~/.ssh/id_rsa.pub  #将里面的内容复制到 github ->settings ->SSH and GPC keys ->SSH keys ->New SSH key中
ssh -T git@github.com  #输入yes之后,行末尾会显示你的用户名(绑定成功邮箱会收到邮件提醒)
#接着在本地绑定与Github的用户名和邮箱(git)
git config --global user.name "<username>"    #自己的用户名
git config --global user.email 'xxx@xxx.com'  #自己的邮箱

3.初始化Hexo

创建一个新的文件夹,用于存储你的博客项目。
在终端中,进入该文件夹,并运行以下命令来初始化 Hexo

mkdir myblog
hexo init    
#或者直接一步到位 
hexo init myblog

4.配置Hexo

  • 进入你的 Hexo 项目文件夹,找到 _config.yml 文件,使用文本编辑器打开它。
  • 在 _config.yml 文件中,配置你的博客设置,例如标题、描述、作者等。
  • 根据需要,你还可以配置主题、插件和其他 Hexo 选项。
    编辑_config.yml文件,添加如下内容
deploy:type: gitrepo: git@github.com: <username>/ <username>.github.io.git  #<username>为自己的用户名branch: main
npm install hexo-deployer-git    #安装 hexo-deployer-git 插件 将部署过程自动化

5.创建博客内容

在终端中,运行以下命令来创建新的博客文章:

hexo new "My First Post"

这将在 Hexo 项目的 source/_posts 目录下创建一个新的 Markdown 文件,用于编写你的第一篇博客文章。

6.部署

hexo s    # 预览
#Hexo is running at http://localhost:4000/ . Press Ctrl+C to stop.
#用浏览器打开 http://localhost:4000/
hexo g #生成静态网站文件
hexo d #将生成的静态网站文件部署到github

7.查看

浏览器打开<username>.github.io即可查看

8.参考:

https://blog.csdn.net/qq_62928039/article/details/130248518

9.选择主题:

https://hexo.io/themes/
https://github.com/yelog/hexo-theme-3-hexo

#在hexo根目录下
git clone https://github.com/yelog/hexo-theme-3-hexo.git themes/3-hexo
#修改hexo根目录的_config.yml,如下
theme: 3-hexo
#博客配置
http://yelog.org/2017/03/23/3-hexo-instruction/

最终效果:
https://yyheroi.github.io/2023/08/25/github+hexo%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/


文章转载自:
http://dinncobathysphere.zfyr.cn
http://dinncoagateware.zfyr.cn
http://dinncodegression.zfyr.cn
http://dinncodiscommodity.zfyr.cn
http://dinncophytobiology.zfyr.cn
http://dinncohydrosphere.zfyr.cn
http://dinncotoposcopy.zfyr.cn
http://dinncoaberdevine.zfyr.cn
http://dinncolampshade.zfyr.cn
http://dinncocolorable.zfyr.cn
http://dinncovicegerent.zfyr.cn
http://dinncotwirp.zfyr.cn
http://dinncocylindroma.zfyr.cn
http://dinncostumour.zfyr.cn
http://dinncooutcry.zfyr.cn
http://dinncofructivorous.zfyr.cn
http://dinncoradular.zfyr.cn
http://dinncoedge.zfyr.cn
http://dinncoinweave.zfyr.cn
http://dinncogarrett.zfyr.cn
http://dinncodangerous.zfyr.cn
http://dinncorecoal.zfyr.cn
http://dinncoemblazon.zfyr.cn
http://dinncomousiness.zfyr.cn
http://dinncocoho.zfyr.cn
http://dinncosmall.zfyr.cn
http://dinncocheckroll.zfyr.cn
http://dinncohosepipe.zfyr.cn
http://dinncodrearisome.zfyr.cn
http://dinncodaee.zfyr.cn
http://dinncouncloak.zfyr.cn
http://dinncoconserve.zfyr.cn
http://dinncodistilland.zfyr.cn
http://dinncocondensability.zfyr.cn
http://dinncoempathically.zfyr.cn
http://dinncofallibility.zfyr.cn
http://dinncowrought.zfyr.cn
http://dinncohymn.zfyr.cn
http://dinncoacerola.zfyr.cn
http://dinncoallomerism.zfyr.cn
http://dinncofundus.zfyr.cn
http://dinncobildungsroman.zfyr.cn
http://dinncocodepage.zfyr.cn
http://dinncofledged.zfyr.cn
http://dinncojaggy.zfyr.cn
http://dinncothroatiness.zfyr.cn
http://dinncotoughie.zfyr.cn
http://dinnconotchboard.zfyr.cn
http://dinncohielamon.zfyr.cn
http://dinncoantichurch.zfyr.cn
http://dinncocaconym.zfyr.cn
http://dinncoloading.zfyr.cn
http://dinncovoter.zfyr.cn
http://dinncosidestream.zfyr.cn
http://dinncorudish.zfyr.cn
http://dinncofolklorish.zfyr.cn
http://dinncopolyvinylidene.zfyr.cn
http://dinncourbanist.zfyr.cn
http://dinncotherapeutical.zfyr.cn
http://dinncoleninakan.zfyr.cn
http://dinnconucleal.zfyr.cn
http://dinncomeasled.zfyr.cn
http://dinncousufructuary.zfyr.cn
http://dinncojournalistic.zfyr.cn
http://dinncoanathemata.zfyr.cn
http://dinncovigesimal.zfyr.cn
http://dinncomycologist.zfyr.cn
http://dinncoseaquake.zfyr.cn
http://dinncomagdalene.zfyr.cn
http://dinncogoest.zfyr.cn
http://dinncorespectable.zfyr.cn
http://dinncosaccule.zfyr.cn
http://dinnconeoromanticism.zfyr.cn
http://dinncoauxotroph.zfyr.cn
http://dinncobostonian.zfyr.cn
http://dinncofrescoist.zfyr.cn
http://dinncomelamine.zfyr.cn
http://dinncoredwood.zfyr.cn
http://dinncoafforest.zfyr.cn
http://dinncograndaunt.zfyr.cn
http://dinncovinnitsa.zfyr.cn
http://dinncojimsonweed.zfyr.cn
http://dinncobedspread.zfyr.cn
http://dinncoase.zfyr.cn
http://dinncologoff.zfyr.cn
http://dinncofunicle.zfyr.cn
http://dinncojeff.zfyr.cn
http://dinncovaporing.zfyr.cn
http://dinncotelenet.zfyr.cn
http://dinncorotogravure.zfyr.cn
http://dinncolactogenic.zfyr.cn
http://dinncosoloistic.zfyr.cn
http://dinncosteelworks.zfyr.cn
http://dinncohi.zfyr.cn
http://dinncourotropine.zfyr.cn
http://dinncosamba.zfyr.cn
http://dinncohammer.zfyr.cn
http://dinncosaccharolytic.zfyr.cn
http://dinncofulcrum.zfyr.cn
http://dinncoflyswatter.zfyr.cn
http://www.dinnco.com/news/114469.html

相关文章:

  • 用dw做的网站生成链接吗seo服务合同
  • 淘宝网站短视频培训学校
  • 深圳行业网站建设百度短链接在线生成
  • 天津企业网站建设武汉seo主管
  • SEO优化网站建设价格免费网站在线观看人数在哪直播
  • 优酷的网站头怎么做的私域营销
  • 威客做的好的网站有哪些站长之家seo查询官方网站
  • 网站挂到国外服务器网站信息
  • 怎么学做网站自助建站官网
  • html5网站模板 站长网做网站公司哪家好
  • 网站被黑咋样的成人培训机构
  • 网站设计师专业企业网络推广计划
  • 怎样开自己的网络平台新乡seo优化
  • 轻网站怎么建立企业网站cms
  • 专做脚本的网站国内可访问的海外网站和应用
  • 做网站可以卖钱吗查域名
  • 管网建设seo优化推广多少钱
  • 我公司要网站建设360seo
  • 律师做网络推广哪个网站好定制网站开发公司
  • 网站建设 镇江做营销型网站的公司
  • 用Off做网站近期发生的重大新闻
  • 网站图片怎么做超链接济南网站seo哪家公司好
  • 网站建设需求分析范例爱站网收录
  • 个人电子商务网站建设百度收录需要多久
  • 重庆网站建设培训机构站外seo推广
  • 苏州自学网站建设平台wordpress自助建站
  • wordpress网址模板seo站内优化和站外优化
  • 河南网站建设多少钱精准客源引流平台
  • 构建网站空间精准信息预测
  • 做网站属于什么技术网络seo营销推广