All Projects → AlanBarber → jbh

AlanBarber / jbh

Licence: Apache-2.0 license
(JBH) Jekyll Blog Helper - A shell script to help manage a jekyll weblog site

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to jbh

md-file-tree
Generate markdown list of all the files in a directory. Now also with emoji 📂 📄
Stars: ✭ 130 (+400%)
Mutual labels:  bash-script
docker-lidarr-lad
Official docker for LAD bash enhancement script
Stars: ✭ 22 (-15.38%)
Mutual labels:  bash-script
Dotfiles
Passionately crafted configs for CLI lovers 🐧❤️
Stars: ✭ 70 (+169.23%)
Mutual labels:  bash-script
Deb Dots
Debian GNU/Linux dot files.
Stars: ✭ 49 (+88.46%)
Mutual labels:  bash-script
Automation-using-Shell-Scripts
Development Automation using Shell Scripting.
Stars: ✭ 41 (+57.69%)
Mutual labels:  bash-script
sakura
🌸 A Jekyll theme with baked in Bootstrap 4, Font Awesome 5, Algolia instant search, and more!
Stars: ✭ 31 (+19.23%)
Mutual labels:  jekyll-site
awesome-scripts
Set of scripts that can do awesome stuff for developers
Stars: ✭ 16 (-38.46%)
Mutual labels:  bash-script
Pinaak
A vulnerability fuzzing tool written in bash, it contains the most commonly used tools to perform vulnerability scan
Stars: ✭ 69 (+165.38%)
Mutual labels:  bash-script
SBD
Static Binary Deployer. Download and deploy *Nix utilities on a compromised system.
Stars: ✭ 23 (-11.54%)
Mutual labels:  bash-script
freshubuntu
Handy things for setting up a new Ubuntu 16.04 - 20.04 server
Stars: ✭ 15 (-42.31%)
Mutual labels:  bash-script
api-test
🌿 A simple bash script to test JSON API from terminal in a structured and organized way.
Stars: ✭ 53 (+103.85%)
Mutual labels:  bash-script
imgurbash2
A shell script that uploads/deletes images to/from IMGUR.
Stars: ✭ 41 (+57.69%)
Mutual labels:  bash-script
yukicpl
一个简单的基于bash的服务器管理面板
Stars: ✭ 20 (-23.08%)
Mutual labels:  bash-script
ubuntu-1804
🔵 Curso GRÁTIS Linux Ubuntu Server 18.04.x LTS - REPOSITÓRIO CONGELADO - Esse repositório não irá mais receber atualizações. Novo repositório: vaamonde/ubuntu-2004
Stars: ✭ 99 (+280.77%)
Mutual labels:  bash-script
nginx-installer
Bash script designed to ease the process of compiling nginx with multiple patches and modules manually.
Stars: ✭ 28 (+7.69%)
Mutual labels:  bash-script
cis-benchmark-centOS-8
Auditing Script based on CIS-BENCHMARK CENTOS 8
Stars: ✭ 34 (+30.77%)
Mutual labels:  bash-script
raspberryTools
Some useful tools for Raspberry Pi
Stars: ✭ 24 (-7.69%)
Mutual labels:  bash-script
dockertex
🐋📓📽 Latex & Texstudio Dockerfiles with multiple texlive versions and proper command line tools 🔮 Mirror only!
Stars: ✭ 26 (+0%)
Mutual labels:  bash-script
HostEnumerator
A tool that automates the process of enumeration
Stars: ✭ 29 (+11.54%)
Mutual labels:  bash-script
cylon-deb
TUI menu driven bash shell script to update and maintain a Debian based Linux distro.
Stars: ✭ 23 (-11.54%)
Mutual labels:  bash-script

NOTE: This app is no longer actively maintained! While it may still work with Jekyll it will not be updated in the future!

jbh

(JBH) Jekyll Blog Helper - A bash shell script to help manage a Jekyll weblog site

JBH provides a series of commands for performing common blogging activities within a Jekyll managed blog.

	Usage: jbh.sh [OPTIONS]...
	Jekyll Blog Helper - A command line blog management tool
	
	Options:
	
	  -b, --build    runs a jekyll build
	  -c, --clean    cleans out the site output directory
	  -l, --list     lists all posts or drafts
	  -n, --new      creates a new post
	  -p, --publish  copies site via rcp/rsync to remote server
	  -s, --serve    runs the jekyll server
	  -v, --version  displays version of the script
	
	Modifiers:
	
	  --build:
	    -d, --draft  includes drafts in jekyll build
	  --list:
	    -d, --draft  lists draft posts
	    -p, --post   lists posts
	  --new:
	    -d, --draft  creates a new draft post
	  --move:
	    -d, --draft  moves a draft to post
	    -p, --post   moves a post to draft
	  --serve:
	    -d, --draft  includes draft in jekyll server

	Examples:
	
	  jbh.sh --new "Blog title"
	    Creates a new post with the given title
	
	  jbh.sh --new "Blog title" "1/1/2015"
	    Create a new post on a specific date
	
	  jbh.sh --new --draft "Blog title"
	    Creates a new draft post with the given title
	
	  jbh.sh --build
	    Builds the site
	
	  jbh.sh --publish
	    Runs rcp/rsync to copy built site to a remote server
	    * NOTE: Server settings are stored at top of script
	
	  jbh.sh --list "*2015*"
	    Lists all posts that have '2015' in the file name
	
	  jbh.sh --move --draft "2015-01-01-blog-title.md"
	    Moves the matching file from draft to post folder

Install

Copy the jbh.sh script into the base folder of the your Jekyll site.

Open the script with your editor of choice and there are several settings you will need to setup for publishing to your remote server.

How To Use

Create a Post

	$ jbh.sh --new "Enter Your Post Title"

This will create a properly formatted Jekyll post file and a correlating asset folder for storing photos and files that are part of your post.

	$ jbh.sh --new "Enter Your Post Title" "1/1/2015"	

Add a date to the --new command after the title and you can have a post created for that specific date

Drafts

If you wish to create a draft all you need to do is add a --draft after the --new to indicate a draft.

	$ jbh.sh --new --draft "Enter Your Draft Title"
	$ jbh.sh --new --draft "Enter Your Draft Title" "1/1/2015"

Listing Posts and Drafts

	$ jbh.sh --list

To list all posts just call the --list command

If you wish to list drafts add a --draft after the command

	$ jbh.sh --list --draft

Filtering

You can enter filters to help search for specific posts

	$ jbh.sh --list "*2015*"

This example would list all posts that match *2015*

Moving Posts & Drafts

Drafts are used to create new blog posts that are not published until you are ready but can be built or served locally.

When you are ready to publish a draft you need to move it from the draft folder to the post folder to be included in the build process.

JBH provides a basic move command to do this for you.

	$ jbh.sh --move --draft "2015-01-01-post-title.md"

This will move the posts file from the draft to post folder.

If you need remove a published post you can also use the move command to do this

	$ jbh.sh --move --post "2015-01-01-post-title.md"

This will move the matching post file from the post folder to the draft folder.

Build The Site

	$ jbh.sh --build

This runs the Jekyll build to update the local copy of your site.

Publish To Your Web Server

	$ jbh.sh --publish

Cleaning The Site Folder

Sometimes the Jekyll build and server process will may run into issues when it builds your site and the contents do not get updated correctly.

There is an easy fix to clean out the site folder so a fresh build will generate all new files.

	$ jbh.sh --clean

This pushes the changes via scp or rsync to your remote server

Compatibility / Reporting Bugs & Issues

JBH is developed and tested on Windows 8 using Git Bash from an install of Git 1.9.5

It has not be tested on other platforms.

If you find a bug or issue please create an issue and include details about the environment you are using.

Change Log

See the history in CHANGELOG.md

License

JBH is license under the Apache 2.0 License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].