From 9d5510379ac65c99832cf9cb7618282153bfca65 Mon Sep 17 00:00:00 2001 From: Royce Date: Tue, 27 Feb 2018 22:48:53 -0500 Subject: [PATCH] update code fences with pygments --- config.toml | 3 ++- content/writing/hugo.md | 8 ++++---- content/writing/irssi.md | 6 +++--- content/writing/newsboat.md | 6 +++--- 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/config.toml b/config.toml index f091abb..35cb738 100644 --- a/config.toml +++ b/config.toml @@ -6,7 +6,8 @@ theme = "hyde-royce" rssLimit = 23 enableGitInfo = true footnoteReturnLinkContents = "↩" - +pygmentsCodeFences = true +PygmentsStyle = "" [taxonomies] tag = "tags" diff --git a/content/writing/hugo.md b/content/writing/hugo.md index 59527e2..1df4c51 100644 --- a/content/writing/hugo.md +++ b/content/writing/hugo.md @@ -40,7 +40,7 @@ Get started with Hugo [here](https://gohugo.io/tutorials/automated-deployments/) Steps recreated here: -``` +```bash $ brew install hugo $ hugo new site and-wells $ cd and-wells @@ -52,7 +52,7 @@ Go ahead and add your themes to the themes folder. Make a post or page, then go check everything out locally. -``` +```bash $ hugo new about.md $ vim content/about.md $ hugo server --buildDrafts @@ -62,7 +62,7 @@ $ hugo server --buildDrafts Make a repo on GitHub and add your Hugo files. -``` +```bash $ git init $ echo "/public" >> .gitignore $ echo "User-agent: *\nDisallow:" > static/robots.txt @@ -89,7 +89,7 @@ Wercker will need your Amazon key information to deploy to S3. Add those in the The `werkcer.yml` file goes in the root folder of your site. -``` +```yml # werkcer.yml box: debian build: diff --git a/content/writing/irssi.md b/content/writing/irssi.md index 6c36599..a07dd35 100644 --- a/content/writing/irssi.md +++ b/content/writing/irssi.md @@ -13,14 +13,14 @@ How to get started with ```irssi```, the terminal IRC client. Use Homebrew for the install. It is also helpful to run things in ```tmux``` so that you can maintain sessions. -``` +```bash $ brew install irssi $ tmux -c irssi ``` ## Starting with irssi -``` +```irssi /set nick royce ``` @@ -30,7 +30,7 @@ Make sure to change your username and nicknames if you don't want to use your sy Once irssi starts up, you can connect to IRC servers and then join channels. -``` +```irssi /connect Freenode /join #irssi ``` diff --git a/content/writing/newsboat.md b/content/writing/newsboat.md index dc4abb3..7ae3d9b 100644 --- a/content/writing/newsboat.md +++ b/content/writing/newsboat.md @@ -27,8 +27,8 @@ I used `geeknote`, a command line utility for Evernote, so it was a matter of ju Here is the plugin: -```sh -#!/bin/sh +```bash +#!/bin/bash #basic newsboat bookmark plugin for evernote url="$1" @@ -36,7 +36,7 @@ title="$2" description="$3" feed_title="$4" -content="${url}"$'\n'"${description}"$'\n'${feed_title} +content="${url}"$'\n'"${description}"$'\n'"${feed_title}" geeknote create --title "${title}" --content "${content}"