Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
bangnokia committed Mar 23, 2024
1 parent c9f6746 commit d758feb
Showing 1 changed file with 43 additions and 1 deletion.
44 changes: 43 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,48 @@
# Lina PHP - lightweight and blazing fast static blog generator

Lina is an opinionated flat-file CMS for who want a simple and fast blog. The template using `Blade` template engine, so you can use all Blade features.
**Lina** is an opinionated flat-file CMS for who want a simple and fast blog. The template using Blade template engine, so you can use all Blade features.

To help you get started, we have created a few example posts. You can find them in the `content/posts` directory.

## Requirements
- PHP 8.3

## Getting started
```bash
lina new my-blog
```

### Create a blog
```bash
composer global require bangnokia/lina
```

### Folder structure
```
content/
posts/
2020-11-01-hello.md
index.md
resources/
views/
public/
```

There are some function that you can use to get content from your site.

### Get all content in a directory
```php
foreach (cf()->index('post') as $post) {
echo $post->title;
}
```

### Get a single content
```php
$post = cf()->get('posts/2020-11-01-hello.md');
```

- [x] Add `lina serve` command for development
- [x] Add code highlighter support
Expand Down

0 comments on commit d758feb

Please sign in to comment.