From 1bf8ce8c235a549467ca2767e0e3651a7ea89538 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Sat, 20 May 2023 14:20:04 +0300 Subject: [PATCH] Fix some problems with templates --- snippets/articles/story-template.md | 2 +- snippets/css/story-template.md | 24 +----------------------- snippets/git/story-template.md | 24 +----------------------- snippets/html/snippet-template.md | 23 +++++++++++++++++++++++ snippets/html/story-template.md | 12 ++++++++++++ snippets/js/story-template.md | 24 +----------------------- snippets/python/story-template.md | 24 +----------------------- snippets/react/story-template.md | 24 +----------------------- 8 files changed, 41 insertions(+), 116 deletions(-) create mode 100644 snippets/html/snippet-template.md create mode 100644 snippets/html/story-template.md diff --git a/snippets/articles/story-template.md b/snippets/articles/story-template.md index 3f5d8cd08..6a47a87ad 100644 --- a/snippets/articles/story-template.md +++ b/snippets/articles/story-template.md @@ -10,4 +10,4 @@ excerpt: A short summary of your story up to 140 characters long. dateModified: 2021-06-13T05:00:00-04:00 --- -Write your blog post here. +Write your story here. diff --git a/snippets/css/story-template.md b/snippets/css/story-template.md index 470c8d3fa..5a1f282fb 100644 --- a/snippets/css/story-template.md +++ b/snippets/css/story-template.md @@ -9,26 +9,4 @@ excerpt: A short summary of your story up to 140 characters long. dateModified: 2021-06-13T05:00:00-04:00 --- -Explain briefly what the snippet does. - -- Explain briefly how the snippet works. -- Use bullet points for your snippet's explanation. -- Try to explain everything briefly but clearly. - -```html -
-``` - -```css -.my-snippet { - background-color: #fff; - border: 1px solid #000; - border-radius: 4px; -} -``` - -```js -console.log( - "This is optional, if your snippet doesn't require JavaScript, be sure to delete this block!" -) -``` +Write your story here. diff --git a/snippets/git/story-template.md b/snippets/git/story-template.md index fb9e8d508..bb365c4e1 100644 --- a/snippets/git/story-template.md +++ b/snippets/git/story-template.md @@ -9,26 +9,4 @@ excerpt: A short summary of your story up to 140 characters long. dateModified: 2021-06-13T05:00:00-04:00 --- -Explain briefly what the snippet does. - -- Explain briefly how the snippet works. -- Use bullet points for your snippet's explanation. -- Try to explain everything briefly but clearly. - -```html -
-``` - -```css -.my-snippet { - background-color: #fff; - border: 1px solid #000; - border-radius: 4px; -} -``` - -```js -console.log( - "This is optional, if your snippet doesn't require JavaScript, be sure to delete this block!" -) -``` +Write your story here. diff --git a/snippets/html/snippet-template.md b/snippets/html/snippet-template.md new file mode 100644 index 000000000..97d2b39d2 --- /dev/null +++ b/snippets/html/snippet-template.md @@ -0,0 +1,23 @@ +--- +title: Snippet name +type: snippet +language: html +tags: [link] +cover: image +dateModified: 2021-06-13T05:00:00-04:00 +--- + +Explain briefly what the snippet does. + +- Explain briefly how the snippet works. +- Use bullet points for your snippet's explanation. +- Try to explain everything briefly but clearly. + +```shell +git command [--option] +``` + +```shell +git command some-branch --quiet +# Output of running command on `some-branch` +``` diff --git a/snippets/html/story-template.md b/snippets/html/story-template.md new file mode 100644 index 000000000..9fe83ed39 --- /dev/null +++ b/snippets/html/story-template.md @@ -0,0 +1,12 @@ +--- +title: My amazing story +shortTitle: Amazing story +type: story +language: html +tags: [link] +cover: image +excerpt: A short summary of your story up to 140 characters long. +dateModified: 2021-06-13T05:00:00-04:00 +--- + +Write your story here. diff --git a/snippets/js/story-template.md b/snippets/js/story-template.md index fe25d1010..dd04ecb53 100644 --- a/snippets/js/story-template.md +++ b/snippets/js/story-template.md @@ -9,26 +9,4 @@ excerpt: A short summary of your story up to 140 characters long. dateModified: 2021-06-13T05:00:00-04:00 --- -Explain briefly what the snippet does. - -- Explain briefly how the snippet works. -- Use bullet points for your snippet's explanation. -- Try to explain everything briefly but clearly. - -```html -
-``` - -```css -.my-snippet { - background-color: #fff; - border: 1px solid #000; - border-radius: 4px; -} -``` - -```js -console.log( - "This is optional, if your snippet doesn't require JavaScript, be sure to delete this block!" -) -``` +Write your story here. diff --git a/snippets/python/story-template.md b/snippets/python/story-template.md index 6d6d47082..5ba500f1c 100644 --- a/snippets/python/story-template.md +++ b/snippets/python/story-template.md @@ -9,26 +9,4 @@ excerpt: A short summary of your story up to 140 characters long. dateModified: 2021-06-13T05:00:00-04:00 --- -Explain briefly what the snippet does. - -- Explain briefly how the snippet works. -- Use bullet points for your snippet's explanation. -- Try to explain everything briefly but clearly. - -```html -
-``` - -```css -.my-snippet { - background-color: #fff; - border: 1px solid #000; - border-radius: 4px; -} -``` - -```js -console.log( - "This is optional, if your snippet doesn't require JavaScript, be sure to delete this block!" -) -``` +Write your story here. diff --git a/snippets/react/story-template.md b/snippets/react/story-template.md index 06150ce0e..ff2045ec2 100644 --- a/snippets/react/story-template.md +++ b/snippets/react/story-template.md @@ -9,26 +9,4 @@ excerpt: A short summary of your story up to 140 characters long. dateModified: 2021-06-13T05:00:00-04:00 --- -Explain briefly what the snippet does. - -- Explain briefly how the snippet works. -- Use bullet points for your snippet's explanation. -- Try to explain everything briefly but clearly. - -```html -
-``` - -```css -.my-snippet { - background-color: #fff; - border: 1px solid #000; - border-radius: 4px; -} -``` - -```js -console.log( - "This is optional, if your snippet doesn't require JavaScript, be sure to delete this block!" -) -``` +Write your story here.