Skip to content

Commit 272e002

Browse files
committed
Add
1 parent 552fdeb commit 272e002

File tree

10 files changed

+51
-46
lines changed

10 files changed

+51
-46
lines changed

_demo/pages/01.home/default.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
title: Home
3+
---
4+
5+
# Grav is Running!
6+
## You have installed **Grav** successfully
7+
8+
Congratulations! You have installed the **Base Grav Package** that provides a **simple page** and the default **antimatter** theme to get you started.
9+
10+
>>>>> If you want a more **full-featured** base install, you should check out [**Skeleton** packages available in the downloads](http://getgrav.org/downloads).
11+
12+
### Find out all about Grav
13+
14+
* Learn about **Grav** by checking out our dedicated [Learn Grav](http://learn.getgrav.org) site.
15+
* Download **plugins**, **themes**, as well as other Grav **skeleton** packages from the [Grav Downloads](http://getgrav.org/downloads) page.
16+
* Check out our [Grav Development Blog](http://getgrav.org/blog) to find out the latest goings on in the Grav-verse.
17+
18+
### Edit this Page
19+
20+
To edit this page, simply navigate to the folder you installed **Grav** into, and then browse to the `user/pages/01.home` folder and open the `default.md` file in your [editor of choice](http://learn.getgrav.org/basics/requirements). You will see the content of this page in [Markdown format](http://learn.getgrav.org/content/markdown).
21+
22+
### Create a New Page
23+
24+
Creating a new page is a simple affair in **Grav**. Simply follow these simple steps:
25+
26+
1. Navigate to your pages folder: `user/pages/` and create a new folder. In this example, we will use [explicit default ordering](http://learn.getgrav.org/content/content-pages) and call the folder `02.mypage`.
27+
2. Launch your text editor and paste in the following sample code:
28+
29+
---
30+
title: My New Page
31+
---
32+
# My New Page!
33+
34+
This is the body of **my new page** and I can easily use _Markdown_ syntax here.
35+
36+
3. Save this file in the `user/pages/02.mypage/` folder as `default.md`. This will tell **Grav** to render the page using the **default** template.
37+
4. That is it! Reload your browser to see your new page in the menu.
38+
39+
>>> NOTE: The page will automatically show up in the Menu after the "Home" menu item. If you wish to change the name that shows up in the Menu, simple add: `menu: My Page` between the dashes in the page content. This is called the YAML front matter, and it is where you configure page-specific options.

_demo/pages/01.home/post-list.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

_demo/pages/02.about/avatar.jpg

-37.5 KB
Binary file not shown.
-111 KB
Binary file not shown.

_demo/pages/01.home/an-example-post/post.md renamed to _demo/pages/02.blog/an-example-post/post.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ taxonomy:
77
- whoop
88
category:
99
- blog
10-
routable: true
11-
cache_enable: true
12-
visible: true
13-
published: true
14-
disqus: false
1510
---
1611

1712
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

_demo/pages/02.blog/blog.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: Blog
3+
header: true
4+
class: home
5+
content:
6+
items: '@self.children'
7+
order:
8+
by: date
9+
dir: desc
10+
limit: 5
11+
pagination: true
12+
---
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ taxonomy:
66
- grav
77
category:
88
- blog
9-
routable: true
10-
cache_enable: true
11-
visible: true
12-
published: true
13-
disqus: false
149
---
1510

1611

_demo/pages/01.home/getting-started/post.md renamed to _demo/pages/02.blog/getting-started/post.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ taxonomy:
66
- grav
77
category:
88
- blog
9-
routable: true
10-
cache_enable: true
11-
visible: true
12-
published: true
13-
disqus: false
149
---
1510

1611
Grav is very easy to install. Because it does not require a database, installation can be as simple as unzipping the Grav core (or a skeleton) in the server directory you wish to have your Grav install appear.

_demo/pages/01.home/welcome-to-grav/post.md renamed to _demo/pages/02.blog/welcome-to-grav/post.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ taxonomy:
66
- grav
77
category:
88
- blog
9-
routable: true
10-
cache_enable: true
11-
visible: true
12-
published: true
13-
disqus: false
149
---
1510

1611
You'll find this post in your `user/pages/01.blog/welcome-to-grav` folder - edit this post and reload the browser to see your changes.
File renamed without changes.

0 commit comments

Comments
 (0)