moth/example-puzzles/example/2/puzzle.moth

39 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2016-11-28 16:28:27 -07:00
Author: neale
Summary: Static puzzle resource files
2017-10-03 15:49:55 -06:00
File: salad.jpg s.jpg
File: salad2.jpg s2.jpg hidden
2016-11-28 16:28:27 -07:00
Answer: salad
You can include additional resources in a static puzzle,
2017-10-03 15:49:55 -06:00
by dropping them in the directory and listing them in a `File:` header field.
2016-11-28 16:28:27 -07:00
2017-10-03 15:49:55 -06:00
The format is:
File: filename [translatedname] [hidden]
If `translatedname` is provided,
the filename is changed to it when the puzzle category is built.
You can use this to give good filenames while building,
but obscure them during build.
On this page, we obscure `salad.jpg` to `s.jpg`,
and `salad2.jpg` to `s2.jpg`,
so that people can't guess the answer based on filename.
The word `hidden`, if present,
prevents a file from being listed at the bottom of the page.
Here are the `File:` fields in this page:
File: salad.jpg s.jpg
File: salad2.jpg s2.jpg hidden
You can refer to resources directly in your Markdown,
2016-11-28 16:28:27 -07:00
or use them however else you see fit.
They will appear in the same directory on the web server once the exercise is running.
2017-10-03 15:49:55 -06:00
Check the source for this puzzle to see how it was created.
2016-11-28 16:28:27 -07:00
2017-10-03 15:49:55 -06:00
![Leafy Green Deliciousness](s.jpg)
![Mmm so good](s2.jpg)
2016-11-28 16:28:27 -07:00
The answer for this page is what is featured in the photograph.