From 0d238ed8a0f8383b8435a7d3b8e227b43d5b08be Mon Sep 17 00:00:00 2001 From: Adam Veldhousen Date: Sat, 4 Jan 2020 18:11:38 -0600 Subject: [PATCH] add some tips for blogging to my default.md --- archetypes/default.md | 98 +++++++------------------------------------ 1 file changed, 14 insertions(+), 84 deletions(-) diff --git a/archetypes/default.md b/archetypes/default.md index 592696b..eaec1e6 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -4,100 +4,31 @@ date: {{ .Date }} draft: true tags: [] --- -Headers -# Header 1 -## Header 2 -### Header 3 -#### Header 4 #### -##### Header 5 ##### -###### Header 6 ###### +# Default post template -*Emphasize* _emphasize_ -**Strong** __Strong__ -A [link](http://example.com "Title"). -Some text with [a link][1] and another [link][2]. +## Writing tips +1. Find a good topic and commit to it + eg how to get started blogging -[1]: http://example.com/ "Title" -[2]: http://example.org/ "Title" +2. Make your goals and audience specific + Who is my Audience: eg People who want to start blogging, especially about technical topics, but haven’t done it yet. + What is my Goal: eg. Give people a concrete set of steps and pointers so they can get started. -Logo: ![Alt](/wp.png "Title") -Smaller logo: ![Alt][1] -[1]: /wp-smaller.png "Title" +3. Have a beginning, middle, and end -Linked logo: [![alt text](/wp-smaller.png)] (http://wordpress.com/ "Title") +4. Get feedback and iterate -Lists +5. Add finishing touches: packaging, publication, and promotion -1. Item -2. Item - * Mixed - * Mixed - - or dash -3. Item +From [freeCodeCamp: How to write a great technical blog post][1] -Blockquotes +[1]: https://www.freecodecamp.org/news/how-to-write-a-great-technical-blog-post-414c414b67f6/ -> Quoted text. -> > Quoted quote. -> * Quoted -> * List +## Syntax highlighting example - - Quoted text. - - Quoted quote. - - Quoted - List - -Preformatted - - Begin each line with - two spaces or more to - make text look - e x a c t l y - like you type i - t. - - -Begin each line with -two spaces or more to -make text look -e x a c t l y -like you type i -t. - -Code - -`This is code` - - This is code -Code block - -~~~~ -This is a -piece of code -in a block -~~~~ - -``` -This too -``` - -Syntax highlighting - -```css -#button { - border: none; -} -``` - -Example code - -```go -{{}} +```go {linenos=table,hl_lines=8 15-17,linenostart=199} // GetTitleFunc returns a func that can be used to transform a string to // title case. // @@ -120,5 +51,4 @@ func GetTitleFunc(style string) func(s string) string { return tc.Title } } -{{}} ```