Please follow these steps to add your blog to Falco blog folder:
- Fork the Falco repository.
- Clone the repository locally or work directly on GitHub.
- In the path
falco-website/content/en/blog/
create a directory to contain your Markdownindex.md
file and a subdirectory calledimages/
.- The directory name should not contain any space. For better readability, kebab-case is recommended (lowercase words separated by dashes).
- It is recommended to match the directory name to the slug of the blog post.
- Keep it short but informative.
- Example on GitHub:
falco-website/content/en/blog/gitops-your-falco-rules/ falco-website/content/en/blog/gitops-your-falco-rules/index.md falco-website/content/en/blog/gitops-your-falco-rules/images/
- Add related images to the images directory.
The recommended naming convention is to name them using the slug plus a sequence number.
gitops-your-falco-rules/images/ gitops-your-falco-rules/images/gitops-your-falco-rules-01.png gitops-your-falco-rules/images/gitops-your-falco-rules-02.png gitops-your-falco-rules/images/gitops-your-falco-rules-03.png gitops-your-falco-rules/images/gitops-your-falco-rules-04.png
- In case of addding a featured image, name it using the
-featured
suffix before the file extension. This setting will display the image at the top of the article substituting the default featured image.gitops-your-falco-rules/images/ .... gitops-your-falco-rules/images/gitops-your-falco-rules-featured.png
- Add file called
index.md
with the content of the article, like in this example. - Copy the following template at the top of the newly created
index.md
file and replace these fields with your data. The list of available tags can be found here.--- title: Article name date: 2023-01-01 author: FirstName FirstLastName, SecondName SecondLastName, ... slug: aricle-name-with-dashes tags: ["Falco", "Rules", ...] --- Content of the article ...
- Set the date of the blog post to the day it should be published. This field sets the order in which the posts are shown on the blog landing page.
- If it got merged before the date, it will not be displayed.
- It will be displayed in the preview render despite having a date in the future.
- In the header of the
index.md
file (the front matter), set the web featured image. It will be displayed when sharing the blog post on social networks.- Use the URL path (without the domain name). If the slug does't match the directory name, use use the former.
- The recommended size of the featured image is 1200 x 628 pixels.
- Add only one featured image to this list that will be displayed as cover. Make sure that the file name contains the word
featured
. - Example:
--- title: GitOps your Falco Rules ... slug: gitops-your-falco-rules images: - /blog/gitops-your-falco-rules/images/gitops-your-falco-rules-featured.png ---
- Create a pull request to the Falco repository with your changes.
- Uncomment the
/kind content
and/area blog
lines to set the right labels. - Add any relevant information to the PR message.
- Uncomment the