Git Product home page Git Product logo

twbworld.github.io's Introduction

twbworld.github.io

外部临时浏览本地

例: hugo server -D --i18n-warnings --bind 127.0.0.1 -p 1314 --baseURL=http://127.0.0.1:1314

在内网上访问http://127.0.0.1:1314浏览
1313端口,是hugo本地localhost默认的端口,所以这里另用了1314

生成本地;-D:草稿也强制生成页面;-d:指定生成文件的地方

例: hugo -D -d dev

运行hugo -D -d dev前,先删除dev下的文件rm -rfv dev/*

生成正式环境文件

例:hugo

运行hugo前,先删除public下的文件rm -rfv public/*

新建博客文章

例:hugo new --kind post post/如何使用Hugo

如何使用Hugo是一个文件夹名,也默认了是文章标题,里面含有自动生成的index.md

PS

  • robots.txt等文件位于static下
  • sitemap.xml会自动生成
  • .github/workflows 下存在 CI/CD 配置 , 可自动化发布

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.