forked from microsoft/pxt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.html
More file actions
70 lines (56 loc) · 1.79 KB
/
package.html
File metadata and controls
70 lines (56 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta charset="UTF-8">
<title>@title@ @version@ (@slug@)</title>
<meta name="Description" content="@description@" />
<!-- @include meta.html -->
<!-- @include head.html -->
</head>
<body id='root' class='root'>
<!-- @include pageheader.html -->
<!-- @include macros.html -->
<aside id=main-container class=box>
@BODY@
</aside>
<div class="ui main container mainbody">
@breadcrumb@
<!-- @ifndef official -->
<!-- @include abuse.html -->
<!-- @endif -->
<!-- @ifdef official -->
<div class="ui icon green tiny message" style='margin: 1rem 0'>
<i class="check icon"></i>
<div class="content">
<h3 class="header">
Approved content
</h3>
<p>
The content below is provided by a partner.
</p>
</div>
</div>
<!-- @endif -->
<h1 id="templateh1" class="ui header">
<div class="ui content">
@slug@ @version@
<a href="https://github.com/@slug@" class="ui button" title="Open @slug@ in GitHub" aria-label="Open in GitHub">
<i class="github icon"></i>
GitHub
</a>
</div>
</h1>
@body@
</div>
<script>
const pkgJson = @JSON@;
// do something with it
// remove h1 from markdown
$(function() {
$('h1:contains(@title@)').not('#templateh1').remove();
})
</script>
<!-- @include footer.html -->
<!-- @include tracking.html -->
</body>
</html>