1 | <!DOCTYPE html> |
2 | <html> |
3 | <head> |
4 | <meta http-equiv="content-type" content="text/html; charset=utf-8"> |
5 | <title>Josh Stockin - $title</title> |
6 | <meta name="title" content="$title" /> |
7 | <meta name="description" content="$summary" /> |
8 | <meta property="og:site_name" content="Josh Stockin" /> |
9 | <meta property="og:title" content="$title" /> |
10 | <meta property="og:description" content="$summary" /> |
11 | <meta property="og:type" content="website" /> |
12 | <meta property="og:image" content="$banner" /> |
13 | <meta property="og:image:width" content="750" /> |
14 | <meta property="og:image:height" content="250" /> |
15 | <meta property="og:url" content="https://joshstock.in$permalink" /> |
16 | <link rel="stylesheet" href="/blog.css"> |
17 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
18 | </head> |
19 | <body> |
20 | <div class="blog-center"> |
21 | <span><a href="/blog"><< Back to archive</a></span> |
22 | <h1>Josh Stockin</h1> |
23 | <div class="blog-banner" style="background-image: url($banner)"></div> |
24 | <h1 class="blog-top-1">$title</h1> |
25 | <p class="blog-top-2"><code>$date</code></p> |
26 | $content |
27 | <p><a href="$permalink">Article Permalink</a></p> |
28 | <div id="disqus_thread"></div> |
29 | <script> |
30 | var disqus_config = function () { |
31 | this.page.url = "https://joshstock.in$permalink"; |
32 | this.page.identifier = "https://joshstock.in$permalink"; |
33 | }; |
34 | (function() { |
35 | var d = document, s = d.createElement('script'); |
36 | s.src = 'https://joshstockin.disqus.com/embed.js'; |
37 | s.setAttribute('data-timestamp', +new Date()); |
38 | (d.head || d.body).appendChild(s); |
39 | })(); |
40 | </script> |
41 | <noscript><p>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</p></a></noscript> |
42 | $copyright |
43 | </div> |
44 | <script> |
45 | let blog_center = document.getElementsByClassName("blog-center")[0]; |
46 | let headers = blog_center.getElementsByTagName("h2"); |
47 | for (let i = 0; i < headers.length; i++) { |
48 | let header = headers[i]; |
49 | console.log(header); |
50 | let inner = header.innerHTML; |
51 | let id = inner.replace(/[^a-z0-9]/gi,"-").toLowerCase(); |
52 | header.id = id; |
53 | header.innerHTML = "<a href=\"#" + id + "\">" + inner + "</a>"; |
54 | } |
55 | </script> |
56 | </body> |
57 | </html> |
58 |
|