kirby-git
kirby-git copied to clipboard
Troubles setting up with current readme
The current readme file of this plugin did not provide me with a comprehensive fail safe guide to install it properly.
Environment:
MacOS 10.13.1 High Sierra / MAMP Pro / PHP 7.2. / git version 2.17.2 (Apple Git-113)

site.yml:
title: Site
columns:
- width: 1/2
sections:
pages:
type: pages
create: default
template:
- about
- home
- default
- width: 1/2
sections:
revisions:
type: gitLog
label: History
limit: 5
kirbyOnly: true
log:
type: gitRevisions
label: Revisions
fields:
- title
- text
limit: 5
columns:
- author
- hash
- message
And I tried a 2nd version:

title: Site
fields:
revisions:
type: gitLog
label: History
limit: 5
kirbyOnly: true
log:
type: gitRevisions
label: Revisions
fields:
- title
- text
limit: 5
columns:
- author
- hash
- message
columns:
- width: 1/2
sections:
pages:
type: pages
create: default
template:
- about
- home
- default
This time only the first field get's outputted. everything else disappears.
And last but not least, here is my config. I do not understand what you mean but the prefix in your description.
config.php:
<?php
return [
'dir' => 'https://gitlab.com/viennastruggle/vs_content', // *
'branch' => 'master',
'shouldPull' => false,
'shouldPush' => false,
'shouldCommit' => false,
'userHooks' => false, // **
'gitBin' => '/usr/bin/git',
'windowsMode' => false,
'logFile' => 'git-log.txt',
'debug' => true
];
I would like to contribute in any way to attribute to this readme to get newcomers like myself setup quicker on path.