-
Notifications
You must be signed in to change notification settings - Fork 1
Templates
Jono edited this page Oct 16, 2017
·
1 revision
This is an effort of documenting how to keep up to date with template changes which we use from PWD classroom.
Several ideas of how to do this:
- create default.liquid by hand periodically.
- create a liquid template that can be used in place of (post.html)[https://github.com/play-with-docker/play-with-docker.github.io/blob/master/_layouts/post.html] that has escaped variables in it, so variable names get rendered instead of replaced.
- write a script that gets a rendered template and then inspect the DOM to remove and add as needed.
Here are some rough manual steps that were used to create the first template.
curl http://training.play-with-docker.com/helloworld/ > hello.html
compare default.liquid with hello.html
change title block to <title>{{ title }}</title>
add pwder google tag manager
remove <meta name="twitter:*"> tags
remove <link rel="alternate" type="application/rss+xml" title="Play with Docker classroom" href="http://training.play-with-docker.com/feed.xml">
remove quiz.css and quiz.js
add custom Pwder CSS styles
remove <header class="site-header"> block
update <div class="post-content" itemprop="articleBody"> with pwder template variables
font3.href = 'http://training.play-with-docker.com/css/syntax-highlighting.css';
remove <footer> block
remove google analytics <script> block