This is a modified Hugofy extension with extra support for hugo Page Bundles
Hugofy is a plugin for Visual Studio Code to make life easier to use Hugo static site generator
-
Create new hugo site
-
Create posts (support right click on folder)
-
Build site
-
Run and stop server
-
Download available hugo themes.
-
Right click on current folder to Create post relative to current folder
-
Auto normalize path name to slug friendly path
Currently supports, but not limited to, the following scripts:
- Latin: e.g. English, français, Deutsch, español, português
For example:
Cyrillic:
Я люблю русский/index.md
=>ya-lyublyu-russkij/index.md
Use command pallete Ctrl+Shift+P
and type Hugofy
Once the server has been started you can view the output by directing your browser to: http://localhost:9081
create post via command pallete
Ctrl+Shift+P
, the file path is relative tocontent/post
directory.create post via right click on current folder, the file path is relative to current folder.
this extension saved current theme name in .vscode/launch.json
.
you can set new theme for this extension with the Hugoy: Set Theme
command via command pallete (press Ctrl+Shift+P
to enter)
eamodio.tsl-problem-matcher
extension provides $ts-webpack
, you need install it:
ext install eamodio.tsl-problem-matcher
git clone https://github.com/ttys3/hugofy-vscode.git
cd ./hugofy-vscode
code .
# press F5 start
for some themes which need specific config,
you'll need copy config to your config.toml
from themes/[Hugo theme name]/exampleSite/config.toml
after new theme installed,
otherwise the theme will not work
the default keybindings, for example ctrl+shift+h s
means press ctrl+shift+h
first and release, then press s
.
it may shadows the default ctrl+shift+h
keybinding which used for Search: Replace in Files
,
you can change the extension keybindings yourself if you really need get the original ctrl+shift+h
keybinding back.
- refactor: prefetch theme list: only work on a hugo project
- refactor: new post prompt: default filename to empty. slug: only process latin1
- fix: fixup default keybindings
- refactor: add default keybindings, show message on success build
- refactor: change theme config key to
hugo.defaultTheme
sincelaunch.json
is general - fix: fix extension recommendations
- fix: theme dir for
xxx-theme
ortheme-xxx
- fix: do not check theme exists on non-hugo site directory
- fix: newPost: show detailed error message
- fix: set correct theme name from config on extension activation
- fix: check theme exists, if not, notify the user to "Set Theme"
- fix: fixup path problem under Windows
- refactor: add actions when theme download failed or succeed
- refactor: optimized download theme feature
- fix: Windows path separator
- refactor: check hugo in PATH or not, if not notify the user
- fix: show detailed build error
- refactor: show hugo server start error details
- refactor: optimized set theme and download theme feature
- refactor: open local hugo blog: prevent browser cache problem
- fix: check theme set or not before newPost(), show detailed error on new site error
- docs: update README.md
- fix: fixup set theme
- fix: fixup theme download
- refactor: refine console log
- docs: update development document
-
use transliteration instead of limax which cause problem under webpack and has too many dependencies
-
use webpack to bundle the extension, thanks this PR
- chore: fixup getThemesList.ts line ending (CRLF to LF)
- docs: updated CHANGELOG.md and README.md
- chore: extension logo added
- docs: updated CHANGELOG.md and README.md
- refactor: lint the code, more friendly error message
- fix: do not start the server again if already started
- feat: add
New Post
action on current folder right click event - feat: support normalize path name to slug friendly path
[Fix] Fixed start server error
[Fix] Server Stop works on windows
Initial Release