YuShuanHsieh / hugo-langs-symlink

A tool to create symbolic links for Hugo multi-lang sites

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hsLink

Build Status codecov

A tool to create symlinks for hugo multi-langs sites.

Description

hsink tool helps you to create symbolic links for these untranslated pages of Hugo multi-lang site, so that user can see the page with the default language instead of page missing.

Usage

Subcommand

  1. create(c): create symlinks
  2. remove(r): remove symlinks

Params

Param Description Example
dir the path of content folder --dir=$PWD/content
langs supported langs --langs="zh" --langs="zh-tw"
skips the folders you want to skip --skips="iamges"
ext target file extension --ext=.md (default value is .md)

Example

--dir=/home/user/site/content --langs="zh" --langs="zh-tw" --skips="images" create

About

A tool to create symbolic links for Hugo multi-lang sites

License:MIT License


Languages

Language:Go 100.0%