Tobias Weingartner
ecf91f525f
Fix gofmt -s and ineffassign.
2016-04-16 17:07:06 -07:00
Tobias Weingartner
48d294a695
Better default template.
2016-04-12 18:53:15 -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
90c24d2f32
Included files in Markdown templates have access to document vars ( fixes #660 )
...
Refactor how middleware.Context includes files
2016-03-16 13:42:16 -06:00
Maxim Kupriianov
c7674e2060
Implement .DocFlags directive and tests. It holds all the boolean-typed front matter values.
2016-02-22 13:53:47 +03:00
Matthew Holt
234783548f
markdown: Enable tables, fenced code, and strikethrough ( closes #294 )
2015-10-29 09:59:32 -06:00
Zac Bergquist
f9bc74626d
Address various lint and gocyclo warnings. Fixes #253
2015-10-11 16:28:02 -04: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
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
Matthew Holt
f7129b219e
Fix markdown tests that I broke
2015-07-29 17:47:33 -06:00
Maxime
ec51e14451
Merge branch 'master' of https://github.com/mholt/caddy
2015-07-29 23:43:26 +02:00
Maxime
da794a866e
Change date of the files in test to serve the static file and not generate a new one
2015-07-29 18:00:08 +02:00
Maxime
705cd16dee
Fixed path issue: was absolute path but should be relative path
2015-07-29 17:12:32 +02:00
Maxime
0168a627a4
Added test on markdown static files generation
2015-07-29 16:21:35 +02:00
Abiola Ibrahim
7b29568eb1
Code cleanups.
...
Fix more race conditions.
2015-07-29 12:21:34 +01:00
Maxime
bc2feece4b
Moved test files to testdata folder.
...
Changed the tests accordingly.
2015-07-23 09:35:46 +02:00
Maxime
2df30d186e
Added a test on markdown for the default template
2015-07-21 17:45:32 +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