Allow tutorials outside of haskell - #54
Conversation
f0f07c7 to
2c7200d
Compare
| route idRoute | ||
| compile $ do | ||
| tutorials <- recentFirst =<< loadAll "tutorials/haskell/*/*.md" | ||
| tutorials <- recentFirst =<< loadAll "tutorials/(haskell|functional-full-stack)/*/*.md" |
There was a problem hiding this comment.
@javcasas You can use Hakyll's (.||.) and make it a pattern to reuse everywhere:
pattern :: [Pattern]
pattern =
"tutorials/functional-full-stack/*/*.md"
.||. "tutorials/haskell/*/*.md"Alternatively, make a list of languages (or some other name) and map over each one to make a list of patterns, and then fold using (.||.).
Or use Hakyll's fromRegex if you really want to use something besides *.
There was a problem hiding this comment.
Yeah, the unix-like regex doesn't work. In fact, I figured out it's wrong, it should have been something like {haskell,functional-full-stack} (parentheses + commas). I have rebuilt it as fold with a list of programming languages.
| --- | ||
| title: Connecting a Haskell Backend to a PureScript Frontend | ||
| published: not-yet | ||
| published: 2017-07-17 |
There was a problem hiding this comment.
Hakyll was choking on this. Also Cynthia is trying to get it published this day, so I'll give her that.
|
It seems the images are expected to be shown on local (I assumed they didn't have to). I'll fix that. |
juanpaucar
left a comment
There was a problem hiding this comment.
LGTM, thank you very much
It seems the system only allows tutorials to be placed on a
haskelldirectory insidetutorials. Looking forward to make tutorials on other programming languages.