Skip to content

Commit

Permalink
🤡: Week padding
Browse files Browse the repository at this point in the history
  • Loading branch information
21r8390 committed Dec 3, 2022
1 parent 89cc435 commit e06b2ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,4 @@ Trotzdem ist das Projekt noch nicht `100%` fertig. Es fehlt noch, dass das UI au

- Zip in Mail
- Redis für Sessions
- Mehr Testdaten
2 changes: 1 addition & 1 deletion app/app/services/ProjectGeneratorService.php
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ private function createMkdocsYml(string $docsDirectory, Project $project, User $
// Journal
$journal = '';
for ($i = 1; $i <= $amountOfWeeks; $i++) {
$journal .= ' - "' . $i . '. Week": "journal/Week ' . $i . '.md"' . PHP_EOL;
$journal .= ' - "' . $i . '. Week": "journal/' . str_pad($i, 3, '0', STR_PAD_LEFT) . '_Week.md' . '"' . PHP_EOL;
}

$this->replaceTemplateLiterals($projectMkdocsPath, [
Expand Down

0 comments on commit e06b2ec

Please sign in to comment.