Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
fix(Hugo): Not creating post correctly inside folders
Browse files Browse the repository at this point in the history
  • Loading branch information
iakdis committed May 4, 2023
1 parent bba1b49 commit 5fa0811
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/ssg/ssg.dart
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,10 @@ class SSG {
// Create post
switch (ssg) {
case SSGTypes.hugo:
final afterContent =
path.substring(path.indexOf(contentFolder) + contentFolder.length);
final finalPathAndName =
'$contentFolder${Platform.pathSeparator}$name.md';
'$contentFolder$afterContent${Platform.pathSeparator}$name.md';

const executable = 'hugo';
final allFlags = 'new $finalPathAndName $flags';
Expand Down

0 comments on commit 5fa0811

Please sign in to comment.