Kaushal Modi
d31eb3199f
Use ` instead of " in Go templates to prevent escaping "
8 years ago
Kaushal Modi
c48f0d513e
Update Headless Bundle test; also update test site theme
8 years ago
Kaushal Modi
9201b87c14
Remove redundant '.Match "*"'
...
Thanks @budparr
https://discourse.gohugo.io/t/hugo-leaf-and-branch-bundles/10892/13?u=kaushalmodi
8 years ago
Kaushal Modi
a8170c5353
Add more debug info to all test site layouts
8 years ago
Kaushal Modi
18021c8f84
Move MathJax code to mathjax.html partial # test site
8 years ago
Kaushal Modi
6440b91a9f
Support "headless" front-matter (Hugo v0.35+)
...
Add example of setting headless page bundles, and then accesses the
child-pages from that bundle from another page.
8 years ago
Kaushal Modi
1dcf092df2
Make the Hugo bare_min theme for the test site more portable
8 years ago
Kaushal Modi
95743609b1
Remove the hack for .File that was added to debugprint partial #test
...
Full discussion here:
https://discourse.gohugo.io/t/how-to-specify-a-function-call-instead-of-field-reference-in-a-partial/9219
This hack is not needed (probably after the Page Bundle release
v0.32), tested on Hugo v0.35-DEV.
8 years ago
Kaushal Modi
0e8b72d702
Improve debugprint partial # test site
...
- Now number types are recognized
- .Resources is recognized as a slice
- Horizontal rule is drawn automatically after printing a resource or Page type
8 years ago
Kaushal Modi
eafe701d83
Add debug info about Resources to debugprint partial # test site
8 years ago
Kaushal Modi
b23e0f7721
Remove an unnecessary debug info from test site single template
8 years ago
Kaushal Modi
5512bad25c
Support Page Bundles (Hugo v0.32+)
...
- New property HUGO_BUNDLE, used to specify the bundle URL.
- If the HUGO_BUNDLE is non-nil, it is auto-appended to the full page URL.
- Attachment rewrite now "does the right thing".. copied the
attachments to the bundle dir instead of to the static/ dir.
- Added a page bundle example, with images, "resources" front-matter.
- Updated the test site "single.html" template with debug info for
.Resources.
Fixes https://github.com/kaushalmodi/ox-hugo/issues/111
8 years ago
Kaushal Modi
0a6d6927c1
Leave canonifyURLs at its default value of false #sites
...
This updates the doc and test sites.
Switch from appending absolute BaseURL to using relURL
8 years ago
Kaushal Modi
95dd1ea388
Support exporting Latex Environments from Org too
...
- org-blackfriday-latex-fragment: Escape * to \* in latex fragments
- org-blackfriday-latex-environment: New function, added to do the
escaping in latex environments (like \begin{align}..\end{align})
similar to that in latex fragments
- Add a new real world example, thanks to @Vonng
- Update org-export-headline-levels to 4 (from default of 3) in test
setup.
8 years ago
Kaushal Modi
55e396454c
Clean up the .GitInfo debug stuff #testsite
8 years ago
Kaushal Modi
bd71712694
Print File object debug info for each page #testsite
...
Also don't format table header fonts.
8 years ago
Kaushal Modi
77ea71dd6f
Add printing GitInfo to debugprint partial #testsite
...
- Also always double-quote string values
- Use "Slice" term instead of "Array". See https://blog.golang.org/slices
8 years ago
Kaushal Modi
693423fa30
Hugo partials can be called recursively!
8 years ago
Kaushal Modi
e959b6d9e0
Super-enhance printing of Page Params for debug in test site
...
https://discourse.gohugo.io/t/how-to-test-if-a-variable-is-of-a-certain-type/9207
8 years ago
Kaushal Modi
41d01117b7
Improve printing Page Params for debug in bare_min single template
8 years ago
Kaushal Modi
5f9b0f32a0
Support list values for custom front-matter variables
...
Fixes https://github.com/kaushalmodi/ox-hugo/issues/99
8 years ago
Kaushal Modi
90e44f81c8
Add Chroma CSS (Github theme) to test site
9 years ago
Kaushal Modi
562b49bc09
Make the Hugo .GitInfo data more useful
...
Now the tests backlink to the commits that created/modified those.
9 years ago
Kaushal Modi
8a433e9681
"Example" Site -> "Test" Site
9 years ago
Kaushal Modi
0e820c02e9
Tweak GitInfo debug info in example-site
9 years ago
Kaushal Modi
ca8be95e57
Move example-site into test/; Move Makefile to root
9 years ago
Kaushal Modi
3a1b67a2c9
Debug publishdate, lastmod and .GitInfo.AuthorDate in example-site
9 years ago
Kaushal Modi
828165b97d
Auto-calculate post weights if HUGO_WEIGHT is set to auto
...
Add tests for
- Manual setting of post weight
- Auto calculation of post weights by setting EXPORT_HUGO_WEIGHT
subtree property to auto.
- Auto calculation of post weights by setting #+HUGO_WEIGHT keyword
value to auto.
9 years ago
Kaushal Modi
d53b557b8e
Allow posts to not have dates
...
Closes https://github.com/kaushalmodi/ox-hugo/issues/59
9 years ago
Kaushal Modi
05a7d9bcad
Support specifying Blackfriday options and extensions
...
New keyword: HUGO_BLACKFRIDAY
Closes https://github.com/kaushalmodi/ox-hugo/issues/37
9 years ago
Kaushal Modi
8da68a6676
Support exporting latex equation fragments
...
- ox-blackfriday.el updated to do the escaping using backslashes as
suggested in https://gohugo.io/content-management/formats#solution
> One solution is to simply escape each underscore in your math code
by entering \_ instead of _.
Org reference for latex fragments:
http://orgmode.org/manual/LaTeX-fragments.html
Add test.
9 years ago
Kaushal Modi
6efbe5b6f5
Add single post examples; Show post 'draft' state in HTML
9 years ago
Kaushal Modi
2de2711902
Update example-site bare_min theme; now shows metadata too for debug
9 years ago