-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
71 lines (71 loc) · 2.53 KB
/
index.html
File metadata and controls
71 lines (71 loc) · 2.53 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
71
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>yetone 的博客</title>
<link rel="stylesheet" href="css/app.css">
<link rel="stylesheet" href="css/default.css">
<script src="js/highlight.pack.js"></script>
<script src="js/jquery.min.js"></script>
<script src="js/marked.min.js"></script>
<script src="js/moment.min.js"></script>
<script src="js/shani.js"></script>
<script src="js/lighthouse.js"></script>
<script src="js/app.js"></script>
<script type="text/template" id="gist-list-tpl">
<ul id="gist-list">
{% for _, gist in gists %}
<li class="gist-item" data-id="{{ gist.id }}" data-raw="{{ gist.files[filename].raw_url }}">
<a class="gist-title" href="#/blog/{{ gist.id }}">
{{ gist.description }}
</a>
<div class="gist-meta">
<a class="gist-created-at" href="#/blog/{{ gist.id }}">
{{ moment(gist.created_at).format('YYYY-MM-DD HH:mm:ss') }}
</a>
<!--
<a class="gist-comment-count" href="#/blog/{{ gist.id }}">
{{ gist.comments }}
</a>
-->
</div>
</li>
{% end %}
</ul>
</script>
<script type="text/template" id="gist-detail-tpl">
<div data-version="0.1.1" id="gist-container">
<h1 class="blog-title"> {{ title }}</h1>
<div class="blog-content">
{{ marked(content) }}
{% for _, file in files %}
<div class="file">
<div class="file-header">
<span class="icon">
<b class="octicon octicon-gist"></b>
</span>
<a target="_blank" class="raw-url" href="{{ file.raw_url }}">{{ file.filename }}</a>
</div>
<div class="file-content">
{% if file.src %}
<iframe class="render-view" src="{{ file.src }}" sandbox="allow-scripts allow-same-origin"></iframe>
{% else %}
{{ marked('```' + (file.language ? file.language.toLowerCase() : '') + '\n' + file.content + '\n```') }}
{% end %}
</div>
</div>
{% end %}
</div>
{% if title.toLowerCase() !== 'resume' %}
<a class="blog-created-at" target="_blank" href="{{ html_url }}">{{ moment(created_at).format('YYYY-MM-DD HH:mm:ss') }}</a>
{% end %}
</div>
</script>
</head>
<body>
<div id="wrapper">
<div id="main">
</div>
</div>
</body>
</html>