Skip to content

github-young/hugo-theme-next

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NexT.Gemini For Hugo

A Hugo theme NexT.Gemini forked from a Hugo theme NexT forked from a Hexo theme NexT.

Discription

NexT is a simple and animated theme. I transplanted it from Hexo to Hugo and used in my blog site.

Preview online

Now I am working to transplant it to Next.Gemini scheme.

Usage

  1. clone this repo.

  2. copy the cloned hugo-theme-next directory to themes directory in your hugo site.

  3. move config.toml to the root directory in your hugo site, and modify it to the actual information for your site.

  4. create by hugo new post/xxx.md some markdown files in directory(content/post).

  5. start hugo server in the site root directory: hugo server.

  6. open the url in browser.

Notes

  • Some Hexo's styles do not work now because of the differences between the Hugo template engine and the Hexo. (I will NOT update it constantly.)

  • This theme has been tested only in my blog site. Maybe it's not suitable for your requirements, you can customize it by your preferences.

  • Tested in Hugo version: 0.55

  • If you have any questions, please start an issue. (I will attend to them only if I have enough time.)

Markdown notes

  1. each markdown file starts with something like this (you can edit them in archetypes/default.md):

    ---
    title: "xxxxxxx"
    date: "2018-06-02"
    categories: ["Tech"]
    tags: ["Rust", "Programing"]
    toc: true
    ---
    
  2. add <!--more--> tag in your markdown for manual summary splitting (, otherwise the index page looks weird.)

Todo

  • Sidebar menu
  • Sidebar links
  • Auto toc display
  • Support i18n
  • Local Search
  • Syntax Highlighter (thanks to xulz)
  • LaTeX support

The above work was done when I forked it.

  • Fix the search function when baseUrl has subdomain. To get adapted on other sites, you need to modify the static/js/search.js. See the commit history.
  • Modification to Next.Gemini:
    • TOC in page
    • Capital URL path in tags and categories
    • Exact copy of NexT.Gemini (Not finished yet. Close enough for me.)

License

The MIT License.

About

Hugo theme NexT.Gemini. 一款Hugo NexT.Gemini主题.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 63.1%
  • JavaScript 21.1%
  • HTML 15.7%
  • Shell 0.1%