AlexsLemonade / training-specific-template

Template repository that can be cloned to create repo for administering a specific training workshop
https://alexslemonade.github.io/training-specific-template/
Other
0 stars 2 forks source link

Setup single HOME.md file #123

Closed sjspielman closed 1 year ago

sjspielman commented 1 year ago

Once our remote vs. in-person config variable (see #106) is set up, we'll want to formally update the HOME.md file to handle in-person and remote.

My original plan was to use jekyll include to bring in certain content from separate home-<remote/inperson>.md files into the main HOME.md, but we may not need to get that fancy! It could be fine here to just use if blocks and just directly write the text into each.

for reference, here's some jekyll syntax -

if

# here page.platform is a page-specific variable but we'll want to use a "site" variable defined in config.
{% if page.platform == "mac" %}
Here's some info about the Mac.
{% elsif page.platform == "windows" %}
Here's some info about Windows ...
{% endif %}

include

{% include custom/mypage.html %}

sjspielman commented 1 year ago

We're going to end up taking a much simpler route here using if's to control remote vs. inperson logic. No need for %include%.

sjspielman commented 1 year ago

Closed by changes in #138