All Projects → rozbo → Hexo Abbrlink

rozbo / Hexo Abbrlink

Licence: wtfpl
create one and only link for every post for hexo

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Hexo Abbrlink

Hexo Theme Book
A simple, elegant, book-like hexo theme with some useful features.
Stars: ✭ 166 (-21.7%)
Mutual labels:  hexo
Hexo Theme Butterfly
🦋 A Hexo Theme: Butterfly
Stars: ✭ 3,146 (+1383.96%)
Mutual labels:  hexo
Twikoo
一个简洁、安全、免费的静态网站评论系统 | A simple, safe, free comment system.
Stars: ✭ 195 (-8.02%)
Mutual labels:  hexo
Hexo Theme Mdui
Stars: ✭ 167 (-21.23%)
Mutual labels:  hexo
Hexo Theme Random
A hexo theme with random fullscreen background image.
Stars: ✭ 179 (-15.57%)
Mutual labels:  hexo
Hexo Theme Pln
📝 Plain theme for Hexo.
Stars: ✭ 186 (-12.26%)
Mutual labels:  hexo
Hexo Theme Cactus
🌵 A responsive, clean and simple theme for Hexo.
Stars: ✭ 2,139 (+908.96%)
Mutual labels:  hexo
Hexo Theme Hiero
An awesome magazine, blog theme for your Hexo site.
Stars: ✭ 209 (-1.42%)
Mutual labels:  hexo
Post Scheduler
Schedule posts & content updates for static websites (Jekyll, Hugo, Gatsby, Phenomic etc)
Stars: ✭ 184 (-13.21%)
Mutual labels:  hexo
Hexo Prism Plugin
Hexo plugin for code highlighting by prism.js, supporting JSX syntax
Stars: ✭ 195 (-8.02%)
Mutual labels:  hexo
Hexo Theme Nayo
一个简洁的Hexo主题.
Stars: ✭ 172 (-18.87%)
Mutual labels:  hexo
Vanilla Back To Top
Simple and smooth Back To Top button
Stars: ✭ 179 (-15.57%)
Mutual labels:  hexo
Hexo Theme Geektutu
极速加载的Hexo主题,不引入第三方JS库
Stars: ✭ 187 (-11.79%)
Mutual labels:  hexo
Hexo Theme Shana
what's a cool hexo theme!
Stars: ✭ 166 (-21.7%)
Mutual labels:  hexo
Hexo Theme Ochuunn
A simple green super hexo theme.
Stars: ✭ 202 (-4.72%)
Mutual labels:  hexo
Awesome Static Hosting And Cms
A collection of awesome static hosting & CMS providers
Stars: ✭ 163 (-23.11%)
Mutual labels:  hexo
Hexo Theme Laughing
A lightweight hexo theme
Stars: ✭ 185 (-12.74%)
Mutual labels:  hexo
Hexo Theme Jsimple
Simple three columns theme for Hexo.Inspired by JianShu.com
Stars: ✭ 210 (-0.94%)
Mutual labels:  hexo
Hexo Theme Hipaper
A fashional newspaper theme for Hexo.
Stars: ✭ 204 (-3.77%)
Mutual labels:  hexo
Hexo Theme Miho
🍺一款单栏响应式的hexo主题, A single column response for hexo . https://blog.minhow.com
Stars: ✭ 194 (-8.49%)
Mutual labels:  hexo

hexo-abbrlink

npm npm npm

A Hexo plugin to generate static post link based on post titles.

Suggest

https://github.com/rozbo/hexo-abbrlink2, supports the orderly growth of ID is beta now. The working principle of hexo-abbrlink2 is different from this plug-in, not as an upgraded version of this plugin, they are different individuals. But hexo-abbrlink2 is compatible with the previous configuration of this plugin. As a supplement to this plugin, use it only when you really need an orderly growing id.

How to install

Add plugin to Hexo:

npm install hexo-abbrlink --save

Modify permalink in config.yml file:

permalink: posts/:abbrlink/

There are two settings:

alg -- Algorithm (currently support crc16 and crc32, which crc16 is default)
rep -- Represent (the generated link could be presented in hex or dec value)
# abbrlink config
abbrlink:
  alg: crc32      #support crc16(default) and crc32
  rep: hex        #support dec(default) and hex
  drafts: false   #(true)Process draft,(false)Do not process draft. false(default) 
  # Generate categories from directory-tree
  # depth: the max_depth of directory-tree you want to generate, should > 0
  auto_category:
     enable: true  #true(default)
     depth:        #3(default)
     over_write: false 
  auto_title: false #enable auto title, it can auto fill the title by path
  auto_date: false #enable auto date, it can auto fill the date by time today
  force: false #enable force mode,in this mode, the plugin will ignore the cache, and calc the abbrlink for every post even it already had abbrlink.

Sample

The generated link will look like the following:

crc16 & hex
https://post.zz173.com/posts/66c8.html

crc16 & dec
https://post.zz173.com/posts/65535.html
crc32 & hex
https://post.zz173.com/posts/8ddf18fb.html

crc32 & dec
https://post.zz173.com/posts/1690090958.html

Limitation

[fixed] Maximum number of posts is 65535 for crc16. (now, if a abbrlink already exist, it will change another one and try again and again...)

More info

see this(Chinese)

ThanksFor

NoahDragon

Sponsor

The project is develop by JetBrains Ide

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].