提交 fd486cdc 编写于 作者: L liyongle

update the design and add one sample post.

上级 983417b3
+++
title = "Sample Post"
date = "2020-03-03"
tags = ["Sample", "ABC", "cccc"]
archives = "2020-03"
author = "openEuler Blog Maintainer"
summuary = "Just about everything you'll need to style in the theme: headings, paragraphs, blockquotes, tables, code blocks, and more."
+++
## HTML Elements
Below is just about everything you'll need to style in the blog.
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
### Body text
This blog is about bla bla. **This is strong**.
![openEuler is open](/content/_example/2020-03-03-sample-post-01.png)
### Quotation
> The sites that have been chosen are listed and described next to each work, with encapsulating quotes or pieces of text narrating central themes for the groups.
## List Types
### Ordered Lists
1. Item one
1. sub item one
2. sub item two
3. sub item three
2. Item two
### Unordered Lists
* Item one
* Item two
* Item three
## Tables
| Header1 | Header2 | Header3 |
|:--------|:-------:|--------:|
| cell1 | cell2 | cell3 |
| cell4 | cell5 | cell6 |
|----
| cell1 | cell2 | cell3 |
| cell4 | cell5 | cell6 |
|=====
| Foot1 | Foot2 | Foot3
{: rules="groups"}
## Code
```
struct async_entry {
struct list_head domain_list;
struct list_head global_list;
struct work_struct work;
async_cookie_t cookie;
async_func_t func;
void *data;
struct async_domain *domain;
};
```
## Attachment
Download the file here download:
[get the PNG](/content/_example/2020-03-03-sample-post-01.png) directly.
......@@ -2,13 +2,14 @@
This file is to explain in which way the content of the blogs are stored and read by the blog system.
## What is supported in the blog
A blog can include many formats of information, like text, pictures, videos, annimations or others.
A blog can include many formats of information, like text, pictures, videos, animations or others.
openEuler Blog is designed to support the following formats:
1. text
2. static picture
3. links
4. animation
## Folder design
The content of blogs are under ./content
......@@ -17,12 +18,14 @@ The content of blogs are under ./content
|__ _example --list the some blog examples
|__ guidance --house the guidance to post and maintain the blogs
|__ post --house all the final posts
|__ yyyymmdd --house the blogs by months, such as 202002
|__ author_1 --house the blogs by authors' gitee ID, and each author need create your own foler by your id.
|__ author_2 --house the blogs by authors' gitee ID
```
## Post content design
### File name
To create a post, add a file to your _post/yyyymmdd/_ directory with the following format:
To create a post, add a file to your _post/author_1/_ directory with the following format:
```
YEAR-MONTH-DAY-title.MARKUP
......@@ -59,7 +62,7 @@ The following are one example.
```
2020-01-01-new-years-is-coming.md
2020-01-01-new-years-is-coming-01.png
2020-01-01-new-years-is-coming-02.png
2020-01-01-new-years-is-coming-02.gif
2020-01-01-new-years-is-coming-03.pdf
```
Then, from within any post, they can be linked to using the site’s root as the path for the asset to include. Here are some simple examples in Markdown:
......@@ -67,7 +70,7 @@ Then, from within any post, they can be linked to using the site’s root as the
Including an image asset in a post:
```
... which is shown in the screenshot below:
![The architecture](/content/post/yyyymm/2020-01-01-new-years-is-coming-01.png)
![The architecture](/content/post/author1/2020-01-01-new-years-is-coming-01.png)
```
Linking to a PDF for readers to download:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册