Tobias Weingartner
20dfaab703
Nuke unused function.
2016-04-30 14:16:19 -07:00
Tobias Weingartner
dd4de698cf
Better search for config.
...
Handle LastModifiedHeader better.
Handle HEAD/GET.
2016-04-17 10:58:51 -07:00
Tobias Weingartner
b541c717ca
Add ability to markdown a directory with a template.
2016-04-16 16:50:45 -07:00
Tobias Weingartner
e652d12cfc
Move Metadata load into NewMetadata function.
2016-04-16 15:36:52 -07:00
Tobias Weingartner
7c9867917a
Fixup tests and move metadata into own package
2016-04-16 14:45:32 -07:00
Tobias Weingartner
42b7d57421
Fix more tests, and fix template parsing.
2016-04-10 23:17:01 -07:00
Tobias Weingartner
027f697fdf
Revamp markdown processing.
...
Nuke pre-generation. This may come back in the form of a more general
caching layer at some later stage.
Nuke index generation. This should likely be rethought and re-implemented.
2016-04-10 17:47:55 -07:00
Matthew Holt
bcea5182c6
Don't truncate process log; more consistent output
2015-11-05 17:01:08 -07:00
makpoc
5a29107f3b
Add Last-Modified header when serving markdown and templates
2015-10-29 11:06:35 +02:00
Alexander Morozov
a5128da67a
markdown: fix race in accessing map
...
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-09-11 08:34:52 -07:00
Alexander Morozov
da7b9a6bbc
Use markdown.Config as pointer everywhere
...
* As value mutex was copied and therefore synchronization worked wrong
* It's pretty big structure with reference types, so copying create unnecessary
pressure on GC
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-09-10 15:12:50 -07:00
Matthew Holt
2e8a74ecff
markdown: Prefix log messages, and slight refactor
...
Also change sha1 to md5 for the directory scans; slightly faster.
2015-08-05 08:15:52 -06:00
Abiola Ibrahim
3b910645e7
Markdown: generate static sites after links.
2015-08-05 09:55:04 +01:00
Abiola Ibrahim
2ab466599d
Markdown: Modify development mode to generate links on page requests.
2015-08-05 00:41:04 +01:00
Abiola Ibrahim
851026d3fa
Markdown: Watch for file changes. Removed sitegen dependency for links.
2015-08-04 23:35:09 +01:00
Abiola Ibrahim
7b29568eb1
Code cleanups.
...
Fix more race conditions.
2015-07-29 12:21:34 +01:00
Abiola Ibrahim
e240cd5ba2
Metadata variables flattened.
...
Fix race condition on parsers.
Added page links generator.
2015-07-28 05:21:09 +01:00
Maxime
604c8abb59
Remove debug line, add file name as default title
2015-07-25 22:39:13 +02:00
Maxime
bc2feece4b
Moved test files to testdata folder.
...
Changed the tests accordingly.
2015-07-23 09:35:46 +02:00
Maxime
6451e10d3e
Add context to markdown template
...
Created a struct containing middleware.Context, Title, Markdown and the
variables from the user to use to render the template.
The title now can be accessed via {{.Title}}.
The variables can now be accessed via {{.Var.myVariableName}}.
2015-07-21 07:58:34 +02:00
Zac Bergquist
e4b50aa814
Fix more lint warnings
2015-05-24 22:52:34 -04:00
Matthew Holt
4272536518
markdown: sitegen keyword and run generation at startup
...
Also fixed bug for markdown files that don't contain front matter
2015-05-09 21:12:52 -06:00
Abiola Ibrahim
0fccd3707d
markdown: documentation done. awaiting test
2015-05-08 16:20:07 +01:00
Abiola Ibrahim
ba613a1567
markdown: template integration done. awaiting documentation and test
2015-05-07 13:45:27 +01:00
Abiola Ibrahim
0bfdb50ade
markdown: working version of template integration. Awaiting static site generation and tests.
2015-05-07 00:19:02 +01:00
Abiola Ibrahim
25847a6192
markdown: added template codes. awaiting integration and tests
2015-05-06 03:37:29 +01:00
Matthew Holt
47717fee88
Expanded index file support to other middlewares ( fixes #27 )
2015-05-05 15:50:42 -06:00
Matthew Holt
e4fdf171c7
More refactoring - nearly complete
2015-05-04 11:49:49 -06:00
Matthew Holt
ce74333348
Markdown requires a base path (for now)
2015-04-25 12:26:04 -06:00
Matthew Holt
d33256f1dc
Refactor: Middleware chain uses Handler instead of HandlerFunc
2015-04-02 23:30:54 -06:00
Matthew Holt
f2f5d4984d
Markdown defaults to .md
2015-03-31 23:41:16 -06:00
Matthew Holt
b87e6ccb76
Refactored markdown middleware to return errors
2015-03-28 16:55:40 -06:00
Matthew Holt
6d869ef55b
Support multiple occurrences of markdown directive
2015-03-21 10:59:29 -06:00
Matthew Holt
1b7415a81b
Markdown handles titles a little better
2015-03-20 00:01:39 -06:00
Matthew Holt
d7ae9fb4a2
Added markdown middleware
2015-03-16 11:45:51 -06:00