Skip to content

Instantly share code, notes, and snippets.

@recumbent
Created March 19, 2020 20:59
Show Gist options
  • Save recumbent/60391fe57f883bcd0986f4825e9b1acb to your computer and use it in GitHub Desktop.
Save recumbent/60391fe57f883bcd0986f4825e9b1acb to your computer and use it in GitHub Desktop.
A sample blog post with a code block
Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 4 column 9
---
layout: post
title: Post with a code block
published: 2020-03-19
author: @recumbent
---

A final example

This is the last sample post, this time with code so we can show highlighting

#r "../_lib/Fornax.Core.dll"

open System.IO

let generate (ctx : SiteContents) (projectRoot: string) (page: string) =
    let inputPath = Path.Combine(projectRoot, page)
    File.ReadAllText inputPath

And we're all done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment