all repos — archive/homestead @ 31eda3eb3150c35b469ba193db227e0467653081

My future indieweb platform

31eda3eb
test: add description to basic tests
Alan Pearce alan@alanpearce.eu
Sat, 01 Jul 2017 13:40:31 +0200
6fd0c4b9
fix(Responders): fix incorrect post URLs
Alan Pearce alan@alanpearce.eu
Sat, 01 Jul 2017 13:33:48 +0200
ab3c5ffb
feat(taxon): Show taxonomy term in title
Alan Pearce alan@alanpearce.eu
Sat, 01 Jul 2017 13:30:57 +0200
e4e26cec
fix: fix combination of layout and page templates
Alan Pearce alan@alanpearce.eu
Sat, 01 Jul 2017 13:30:41 +0200
ab46e976
refactor: Extract logic to get template indent level
Alan Pearce alan@alanpearce.eu
Sat, 01 Jul 2017 13:02:11 +0200
fb7e421b
Switch templating to hyperfast

This also means that highland is not (currently) required
Alan Pearce alan@alanpearce.eu
Sat, 01 Jul 2017 11:49:18 +0200
248c7491
feat: Add photo to marked-up h-chard
Alan Pearce alan@alanpearce.eu
Sat, 01 Jul 2017 11:00:25 +0200
e5c2da08
Delete bundled post

With the dev:testsite command, this isn't necessary for development
Alan Pearce alan@alanpearce.eu
Fri, 30 Jun 2017 22:09:52 +0200
a5c46360
feat(cli): accept argument for site directory

Add a script at the same time to enable using the test files for
manual testing
Alan Pearce alan@alanpearce.eu
Fri, 30 Jun 2017 22:08:54 +0200
d3dfbb13
feat: add basic h-card to homepage header
Alan Pearce alan@alanpearce.eu
Fri, 30 Jun 2017 21:34:30 +0200
7d0ca010
chore: Restart ava when templates change
Alan Pearce alan@alanpearce.eu
Fri, 30 Jun 2017 21:22:59 +0200
4df9074e
fix: add page title to header
Alan Pearce alan@alanpearce.eu
Fri, 30 Jun 2017 20:35:51 +0200
5eb982dc
chore: Install node-dev for a nicer dev server
Alan Pearce alan@alanpearce.eu
Fri, 30 Jun 2017 20:35:32 +0200
9937c2a5
fix: Add missing doctype via stream concat

rheo appears to be stripping it out
Alan Pearce alan@alanpearce.eu
Fri, 30 Jun 2017 19:09:30 +0200
31f441ff
test: Use cheerio for DOM testing
Alan Pearce alan@alanpearce.eu
Fri, 30 Jun 2017 18:01:51 +0200
562b0533
feat: load config from cwd and merge with defaults
Alan Pearce alan@alanpearce.eu
Fri, 30 Jun 2017 17:37:20 +0200
136ebe22
refactor: remove console.log
Alan Pearce alan@alanpearce.eu
Fri, 30 Jun 2017 13:11:45 +0200
36f5609c
chore: Setup eslint directly for better editor integration
Alan Pearce alan@alanpearce.eu
Thu, 29 Jun 2017 00:42:42 +0200
18eeadd1
feat: beautify HTML output

Indent child templates according to the their place in the parent
template, and likewise for rendered posts

Needs refactoring
Alan Pearce alan@alanpearce.eu
Sun, 25 Jun 2017 14:21:23 +0200
6f9b4146
refactor: Replace stream-array with highland

Works with more than just arrays.  Iterators in particular are useful
Alan Pearce alan@alanpearce.eu
Sun, 25 Jun 2017 13:13:19 +0200
b959fe89
fix(responders): replace <main> from layout
Alan Pearce alan@alanpearce.eu
Sun, 25 Jun 2017 13:08:36 +0200
a7960192
refactor: move markdown rendering to domain

The input and output formats (md -> html) are specific to the domain
of blogging, not really a presentation concern.

This also means that markdown is rendered to HTML on startup, rather
than per-request
Alan Pearce alan@alanpearce.eu
Sun, 25 Jun 2017 13:03:41 +0200
6061d1e5
feat: add some security with helmet
Alan Pearce alan@alanpearce.eu
Sat, 24 Jun 2017 23:39:18 +0200
abd28f96
style: use simpler syntax for setting response type
Alan Pearce alan@alanpearce.eu
Sat, 24 Jun 2017 23:39:03 +0200
ab881e67
test: ensure 404s work
Alan Pearce alan@alanpearce.eu
Sat, 24 Jun 2017 22:25:53 +0200
bfa5ccae
text: improve wording of taxonomy 404
Alan Pearce alan@alanpearce.eu
Sat, 24 Jun 2017 22:25:16 +0200
dd819c45
refactor: re-architect to be closer to ADR
Alan Pearce alan@alanpearce.eu
Sat, 24 Jun 2017 22:05:18 +0200
bdd66102
refactor: separate app, responders
Alan Pearce alan@alanpearce.eu
Sat, 24 Jun 2017 16:34:47 +0200
6b021865
refactor: Separate templates into layout/body
Alan Pearce alan@alanpearce.eu
Sat, 24 Jun 2017 12:11:46 +0200
f9fd0d79
feat: Streaming DOM templates via rheo
Alan Pearce alan@alanpearce.eu
Fri, 23 Jun 2017 23:06:43 +0200
4d637848
feat: add link helper to view globals
Alan Pearce alan@alanpearce.eu
Mon, 19 Jun 2017 21:19:02 +0200
acd2fe16
Add some basic HTML
Alan Pearce alan@alanpearce.eu
Mon, 19 Jun 2017 21:18:30 +0200
834b7e0c
Fix posts directory default configuration
Alan Pearce alan@alanpearce.eu
Mon, 19 Jun 2017 21:18:05 +0200
d2b9b7e3
feat: Serve static files under ./static
Alan Pearce alan@alanpearce.eu
Mon, 19 Jun 2017 21:06:49 +0200
7455233d
feat: make templates extend common layout
Alan Pearce alan@alanpearce.eu
Sun, 18 Jun 2017 22:12:48 +0200
4ce0f287
rename 'tag' view to 'term'
Alan Pearce alan@alanpearce.eu
Sun, 18 Jun 2017 21:57:15 +0200
e58d6a17
feat: make taxonomies configurable

Add "tag" and "category" as defaults
Alan Pearce alan@alanpearce.eu
Sun, 18 Jun 2017 21:01:14 +0200
2fef943b
feat: use configly/TOML for configuration
Alan Pearce alan@alanpearce.eu
Sun, 18 Jun 2017 20:07:14 +0200
e13c5726
Rename templates to njk

It's specified in the nunjucks documentation.  Using it allows editors
to understand the syntax better
Alan Pearce alan@alanpearce.eu
Sun, 18 Jun 2017 18:23:28 +0200
33171a74
feat(posts): render posts as markdown
Alan Pearce alan@alanpearce.eu
Sun, 18 Jun 2017 17:42:21 +0200
1a36d4dc
refactor: move tag indexing of posts to Posts
Alan Pearce alan@alanpearce.eu
Sun, 18 Jun 2017 17:23:06 +0200
1f2a6245
feat: add tags endpoint
Alan Pearce alan@alanpearce.eu
Sun, 18 Jun 2017 14:12:25 +0200
69af7f12
feat: add single post endpoint
Alan Pearce alan@alanpearce.eu
Sun, 18 Jun 2017 13:36:29 +0200
370e7add
chore: ensure test files are prettier
Alan Pearce alan@alanpearce.eu
Sun, 18 Jun 2017 12:39:28 +0200
6c9089e7
refactor(posts): Clarify what options are for
Alan Pearce alan@alanpearce.eu
Sun, 18 Jun 2017 12:37:33 +0200
bf20f4f6
refactor: metadata -> posts
Alan Pearce alan@alanpearce.eu
Sun, 18 Jun 2017 12:35:49 +0200
75ef26ea
fix(metadata): make return values consistent
Alan Pearce alan@alanpearce.eu
Sun, 18 Jun 2017 12:32:11 +0200
db7c9f17
chore: configure tern
Alan Pearce alan@alanpearce.eu
Sun, 18 Jun 2017 12:24:42 +0200
da9ff90d
feat: Parse front matter as metadata
Alan Pearce alan@alanpearce.eu
Sun, 18 Jun 2017 12:24:24 +0200
3bda5fcf
Move tests to test/
Alan Pearce alan@alanpearce.eu
Sun, 18 Jun 2017 09:27:11 +0200
553a9f2f
feat: Use nunjucks templates via koa-nunjucks-next
Alan Pearce alan@alanpearce.eu
Sun, 18 Jun 2017 01:14:12 +0200
a0090850
chore: Set up pre-commit hook for formatting
Alan Pearce alan@alanpearce.eu
Sun, 18 Jun 2017 00:47:28 +0200
2af48053
chore: add editorconfig file
Alan Pearce alan@alanpearce.eu
Sun, 18 Jun 2017 00:29:46 +0200
1d8c3484
feat: setup basic web server
Alan Pearce alan@alanpearce.eu
Sun, 18 Jun 2017 00:28:24 +0200
6815f5e2
chore: Configure formatting with prettier and standard
Alan Pearce alan@alanpearce.eu
Sat, 17 Jun 2017 22:21:37 +0200
b9278a55
Initial commit
Alan Pearce alan@alanpearce.eu
Sat, 17 Jun 2017 21:46:34 +0200