Browse Source

fixed import.php

master
Tsia 3 years ago
committed by GitHub
parent
commit
61f6b6ee59
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      import.php

2
import.php

@ -11,7 +11,7 @@ foreach($posts as $post){
$postcontent .= $card[1]['markdown'];
}
$tpl = "{% extends 'post.twig' %}\n{% block entry %}\n{% markdown %}\n" . $postcontent . "\n{% endmarkdown %}\n{% endblock %}\n";
//file_put_contents('templates/casper/pages/posts/' . date('Y-m-d', strtotime($post['created_at'])) . '_' . $post['slug'] . '.twig', $tpl);
file_put_contents('templates/casper/pages/posts/' . date('Y-m-d', strtotime($post['created_at'])) . '_' . $post['slug'] . '.twig', $tpl);
$ini = "[settings]\nslug = \"" . $post['slug'] . "\"\n\n";
$ini .= "[variables]\n";
if($post['feature_image']){

Loading…
Cancel
Save