Skip to content

Instantly share code, notes, and snippets.

Created March 19, 2020 20:59
What would you like to do?
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