-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Matt Butcher <[email protected]>
- Loading branch information
1 parent
daf157a
commit 26798b2
Showing
13 changed files
with
288 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
title = "Bartholomew" | ||
# logo = "URL to logo" | ||
base_url = "http://localhost:3000" | ||
about = "This site is generated with Bartholomew, the Wagi micro-CMS" | ||
about = "This site is generated with Bartholomew, the Wagi micro-CMS. And this message is in site.toml." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
title = "Matt Butcher" | ||
|
||
--- | ||
|
||
Hello. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
title = "The Bartholomew Blog" | ||
description = "All you need to know to get started with Bartholomew" | ||
template = "blog" | ||
--- | ||
A blog about Bartholomew, the simple CMS for [Wagi](https://github.com/deislabs/wagi). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
title = "First Post!" | ||
description = "An example of blogging on the Bartholomew platform" | ||
--- | ||
|
||
This is an example of a blog post. | ||
|
||
Bartholomew is a simple content management system that uses Markdown files with TOML | ||
headers. Templates are written in the Handlebars language, which is a simple | ||
template language that supports custom helpers. | ||
|
||
To get you started with Bartholomew, we created a couple of blog posts like this | ||
one. You should delete this when you start your own blog. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
title = "What Is Markdown?" | ||
description = "Introducing an easy-to-write document format" | ||
--- | ||
Markdown is one of the most prevalent document formats for writing content. If you use | ||
Slack, you probably have written some Markdown. Every Slack message is a mini | ||
Markdown document. GitHub, HackMD, and many other similar tools use Markdown as their | ||
primary format for composing text. Why? Because it is very easy. | ||
|
||
For starters, paragraphs are just plain-text paragraphs. No tags or markup need. To make | ||
a header, you just use hash marks: `#` for a title, `##` for a sub-header, and so on. | ||
Bullet lists are just plain text hyphen or asterisk lists. | ||
|
||
For example: | ||
|
||
``` | ||
- This | ||
- Is | ||
- A | ||
- List | ||
``` | ||
|
||
The above produces: | ||
|
||
- This | ||
- Is | ||
- A | ||
- List | ||
|
||
Make text italic by wrapping it in underscores: `_hello_` becomes _hello_. And use | ||
asterisks for bold. `*goodbye*` becomes *goodbye*. | ||
|
||
There are other Markdown goodies, but one you should know is how to make a link. | ||
Links are built by putting text in square brackets, and the URL in parentheses. | ||
|
||
``` | ||
Say [Hello](http://example.com) | ||
``` | ||
|
||
Say [Hello](http://example.com). | ||
|
||
If you want to reference an image, just add `!` in front of the square bracket. In that | ||
situation, the text in the square brackets becomes the image description. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
title = "The Goals of Bartholomew" | ||
description = "We have plans. Big plans. Actually, they're small plans." | ||
--- | ||
|
||
Bartholomew is intended to be three things: | ||
|
||
1. A simple-to-use CMS-like system that feels like Jekyll or other static site generators | ||
2. A flexible system that is cheap to run, but easy to extend. (Cloud is expensive!) | ||
3. An exhibition of the value of WebAssembly on the server-side | ||
|
||
Static site generators are great for many things. But they are also limiting. To keep | ||
a site feeling fresh, you have to keep building and publishing the site because all | ||
elements are rendered at build time. If you want to write dynamic elements of any sort, | ||
you have to resort to JavaScript. | ||
|
||
But at the same time, these static site generators are super easy to use. Content is | ||
just written in plain text, and is rendered into HTML. Menus and navigation are | ||
built up automatically. And dealing with images and other files is as easy as dropping | ||
a file in a directory. We love that experience. So we tried to combine the best of the | ||
static site generator with a server-side technology. | ||
|
||
Bartholomew works like PHP (the language Wordpress and Drupal are written in). Each | ||
time the server receives a request, it starts up a new Bartholomew instance, which only | ||
runs long enough to serve the request. In this model, you don't need to keep a | ||
Bartholomew server running all the time. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,35 @@ | ||
title = "Welcome to Bartholomew, the Micro-CMS for Wagi" | ||
--- | ||
# Welcome to Bartholomew | ||
title = "Welcome to Bartholomew" | ||
description = "The Micro-CMS for Wagi" | ||
|
||
[extra] | ||
date = "Aug. 30, 2021" | ||
author = "Matt Butcher" | ||
author_page = "/author/butcher" | ||
--- | ||
It might be hard to spell, but fortunately you won't have to spell it that often. | ||
|
||
Bartholomew is a Micro-CMS for hosting Markdown content on a WebAssembly server. | ||
It can run on any [Wagi-compliant runtime](https://github.com/deislabs/wagi), including | ||
Wagi, Hippo, and Wagi.Net. | ||
|
||
## Content is in Markdown | ||
|
||
Write your content in Markdown, the simple text-based markup language. | ||
Just drop your content somewhere in the `content/` folder, and you're ready to go. | ||
|
||
## Templates are Handlebars | ||
|
||
Handlebars is a popular template format similar to Mustache. All of the templates | ||
are fully customizable. You can take a look in the `templates/` directory to start | ||
customizing the look and feel of this site. | ||
|
||
## Configuration Files | ||
|
||
Configuration files are in `config`, and are simple TOML files. Probably the only one | ||
you need is `config/site.toml`. | ||
|
||
## Getting Started | ||
|
||
To get started, edit this page. While Bartholomew doesn't make a lot of assumptions about | ||
your site, it _does_ assume that requests to the root (`/`) should be directed to | ||
`index.md`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
let msg = params[0]; | ||
|
||
"hello " + msg; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters