I've been maintaining my resume in orgmode for some time now, with export to pdf. I just decided it would be nice to also export to html which has uncovered a problem.
I'm using headings to list my previous jobs, with a macro that puts a date range on the same line, but right aligned. The macro uses latex to do the magic, which you can see below. I've also looked at replacing the macro with a tag, but tags don't seem to allow spaces or dashes.
Wanted to see if anyone here has any smart tricks for the org file so that it will export to both pdf and html nicely.
Here's a MWE of my resume org file:
#+OPTIONS: toc:nil num:nil
#+MACRO: date \hfill\normalfont{\small $1}
* Job 1 {{{date(July 2019 -- Dec 2019)}}}
/Description of job/
- This is the macro solution I am currently using. It doesn't export to html very nicely...
* Job 2 :Jul2019Dec2019:
/Description of second job/
- Here I am using a tag for the date
- Problem is that I can't put spaces or dashes in the tag...
Here's the pdf output: https://imgur.com/9syixz3
Here's the html output: https://imgur.com/1rRgPY5