-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
73 lines (61 loc) · 2.41 KB
/
index.html
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
72
73
<!doctype html>
<html>
<body>
<header class="page-header">
<h1 class="name">Chuva</h1>
<nav class="primary-navigation">
<ul>
<li><a href="#">Home</a></li>
<li><a href="blog.html">Blog</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</header>
<main class="page-content">
<section>
<div class="articles">
<!--<article>-->
<!--<h1 class="title">Background</h1>-->
<!--<div class="body">-->
<!--<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>-->
<!--</div>-->
<!--</article>-->
</div>
</section>
</main>
<footer class="page-footer">
<ul class="links">
<li><a href="https://twitter.com" target="_blank" class="social twitter">Twitter</a></li>
<li><a href="https://github.com/omniBENEV0LENT" target="_blank" class="social github">Github</a></li>
<li><a href="mailto:[email protected]?subject=From%20your%20blog.">[email protected]</a></li>
</ul>
<div class="footnote">
<p><small>©2017 Nilson Nascimento</small></p>
</div>
</footer>
</body>
<head>
<title>Chuva</title>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/styles.css">
<script src="https://code.jquery.com/jquery-3.2.1.js" integrity="sha256-DZAnKJ/6XZ9si04Hgrsxu/8s717jcIzLy3oi35EouyE=" crossorigin="anonymous"></script>
<script src="js/scripts.js" type="text/javascript" charset="utf-8"></script>
<script src="https://cdn.rawgit.com/showdownjs/showdown/1.7.4/dist/showdown.min.js"></script>
<link rel="stylesheet" href="/highlight/styles/default.css">
<script src="/highlight/highlight.pack.js"></script>
<script>
$.get('/articles/swifty_json.md', function(response) {
var converter = new showdown.Converter();
var html = converter.makeHtml(response);
$(".articles").replaceWith(html);
console.log(hljs.listLanguages());
$('pre code').each(function(i, block) {
hljs.highlightBlock(block);
});
}, "html").fail(function(jqXHR) {
$(".articles").replaceWith("<p>Error loading articles</p>");
});
</script>
</head>
</html>