Skip to content

Instantly share code, notes, and snippets.

@kunukn
Last active August 29, 2015 14:13
Show Gist options
  • Select an option

  • Save kunukn/cf91cdbc423a0b1f0752 to your computer and use it in GitHub Desktop.

Select an option

Save kunukn/cf91cdbc423a0b1f0752 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title>Google News</title>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<link rel="stylesheet" type="text/css" href="google-news-responsive.css">
<script src="//code.jquery.com/jquery.min.js"></script>
<script src='//cdnjs.cloudflare.com/ajax/libs/handlebars.js/2.0.0/handlebars.min.js'>
</script>
</head>
<body>
<section id='rendered' class='template-rendered'></section>
<script id='template' type='text/x-handlebars-template'>
<h3 class='title'>Google News</h3>
<ul>
{{#entries}}
<li>
<a href='{{link}}' target='_blank'>
<div class='date gray'>{{publishedDate}}</div>
<div class='author gray'>{{authorFormat author}}</div>
<div class='clearboth'></div>
<div class='item-title'>{{title}}</div>
<div class='gray'>Categories: {{categoriesFormat categories}}</div>
</a>
</li>
{{/entries}}
</ul>
</script>
<script src='google-news-responsive.js'></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment