Skip to content

Commit 9751d34

Browse files
committed
Bump version to v0.8; Update changelog
1 parent 0807f42 commit 9751d34

File tree

4 files changed

+154
-2
lines changed

4 files changed

+154
-2
lines changed

README.org

+74
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,80 @@ The common =ox-hugo= export bindings are:
167167
Do =M-x customize-group=, and select =org-export-hugo= to see the
168168
available customization options for this package.
169169
* Changelog
170+
** v0.8 <2018-01-26 Fri>
171+
*** Features
172+
- Support exporting content files and attachments (images, documents)
173+
to Page Bundles organization structure (Hugo v0.32+) --
174+
#[[https://github.com/kaushalmodi/ox-hugo/issues/111][111]].
175+
- Support exporting =resources= front-matter (Hugo v0.33+) --
176+
#[[https://github.com/kaushalmodi/ox-hugo/issues/115][115]].
177+
- Support exporting =headless= front-matter (Hugo v0.35+).
178+
- Advanced table styling is now possible by specifying =#+ATTR_HTML=
179+
and =#+ATTR_CSS= (this one is unique to =ox-html=) above Org
180+
tables. See its [[https://ox-hugo.scripter.co/doc/table-styling/][documentation]] -- #[[https://github.com/kaushalmodi/ox-hugo/issues/93][93]].
181+
- Similarly, support =#+ATTR_HTML= and =#+ATTR_CSS= for paragraphs,
182+
example blocks, source blocks, plain lists and quote blocks too --
183+
#[[https://github.com/kaushalmodi/ox-hugo/issues/113][113]].
184+
- Now =publishdate= and =expirydate= front-matter properties get
185+
auto-derived from =SCHEDULED= and =DEADLINE= special properties if
186+
associated with the valid Hugo post subtree --
187+
commit [[https://github.com/kaushalmodi/ox-hugo/commit/0807f42d][0807f42d]].
188+
- Date values can now be easily set using the =C-c .= binding in the
189+
=HUGO_PUBLISHDATE= and =HUGO_EXPIRYDATE= properties too.
190+
- Export source blocks and table captions -- #[[https://github.com/kaushalmodi/ox-hugo/issues/38][38]]. Here's a
191+
suggested CSS for the captions:
192+
#+BEGIN_SRC css
193+
figcaption,
194+
.src-block-caption,
195+
.table-caption {
196+
font-style: italic;
197+
text-align: center;
198+
}
199+
#+END_SRC
200+
- Export descriptive or definition lists in Blackfriday-friendly
201+
Markdown format -- #[[https://github.com/kaushalmodi/ox-hugo/issues/114][114]].
202+
- Support Org Special Blocks [[https://www.gnu.org/software/emacs/manual/html_node/org/Special-blocks.html][like in HTML and LaTeX exports]] --
203+
#[[https://github.com/kaushalmodi/ox-hugo/issues/105][105]]. Here's one little example:
204+
#+BEGIN_SRC org
205+
,#+BEGIN_mark
206+
/Some/ *marked* text
207+
,#+END_mark
208+
#+END_SRC
209+
- Allow setting =:EXPORT_HUGO_SECTION:= in the valid Hugo post subtree
210+
itself.
211+
- Enable replacing any key in the front-matter with anything; it's
212+
even possible to swap the keys now (tags↔categories:
213+
commit [[https://github.com/kaushalmodi/ox-hugo/commit/fb21e82c][fb21e82c]]). New keyword:
214+
=HUGO_FRONT_MATTER_KEY_REPLACE= -- see commit [[https://github.com/kaushalmodi/ox-hugo/commit/b72a5fb0][b72a5fb0]].
215+
- Now all the Org keyword values that should get merged, get merged --
216+
commit [[https://github.com/kaushalmodi/ox-hugo/commit/38eba6d5][38eba6d5]].
217+
- Add =title= as a valid property of =menu= front-matter (Hugo
218+
v0.32+).
219+
*** Backward-incompatible changes
220+
- A "better user-experience" change.. now you do not need to use
221+
/double-underscores/ as /space/ replacement in =#+HUGO_TAGS=,
222+
=#+HUGO_CATEGORIES= and =#+KEYWORDS=. See this commit for details
223+
and examples -- commit [[https://github.com/kaushalmodi/ox-hugo/commit/319435db][319435db]].
224+
*** Fixes
225+
- Fix =HUGO_LEVEL_OFFSET= not getting set -- #[[https://github.com/kaushalmodi/ox-hugo/issues/117][117]], thanks
226+
@[[https://github.com/shimmy1996][*shimmy1996*]]!
227+
- Fix internal subtree counter not getting reset after a file-based
228+
export.
229+
- Fix clickable image links with =#+NAME= -- commit [[https://github.com/kaushalmodi/ox-hugo/commit/fef0ec50][fef0ec50]].
230+
- Make title text rendering more robust.. now Markdown markup
231+
characters like =*=, =_= and =`= show up fine, verbatim, in the
232+
title.
233+
- Make em dash, en dash, horizontal ellipsis render in post titles
234+
too -- Hugo #[[https://github.com/gohugoio/hugo/issues/4175][4175]] (/Upstream bug fix/), and in source
235+
block captions and table captions too.
236+
- Fix double-escaping of =#= and =![= in Markdown export --
237+
#[[https://github.com/kaushalmodi/ox-hugo/issues/110][110]] (/fix in upstream =ox-md.el=/).
238+
*** Meta
239+
- Re-write the logic for parsing meta-data for various kinds of dates,
240+
and optimize the logic for parsing newline separated lists like tags
241+
and categories.
242+
- The =bare_min= theme used for the test site is made more portable
243+
(at some point, that theme might be moved to a separate repo).
170244
** v0.7 <2017-12-18 Mon>
171245
*** Features
172246
- *Now C-c C-e H H works for both per-subtree and per-file flows* --

doc/github-files.org

+2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
#+MACRO: commit commit [[https://github.com/kaushalmodi/ox-hugo/commit/$1][$1]]
55
#+MACRO: issue #[[https://github.com/kaushalmodi/ox-hugo/issues/$1][$1]]
66
#+MACRO: bfissue Blackfriday # [[https://github.com/russross/blackfriday/issues/$1][$1]]
7+
#+MACRO: hugoissue Hugo #[[https://github.com/gohugoio/hugo/issues/$1][$1]]
78
#+MACRO: imageclick [[https://raw.githubusercontent.com/kaushalmodi/ox-hugo/master/doc/static/images/$1][https://raw.githubusercontent.com/kaushalmodi/ox-hugo/master/doc/static/images/$1]]
89
#+MACRO: doc [[https://ox-hugo.scripter.co/doc/$1][$2]]
910
#+MACRO: travis [[https://travis-ci.org/kaushalmodi/ox-hugo][https://travis-ci.org/kaushalmodi/ox-hugo.svg?branch=master]]
1011
#+MACRO: melpa [[https://melpa.org/#/ox-hugo][file:https://melpa.org/packages/ox-hugo-badge.svg]]
1112
#+MACRO: GPLv3 [[https://www.gnu.org/licenses/gpl-3.0][https://img.shields.io/badge/License-GPL%20v3-blue.svg]]
1213
#+MACRO: gitter [[https://gitter.im/KaushalModi/Lobby][https://badges.gitter.im/KaushalModi/Lobby.svg]]
1314
#+MACRO: saythanks [[https://saythanks.io/to/kaushalmodi][https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg]]
15+
#+MACRO: user @[[https://github.com/$1][*$1*]]
1416

1517
* Readme :readme:
1618
:PROPERTIES:

doc/ox-hugo-manual.org

+76
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
#+MACRO: commit commit [[https://github.com/kaushalmodi/ox-hugo/commit/$1][$1]]
1111
#+MACRO: issue #[[https://github.com/kaushalmodi/ox-hugo/issues/$1][$1]]
1212
#+MACRO: bfissue Blackfriday #[[https://github.com/russross/blackfriday/issues/$1][$1]]
13+
#+MACRO: hugoissue Hugo #[[https://github.com/gohugoio/hugo/issues/$1][$1]]
1314
#+MACRO: ox-hugo-test-file [[https://raw.githubusercontent.com/kaushalmodi/ox-hugo/master/test/site/content-org/all-posts.org][=all-posts.org=]]
1415
#+MACRO: doc [[/doc/$1][$2]]
16+
#+MACRO: user @[[https://github.com/$1][*$1*]]
1517

1618
* Changelog
1719
:PROPERTIES:
@@ -22,6 +24,80 @@
2224
*** Backward-incompatible changes
2325
*** Fixes
2426
*** Meta
27+
** v0.8 <2018-01-26 Fri>
28+
*** Features
29+
- Support exporting content files and attachments (images, documents)
30+
to Page Bundles organization structure (Hugo v0.32+) --
31+
{{{issue(111)}}}.
32+
- Support exporting =resources= front-matter (Hugo v0.33+) --
33+
{{{issue(115)}}}.
34+
- Support exporting =headless= front-matter (Hugo v0.35+).
35+
- Advanced table styling is now possible by specifying =#+ATTR_HTML=
36+
and =#+ATTR_CSS= (this one is unique to =ox-html=) above Org
37+
tables. See its [[https://ox-hugo.scripter.co/doc/table-styling/][documentation]] -- {{{issue(93)}}}.
38+
- Similarly, support =#+ATTR_HTML= and =#+ATTR_CSS= for paragraphs,
39+
example blocks, source blocks, plain lists and quote blocks too --
40+
{{{issue(113)}}}.
41+
- Now =publishdate= and =expirydate= front-matter properties get
42+
auto-derived from =SCHEDULED= and =DEADLINE= special properties if
43+
associated with the valid Hugo post subtree --
44+
{{{commit(0807f42d)}}}.
45+
- Date values can now be easily set using the =C-c .= binding in the
46+
=HUGO_PUBLISHDATE= and =HUGO_EXPIRYDATE= properties too.
47+
- Export source blocks and table captions -- {{{issue(38)}}}. Here's a
48+
suggested CSS for the captions:
49+
#+BEGIN_SRC css
50+
figcaption,
51+
.src-block-caption,
52+
.table-caption {
53+
font-style: italic;
54+
text-align: center;
55+
}
56+
#+END_SRC
57+
- Export descriptive or definition lists in Blackfriday-friendly
58+
Markdown format -- {{{issue(114)}}}.
59+
- Support Org Special Blocks [[https://www.gnu.org/software/emacs/manual/html_node/org/Special-blocks.html][like in HTML and LaTeX exports]] --
60+
{{{issue(105)}}}. Here's one little example:
61+
#+BEGIN_SRC org
62+
,#+BEGIN_mark
63+
/Some/ *marked* text
64+
,#+END_mark
65+
#+END_SRC
66+
- Allow setting =:EXPORT_HUGO_SECTION:= in the valid Hugo post subtree
67+
itself.
68+
- Enable replacing any key in the front-matter with anything; it's
69+
even possible to swap the keys now (tags↔categories:
70+
{{{commit(fb21e82c)}}}). New keyword:
71+
=HUGO_FRONT_MATTER_KEY_REPLACE= -- see {{{commit(b72a5fb0)}}}.
72+
- Now all the Org keyword values that should get merged, get merged --
73+
{{{commit(38eba6d5)}}}.
74+
- Add =title= as a valid property of =menu= front-matter (Hugo
75+
v0.32+).
76+
*** Backward-incompatible changes
77+
- A "better user-experience" change.. now you do not need to use
78+
/double-underscores/ as /space/ replacement in =#+HUGO_TAGS=,
79+
=#+HUGO_CATEGORIES= and =#+KEYWORDS=. See this commit for details
80+
and examples -- {{{commit(319435db)}}}.
81+
*** Fixes
82+
- Fix =HUGO_LEVEL_OFFSET= not getting set -- {{{issue(117)}}}, thanks
83+
{{{user(shimmy1996)}}}!
84+
- Fix internal subtree counter not getting reset after a file-based
85+
export.
86+
- Fix clickable image links with =#+NAME= -- {{{commit(fef0ec50)}}}.
87+
- Make title text rendering more robust.. now Markdown markup
88+
characters like =*=, =_= and =`= show up fine, verbatim, in the
89+
title.
90+
- Make em dash, en dash, horizontal ellipsis render in post titles
91+
too -- {{{hugoissue(4175)}}} (/Upstream bug fix/), and in source
92+
block captions and table captions too.
93+
- Fix double-escaping of =#= and =![= in Markdown export --
94+
{{{issue(110)}}} (/fix in upstream =ox-md.el=/).
95+
*** Meta
96+
- Re-write the logic for parsing meta-data for various kinds of dates,
97+
and optimize the logic for parsing newline separated lists like tags
98+
and categories.
99+
- The =bare_min= theme used for the test site is made more portable
100+
(at some point, that theme might be moved to a separate repo).
25101
** v0.7 <2017-12-18 Mon>
26102
*** Features
27103
- *Now C-c C-e H H works for both per-subtree and per-file flows* --

ox-hugo.el

+2-2
Original file line numberDiff line numberDiff line change
@@ -1094,12 +1094,12 @@ cannot be formatted in Hugo-compatible format."
10941094
(org-string-nw-p
10951095
(org-export-get-date info hugo-date-fmt))))
10961096
((and (equal date-key :hugo-publishdate)
1097-
;; Get the date from the "SCHEDULED" property.
10981097
(org-entry-get (point) "SCHEDULED"))
1098+
;; Get the date from the "SCHEDULED" property.
10991099
(org-entry-get (point) "SCHEDULED"))
11001100
((and (equal date-key :hugo-expirydate)
1101-
;; Get the date from the "DEADLINE" property.
11021101
(org-entry-get (point) "DEADLINE"))
1102+
;; Get the date from the "DEADLINE" property.
11031103
(org-entry-get (point) "DEADLINE"))
11041104
(t ;:hugo-lastmod, :hugo-publishdate, :hugo-expirydate
11051105
(org-string-nw-p

0 commit comments

Comments
 (0)