Giter Site home page Giter Site logo

thomjiji.github.io's Introduction

Publishing Process

  1. After making any changes (such as adding new posts, adjusting styles, etc.), first perform a commit.

    git commit -m ""
  2. Next, build the entire site with the new changes. The static site will be built into the docs/ directory (for the GitHub page). Hugo default is public/.

    hugo
  3. Finally, commit once more to upload the built static site to GitHub.

    git commit -m "build: <message>"

    I use Conventional Commits.

Serve localhost

hugo server -D

Add new post

hugo new posts/new_post.md

Clean up before rebuild

Hugo will not automatically clean up static site in the docs/ directory for you, so every time you rebuild, the new content will be mixed with the old content. Although it rarely causes conflicts, it is better to run before rebuilding: rm -rf docs/* — with cautious!

See this issue: 'hugo clean'

About commits messages (deprecated)

A commit message preceded by a ↓ means that this is a build commit, and this build includes all commits since the last ↓.

9449266 ↓ Add content to about page, Changed menu order build  <----|
1cd1e90 Add content to about page, Changed menu order          <----|
6a9577e ↓ Menu Archive => Posts                         <----|
3505a41 Menu Archive => Posts                           <----|
78aae05 ↓ ajust dolby vision posts heading weight build        <----|
907c2c2 ajust dolby vision posts heading weight                     |
177f1a6 Reduce page title size                                 <----|

Link to post itself

Use the post's slug:

[Link to post]({{< ref "/posts/post-slug/" >}})

[Link to post](/posts/post-slug/)

Link to a specific heading or paragraph:

## My Header {#my-header}

Some paragraph here. {#custom-para}
[Header](/posts/post/#my-header)

[Paragraph](/posts/post/#custom-para)

thomjiji.github.io's People

Contributors

thomjiji avatar

Watchers

 avatar

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.