|
| 1 | +<!doctype html> |
| 2 | +<html> |
| 3 | + <head> |
| 4 | + {% capture lchar %}{{page.url | slice: -1, 1}}{% endcapture %} |
| 5 | + {% capture url %}{% if lchar == "/" %}{{page.url}}index.html{% else %}{{ page.url | default: 'index.html' }}{% endif %}{% endcapture %} |
| 6 | + <meta charset="utf-8"> |
| 7 | + <meta http-equiv="X-UA-Compatible" content="chrome=1"> |
| 8 | + <title>{{ site.title | default: site.github.repository_name }} by {{ site.github.owner_name }}</title> |
| 9 | + |
| 10 | + <script |
| 11 | + src="https://code.jquery.com/jquery-3.2.1.min.js" |
| 12 | + integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" |
| 13 | + crossorigin="anonymous"></script> |
| 14 | + |
| 15 | + <link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}"> |
| 16 | + <script src="{{ '/assets/js/wiki-features.js' | relative_url }}"></script> |
| 17 | + |
| 18 | + {% if site.custom_head %} |
| 19 | + {% include head.html %} |
| 20 | + {% endif %} |
| 21 | + |
| 22 | + <meta name="viewport" content="width=device-width"> |
| 23 | + <!--[if lt IE 9]> |
| 24 | + <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> |
| 25 | + <![endif]--> |
| 26 | + </head> |
| 27 | + <body> |
| 28 | + <div class="wrapper"> |
| 29 | + <header> |
| 30 | + <a href="{{ '/' | relative_url }}"><img src="{{ site.logo_url }}"> |
| 31 | + <h1>{{ site.title | default: site.github.repository_name }}</h1> |
| 32 | + </a> |
| 33 | + <p>{{ site.description | default: site.github.project_tagline }}</p> |
| 34 | + |
| 35 | + {% if site.github.is_user_page %} |
| 36 | + <p class="view"><a href="{{ site.github.owner_url }}">View My GitHub Profile</a></p> |
| 37 | + {% endif %} |
| 38 | + |
| 39 | + {% if site.show_downloads %} |
| 40 | + <ul class="downloads"> |
| 41 | + <li><a href="{{ site.github.zip_url }}">Download <strong>ZIP File</strong></a></li> |
| 42 | + <li><a href="{{ site.github.tar_url }}">Download <strong>TAR Ball</strong></a></li> |
| 43 | + <li><a href="{{ site.github.repository_url }}">View On <strong>GitHub</strong></a></li> |
| 44 | + </ul> |
| 45 | + {% endif %} |
| 46 | + |
| 47 | + {% if site.custom_sidebar %} |
| 48 | + {% include sidebar.html %} |
| 49 | + {% endif %} |
| 50 | + |
| 51 | + </header> |
| 52 | + <section> |
| 53 | + <div id="tools-buttons" style="width: 100%; text-align: right"> |
| 54 | + {{page.relative_path}} |
| 55 | + {% if site.use_github_wiki %} |
| 56 | + <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/{{{page.folder}}{{url | remove: '.html' | append: ''}}/_edit">Edit</a></span> |
| 57 | + <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/{{{page.folder}}{{url | remove: '.html' | append: ''}}/_history">History</a></span> |
| 58 | + <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/{{{page.folder}}{{url | remove: '.html' | append: '.md'}}/">Source</a></span> |
| 59 | + {% else %} |
| 60 | + <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/edit/{{site.git_branch}}{{{page.folder}}{{url | remove: '.html' | append: '.md'}}">Edit</a></span> |
| 61 | + {% if site.use_prose_io %} |
| 62 | + <span class="tools-element"><a target="_blank" href="http://prose.io/#{{site.github.repository_nwo}}/edit/{{site.git_branch}}{{{page.folder}}{{url | remove: '.html' | append: '.md'}}">Edit with Prose.io</a></span> |
| 63 | + {% endif %} |
| 64 | + <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/commits/{{site.git_branch}}{{{page.folder}}{{url | remove: '.html' | append: '.md'}}">History</a></span> |
| 65 | + <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/blob/{{site.git_branch}}{{{page.folder}}{{url | remove: '.html' | append: '.md'}}">Source</a></span> |
| 66 | + {% endif %} |
| 67 | + |
| 68 | + {% if site.google_cse_token %} |
| 69 | + <script> |
| 70 | + (function() { |
| 71 | + var cx = "{{site.google_cse_token}}"; |
| 72 | + var gcse = document.createElement('script'); |
| 73 | + gcse.type = 'text/javascript'; |
| 74 | + gcse.async = true; |
| 75 | + gcse.src = 'https://cse.google.com/cse.js?cx=' + cx; |
| 76 | + var s = document.getElementsByTagName('script')[0]; |
| 77 | + s.parentNode.insertBefore(gcse, s); |
| 78 | + })(); |
| 79 | + </script> |
| 80 | + <gcse:search></gcse:search> |
| 81 | + {% else %} |
| 82 | + <form method="GET" action="{{ site.github.repository_url }}/search"> |
| 83 | + {% if site.use_github_wiki %} |
| 84 | + <input type="hidden" name="type" value="Wikis"> |
| 85 | + {% endif %} |
| 86 | + <input type="text" name="q" placeholder="Text to search"><input type="submit" value="Search"> |
| 87 | + </form> |
| 88 | + {% endif %} |
| 89 | + </div> |
| 90 | + |
| 91 | + <div id="toc"></div> |
| 92 | + |
| 93 | + <div id="content"> |
| 94 | + {{ content }} |
| 95 | + </div> |
| 96 | + |
| 97 | + {% if site.comments %} |
| 98 | + {% include comments.html %} |
| 99 | + {% endif %} |
| 100 | + |
| 101 | + </section> |
| 102 | + <footer> |
| 103 | + {% if site.custom_footer %} |
| 104 | + {% include footer.html %} |
| 105 | + {% endif %} |
| 106 | + |
| 107 | + {% if site.github.is_project_page %} |
| 108 | + <p>This project is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a></p> |
| 109 | + {% endif %} |
| 110 | + <p><small>Hosted on GitHub Pages — Powered by <a href="https://github.com/Drassil/git-wiki">Git-Wiki</a> </p> |
| 111 | + {% if site.github.is_project_page %} |
| 112 | + <p class="view"><a href="{{ site.github.repository_url }}">View the Project on GitHub <small>{{ github_name }}</small></a></p> |
| 113 | + {% endif %} |
| 114 | + </footer> |
| 115 | + </div> |
| 116 | + <script src="{{ '/assets/js/scale.fix.js' | relative_url }}"></script> |
| 117 | + |
| 118 | + |
| 119 | + {% if site.google_analytics %} |
| 120 | + <script> |
| 121 | + (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
| 122 | + (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
| 123 | + m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
| 124 | + })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); |
| 125 | + |
| 126 | + ga('create', '{{ site.google_analytics }}', 'auto'); |
| 127 | + ga('send', 'pageview'); |
| 128 | + </script> |
| 129 | + {% endif %} |
| 130 | + |
| 131 | + <script type="text/javascript"> |
| 132 | + $(document).ready(function() { |
| 133 | + $('#toc').toc({ title: '<i>Contents</i>'}); |
| 134 | + }); |
| 135 | + </script> |
| 136 | + </body> |
| 137 | +</html> |
0 commit comments