GithubHelp home page GithubHelp logo

spekulatius / jigsaw-clean-blog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rickwest/jigsaw-clean-blog

1.0 2.0 0.0 8.86 MB

๐Ÿ“š Starter template for a blog, using Jigsaw by Tighten, based on the Startbootstrap Clean Blog theme

Home Page: https://jigsaw-clean-blog.netlify.com/

PHP 30.07% JavaScript 12.17% SCSS 3.89% Blade 53.86%

jigsaw-clean-blog's Introduction

Jigsaw Clean Blog

This is a starter template for creating a blog with Jigsaw. Jigsaw Clean Blog, as the name suggests, is a simple Jigsaw implementation of the Startbootstrap Clean Blog theme, just change a few settings and you are ready to go.

See a preview of the blog template here.

What's included

This fully-responsive (based on Bootstrap 4) starter template includes some sample pages and comes pre configured with:

  • Syntax highlighting with highlight.js
  • A script that automatically generates a sitemap.xml
  • A script that automatically generates an RSS feed
  • A custom 404 page
  • A contact form with formSpree integration

Jigsaw Clean Blog Screenshot


Installation

System Requirements

To use Jigsaw, you need to have PHP 7 and Composer installed on your machine. You'll also need Node.js, NPM and Yarn installed in order to use Laravel Mix to compile the CSS and Javascript.

Getting Started

Jigsaw now supports the installation of third party starter templates, so you can get up and running in 3 quick easy steps:

  1. Create the project directory

    mkdir my-cool-blog
  2. Install Jigsaw via Composer

     cd my-cool-blog
     composer require tightenco/jigsaw
  3. Initialize your project

        ./vendor/bin/jigsaw init rickwest/jigsaw-clean-blog

Now that you have everything installed, you can serve the site using PHP ./vendor/bin/jigsaw serve or alternatively, using Browsersync yarn run watch

For more help getting started, be sure to check out the official documentation. It really is good!


Configuring your site

Anything you add to the array in config.php will be made available in all of your templates, as a property of the $page object.

This project uses some of these site variables in several of the templates, for example, the siteName is used in both the header and footer.

Quickly customise your site by adding your site name, email address and social media profiles in config.php. Take a look at the Jigsaw documentation to learn more.


Adding Content

You can write your content using a variety of file types. By default, this starter template expects your content to be located in the source/_posts/ folder.

The top of each content page contains a YAML header that specifies how it should be rendered. The title attribute is used to dynamically generate HTML title and OpenGraph tags for each page. The extends attribute defines which parent Blade layout this content file will render with (e.g. _layouts.post will render with source/_layouts/post.blade.php), and the section attribute defines the Blade "section" that expects this content to be placed into it.

extends: _layouts.post
section: content
title: Getting Started
date: 2019-01-21
description: Getting started with the Jigsaw blog starter template
image: /assets/images/post-bg.jpg

Adding and Editing Pages

Get started by editing the 'about' page, that comes with this project. Open up about.blade.php that's in the _source folder and add some interesting info about yourself!

Adding a new page to your site is as simple as creating a new blade template in the _source directory.

Jigsaw gives you access to all the templating features and control structures of Blade that are available in Laravel.

The comprehensive, official blade documentation is available here.


Deploy to Netlify

If you just want to hit the ground running and deploy straight to Netlify ๐Ÿ‘‡๐Ÿป

Deploy to Netlify


Bugs and Issues

If you encounter a problem or spot a mistake, or even if you would just like to make a suggestion, please open an issue. Pull requests are more than welcome too!


Contributing

  • Fork it (https://github.com/yourname/yourproject/fork)
  • Create your feature branch (git checkout -b feature/fooBar)
  • Commit your changes (git commit -am 'Add some fooBar')
  • Push to the branch (git push origin feature/fooBar)
  • Create a new Pull Request

Copyright and License

This project is licensed under the MIT License.

jigsaw-clean-blog's People

Contributors

rickwest avatar spekulatius avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.