Last active
February 25, 2020 05:52
-
-
Save trevorfox/529c40da01f66be0f6c72b2a50a9e5ae to your computer and use it in GitHub Desktop.
Example HTML file before and after Jinja2 rendering
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>{{ article.title }} | {{site.name}}</title> | |
<meta name="description" content="{{ article.description }}"> | |
</head> | |
<body> | |
<h1>{{ article.title }}</h1> | |
<div class="byline">by TrevorFox </div> | |
<div class="content">{{ article.content }}</div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title> My First Time Skydiving! | My Life Story</title> | |
<meta name="description" content="I went skydiving for the first time in my life on my birthday. Check out the story and all the cool pictures."> | |
</head> | |
<body> | |
<h1>My First Time Skydiving!</h1> | |
<div class="byline">by TrevorFox </div> | |
<div class="content">On my 30th birthday I… </div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment