Skip to content

Commit

Permalink
Merge pull request #95 from alphagov/preview-templates-update
Browse files Browse the repository at this point in the history
Add Prism.js and GOV.UK styles
  • Loading branch information
gemmaleigh authored Jun 28, 2017
2 parents 7d9b0de + d0be1ca commit 760b8c2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 6 additions & 4 deletions src/component-list-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@
}
</style>
</head>
<body>
<body class="govuk-c-site-width-container">
<script>document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');</script>
<h1>Components</h1>
<!-- inject:componentlinks -->
<!-- links to components will be injected here -->
<!-- endinject -->
<ul class="govuk-c-list">
<!-- inject:componentlinks -->
<!-- links to components will be injected here -->
<!-- endinject -->
</ul>
<script src="/js/govuk-frontend.js"></script>
</body>
</html>
4 changes: 3 additions & 1 deletion src/component-view-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
<!--[if IE 8]>
<link rel="stylesheet" href="/css/govuk-frontend-oldie.css">
<![endif]-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.6.0/themes/prism.min.css">
</head>
<body>
<body class="language-markup govuk-c-site-width-container">
<script>document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');</script>
<%= contents %>
<script src="/js/govuk-frontend.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.6.0/prism.min.js"></script>
</body>
</html>

0 comments on commit 760b8c2

Please sign in to comment.