What’s new in this theme?

Compared with orignal even, my theme added new functions as follows:

  1. Dark/Light mode.
  2. Solve Mathjax bug (quite important for latex users).
  3. Add “print the page as pdf” option (just right click and select “print…” to have a try).
  4. Upgrade fancybox gallery to 5.0 for the aim of dark mode compatibility.
  5. Some other tiny changes such as excluding some posts from archives…

I don’t make a pull request to the original even since the owner seems to be disappeared. And my codes are a little messy that I do not have time to distinguish them into several independent commits.

Usage

  1. First, clone my repsoitory.

    1
    
    git clone https://github.com/rzy0901/rzy0901.github.io.git
    
  2. Use my built hugo with goldmark support, which could solve the mathjax bug driven by backslash \ in your markdown document:

    https://github.com/rzy0901/hugo/releases/tag/v1.0.0

  3. If you are using github page to deploy, you can try my github action template build.yml (You might need to set up a personal token using Secrets and variables in your repository settings):

    image-20231114183632201

  4. Run hugo server and preview your website at localhost:1313.

  5. Edit personal informations in config.toml and /themes/even/layouts/_default/baseof.html.

  6. Create a new post, which will generate default flags defined in default.md:

    1
    
    hugo new post/test.md
    
  7. I have set the relative filepath just match the local makrdown editor typora by above default.md, so just enjoy typing!

    • Screenshot 1 (image post): image-20231114185640859

    • Screenshot 2 (equation post):

      image-20231114185855970