A place where you can actively contribute to robinwieruch.de. Feel free to improve the content or to write a guest blog post yourself. Get in touch with me before you start writing an entire article :)
- option A: provide the blog post on GoogleDrive with a shareable link
- option B: provide the blog post here on GitHub by adding a file for the article next to the other files
You can leave out all the meta information (frontmatter) that I use for my blog posts. I can add these later myself.
Don't use images for code. Instead use a code snippet the following way:
{{< highlight javascript >}}
const helloWorld = "Hello World!";
{{< /highlight >}}
If you want to highlight changes in the code, that's what I usually do in my tutorials, then you can do it by providing the numbers of lines you want to highlight:
{{< highlight javascript "hl_lines=3" >}}
const helloWorld = "Hello World!";
console.log(helloWorld);
{{< /highlight >}}
If you move around from file to file in your tutorial, don't forget to mention the place where you edit/create the next code snippet. Something like:
Now we are going to implement user model in the src/models/user.js file:
{{< highlight javascript >}}
const user = createModel('user');
{{< /highlight >}}
Don't use images for code. Instead use code snippets. If you want to have images in the blog post, add them in at least 1024 (x 768)resolution preferable in .jpg to a shared GoogleDrive (or any other cloud storage) folder. In the article, reference the filename of the image with a placeholder like [image the-dashboard.jpg]
.
There are many tutorials out there that are using lots of images to show a GUI where they do their configuration. I'd like to use as few images as possibles and encourage people to use more often their command line instead. If the a GUI needs to be shown, then an image can be used though.
I use Prettier in my projects which helps me to keep all my code snippets equally formatted. That's my default configuration:
{
"semi": true,
"trailingComma": "all",
"singleQuote": true,
"printWidth": 70
}
- h1 headline translates to {{% chapter_header "My Headline" "my-headline" %}}
- h2 headline translates to {{% sub_chapter_header "My Sub Headline" "my-sub-headline" %}}
The second parameter can be used for a table of contents:
{{% chapter_header "Table of Contents" "toc" %}}
* [My Headline](#my-headline)
* [My Sub Headline](#my-sub-headline)
My articles usually follow the same structure with optional sub_chapter_headers in between:
Motivation
{{% chapter_header "My Headline" "my-headline" %}}
{{% chapter_header "My Headline" "my-headline" %}}
<hr class="section-divider">
Outro
I usually use italics with *
for folders and files like src/models/user.index/js
or src/
.
I usually use bold with **
to point out the importance of something or to highlight a specific topic in a paragraph.