-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add template logic and update readme with instructions for katya
- Loading branch information
Showing
7 changed files
with
55 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
# Проверка, что передан ровно один параметр | ||
if [ "$#" -ne 1 ]; then | ||
echo "Usage: $0 <название фильма на английском без пробелов>" | ||
exit 1 | ||
fi | ||
|
||
# Сохранение параметра в переменную | ||
parameter=$1 | ||
|
||
cp -R src/content/filmTemplateFolder src/content/films/$parameter | ||
|
||
mv src/content/films/$parameter/filmTemplate.md src/content/films/$parameter/$parameter.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
youtubeVideoId: W593Yn9aMMM | ||
previewImg: "./preview.jpg" | ||
trailerVideo: "video.mov" | ||
--- | ||
|
||
# Заголовок | ||
|
||
Текст |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Binary file not shown.