Tests and more renderer logic
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>blog - $title</title>
|
||||
<title>$title</title>
|
||||
</head>
|
||||
<body>
|
||||
$content
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
This file should be skipped entirely because it begins with an underscore
|
||||
Vendored
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
+++
|
||||
layout = "_layouts/post.html"
|
||||
published = false
|
||||
+++
|
||||
|
||||
This file should render to hidden because it's unpublished
|
||||
Vendored
+2
-1
@@ -1,6 +1,7 @@
|
||||
+++
|
||||
layout = "layouts/post.html"
|
||||
layout = "_layouts/post.html"
|
||||
title = "Pest Toast"
|
||||
published = true
|
||||
+++
|
||||
Test
|
||||
===
|
||||
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
+++
|
||||
published = true
|
||||
+++
|
||||
|
||||
This file has no layout, so it'll be rendered but nothing around it.
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
This should be echoed back raw because of the extension
|
||||
Reference in New Issue
Block a user