{"size": 419, "ext": "js", "max_stars_repo_path": "posts/posts.11tydata.js", "max_stars_repo_name": "djdrysdale/11ty-garden-blog", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "posts/posts.11tydata.js", "max_issues_repo_name": "djdrysdale/11ty-garden-blog", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "posts/posts.11tydata.js", "max_forks_repo_name": "djdrysdale/11ty-garden-blog", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.0526315789, "max_line_length": 62, "alphanum_fraction": 0.4725536993}
const {titleCase} = require("title-case");
const path = require("path");

module.exports = {
    layout: "default",
    tags: ["posts"],
    eleventyComputed: {
        
        title: data => {
            if(data.title){
                return data.title;
            }
            let title = data.page.fileSlug.replace(/-/g, ' ');
            title = titleCase(title);
            return title;
        },

    }
};