You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+43Lines changed: 43 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,3 +67,46 @@ Go to `featured-venues.json` and add to the bottom. Make sure that you are using
67
67
- How do I deploy new changes?
68
68
69
69
Create a new branch (`git checkout -b my-branch-name`), commit as normal, then push your branch and open a PR. When your change lands on `main` it will be deployed to the web automatically.
70
+
71
+
- How do I add a new blog post?
72
+
73
+
Create a markdown file under `static/blog-assets/posts`. The filename will be the slug in the URL. It can technically be anything, but the convention is `year-month-date-keyword.md` for consistency. Write a post by taking the following steps:
74
+
75
+
1. Write meta data for sorting and linking. At the top of your markdown file, write meta data between `---` and `---` in YAML format.
76
+
77
+
```yaml
78
+
---
79
+
date: 2017-10-31# required. year-month-date
80
+
title: "Introducing Vega-Lite 2.0"# required. in quotes
81
+
banner: "../blog-assets/images/2017-10-31-vegalite2-banner.webp"# optional. if provided, it appears before the title.
82
+
paper: vega-lite # optional paper keyword. if provided, it will create a link to the paper under the title.
83
+
headlinener: "..."# optional if you want to have some special summary for your post. Make sure it is about 100 letters. If external is provided (see below), it is required.
84
+
external: URL # if it is posted on an external blog, then just provide that url here. While you are still need to say something in the post for parsing purposes, it will be ignored. To do so, headliner must be provided.
85
+
---
86
+
```
87
+
88
+
2. Write your post below the meta data. Use common markdown formatting options. Here are some special cases:
89
+
90
+
a. Image caption:
91
+
92
+
```
93
+

94
+
*your caption goes here.*
95
+
```
96
+
97
+
b. Horizontally placing images (the line changes are all intentional):
98
+
99
+
```
100
+
<div class="image image-flex">
101
+
102
+

103
+
104
+

105
+
</div>
106
+
107
+
*Your caption goes here.*
108
+
```
109
+
110
+
3. Store images in `static/blog-assets/images` directory. For maintenence purposes, name your images starting with your post's file name.
111
+
112
+
4. Supported headlines `<h2>` (`##`) and `<h3>` (`###`).
0 commit comments