diff --git a/README.md b/README.md index 0da8c00..c164a7d 100644 --- a/README.md +++ b/README.md @@ -5,4 +5,4 @@ Here is the template of my blog, released under the MIT license. Format Date for Posts like here https://unicode-org.github.io/icu/userguide/format_parse/datetime/#date-field-symbol-table -The main branch is the template and the nikus-blog branch is the template with my content. \ No newline at end of file +The Blog needs at least one post to compile sucessfully, because of that, there is already a template.md in `source/_posts` \ No newline at end of file diff --git a/source/_layouts/main.blade.php b/source/_layouts/main.blade.php index c021ae6..24b18f6 100644 --- a/source/_layouts/main.blade.php +++ b/source/_layouts/main.blade.php @@ -41,7 +41,7 @@

Linkpage: https://nikurasu.de

E-Mail: {{ $page->email }}

-

RSS-Feed

+

RSS-Feed

Proof of Identity

diff --git a/source/_posts/.gitignore b/source/_posts/.gitignore index 2e1fa2d..82aebf7 100644 --- a/source/_posts/.gitignore +++ b/source/_posts/.gitignore @@ -1 +1,2 @@ -*.md \ No newline at end of file +*.md +!template.md \ No newline at end of file diff --git a/source/_posts/template.md b/source/_posts/template.md new file mode 100644 index 0000000..7bf6f79 --- /dev/null +++ b/source/_posts/template.md @@ -0,0 +1,6 @@ +--- +extends: _layouts.post +title: Template +date: 2017-03-23 +--- +A basic post is looking like this \ No newline at end of file diff --git a/source/rss.blade.xml b/source/rss.blade.xml new file mode 100644 index 0000000..4874f26 --- /dev/null +++ b/source/rss.blade.xml @@ -0,0 +1,32 @@ +{!! '<'.'?'.'xml version="1.0" encoding="UTF-8" ?>' !!} + + + {{ $page->siteName }} + {{ $page->baseUrl }} + siteDescription }}]]> + + {{ $page->siteLanguage }} + {{ date(DateTime::RSS, $posts->first()->date) }} + + @foreach($posts as $post) + + <![CDATA[{!! $post->title !!}]]> + {{ $post->getUrl() }} + {{ $post->getUrl() }} + description !!}]]> + getContent() !!}]]> + {{ $post->author }} + {{ date(DateTime::RSS, $post->date) }} + + @if($post->cover_image) + + @endif + + @endforeach + +