Follow these steps to add a new post on the website:
- Fork the
website
repository and create a new branch in your fork. - Create a new folder in the
content/blog-posts
folder with a name following the{DATE}-{ADDRESS}
format. - Create a file named
index.md
in the newly created directory. - Prepare the content in a Markdown file.
- Make a pull request.
- Wait for the review.
- After the merge, the site rebuilds automatically and the blog post appears.
The blog post should have the following format:
---
title: {TITLE}
author:
name: {AUTHOR}
tags:
- {TAG_1}
- {TAG_2}
- {TAG_3}
...
---
{CONTENT}
Replace these parameters with real values:
{DATE}
is your blog post's publication date, in theYYYY-MM-DD
format.{ADDRESS}
is the last part of the site's address in the location bar. For example, if you want your blog post to appear underhttps://kyma-project.io/blog/{DATE}/{ADDRESS}
, the name of your blog post folder should end with{ADDRESS}
. For example, name the folder 2019-02-14-release-notes-07 to point to thehttps://kyma-project.io/blog/2019/02/14/release-notes-07
link on the website.{AUTHOR}
is your name with an optional position name.{CONTENT}
is written in Markdown and/or HTML. The content must include the<!-- overview -->
comment which indicates the part of the blog post that will be displayed on the main page. The Read more button appears at the end of the paragraph.
NOTE: The
<!-- overview -->
comment cannot be placed at the beginning of the blog post. In such a case, the Read more button appears straight after the title of the blog post and the content itself is not displayed.
Example:
---
title: "Latin's not dead"
author:
name: "Cicero, Roman Philosopher"
tags:
- Lorem
- Ipsum
- Dolor
- Sit
- Amet
---
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
<!-- overview -->
Integer volutpat interdum eros a malesuada. Proin porttitor, leo eu dignissim posuere, ante nibh aliquam ipsum, pharetra pharetra nunc libero eu massa.
When writing a post you can determine what type it should be. By specifying the type, the content of the post is automatically adapted to the template of the given type. Specifying the type is optional. If you don't provide this information, the post renders in the default way.
To specify a type, you must provide it as metadata in the blog post:
---
...
type: {POST_TYPE}
{ADDITIONAL_FIELDS}
...
---
Currently, the release type is the only blog post type.
To create a release blog post, write release
in place of {POST_TYPE}
and replace {ADDITIONAL_FIELDS}
with these details:
releaseTag: {VERSION}
where:
{VERSION}
is the release Kyma version.
See an example that contains other metadata and the blog post content:
---
title: "Kyma 0.7 Dublin"
author:
name: "Barbara Szwarc, Technical Writer @Kyma"
tags:
- release-notes
type: release
releaseTag: "0.7.0"
---
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
<!-- overview -->
Integer volutpat interdum eros a malesuada. Proin porttitor, leo eu dignissim posuere, ante nibh aliquam ipsum, pharetra pharetra nunc libero eu massa.
To add the image to your blog post, copy the desired image to the folder with the index.md
file and write:
![{ALT_TITLE}](./{IMAGE_FILENAME} "{TEXT_WHILE_HOVERING}")
Replace these parameters with real values:
{ALT_TITLE}
is the text which appears if the image cannot appear for some reason.{TEXT_WHILE_HOVERING}
is the text which appears when you move the mouse pointer over the image. This parameter is optional.
You can use a link instead of a relative path to the image.
Example:
![Kyma logo](https://raw.githubusercontent.com/kyma-project/kyma/main/logo.png "Hover over me!")
However, it is advised to download the image, put it into the folder where the index.md
file is located, and refer to its relative path instead of an absolute link from the Internet.
You can also use HTML tags to show and position images:
<img src="{RELATIVE_PATH_OR_LINK}" />
See the example usage with mixed elements:
<p align="center">
<img src="./logo.png" width="235">
</p>
Use this pattern to add links to other blog posts:
[Another blog post](/blog/{DATE}/{ADDRESS})
where:
{DATE}
is the blog post's publication date, in theYYYY/MM/DD
format.{ADDRESS}
is the last part of the site's address in the location bar.
Example:
[Introduction](/blog/2018/07-24/introduction-project-kyma)
Use this pattern to add links to other documents:
[Overview - In a nutshell](/docs/{VERSION}/{DOCS_TYPE}/{DOC_TOPIC}/#{HASH})
where:
{VERSION}
is the version of the referenced documentation.{DOCS_TYPE}
is the type of documentation. The available types areroot
for documents related directly to Kyma, andcomponents
for the components documentation.{DOC_TOPIC}
is the metadata type of the referenced documentation.{HASH}
is an optional anchor link to the referenced documentation.
Examples:
[Overview - In a nutshell](/docs/main/root/kyma/#overview-in-a-nutshell)
[Create a bundle](/docs/main/components/helm-broker/#details-create-a-bundle)
For posts with release notes, put the release number in place of {VERSION}
. For example, the reference to the Helm Broker 0.8 documentation looks as follows:
[Configuration](/docs/0.8/components/helm-broker/#configuration-configuration)
For more information on how to write release notes, see this document.