diff options
| author | Yehonal <yehonal.azeroth@gmail.com> | 2018-12-16 15:54:48 +0100 |
|---|---|---|
| committer | Yehonal <yehonal.azeroth@gmail.com> | 2018-12-16 16:35:55 +0100 |
| commit | 4a8156e08a5e3ffe540f56ecb894b951dd9b7c84 (patch) | |
| tree | e14862984ffba17f4a8fe53d90b937917014827a /_includes | |
| parent | d910d7263f43ddce21dbab7345dd679dc5b092b6 (diff) | |
| download | wiki-4a8156e08a5e3ffe540f56ecb894b951dd9b7c84.tar.gz wiki-4a8156e08a5e3ffe540f56ecb894b951dd9b7c84.tar.bz2 wiki-4a8156e08a5e3ffe540f56ecb894b951dd9b7c84.zip | |
Git-Wiki 2.0
Diffstat (limited to '_includes')
| -rw-r--r-- | _includes/drassil_comments/comments.html | 20 | ||||
| -rw-r--r-- | _includes/drassil_sidebar/sidebar.html | 6 | ||||
| -rw-r--r-- | _includes/gw_content/body.html | 5 | ||||
| -rw-r--r-- | _includes/gw_content/content.html | 25 | ||||
| -rw-r--r-- | _includes/gw_content/wrapper.html | 5 | ||||
| -rw-r--r-- | _includes/gw_defines/defines.html | 5 | ||||
| -rw-r--r-- | _includes/gw_footer/footer.html | 19 | ||||
| -rw-r--r-- | _includes/gw_head/head.html | 13 | ||||
| -rw-r--r-- | _includes/gw_head/meta.html | 12 | ||||
| -rw-r--r-- | _includes/gw_head/scripts.html | 15 | ||||
| -rw-r--r-- | _includes/gw_head/styles.html | 9 | ||||
| -rw-r--r-- | _includes/gw_header/downloads.html | 5 | ||||
| -rw-r--r-- | _includes/gw_header/header.html | 21 | ||||
| -rw-r--r-- | _includes/gw_header/logo.html | 4 | ||||
| -rw-r--r-- | _includes/gw_tail/tail.html | 34 | ||||
| -rw-r--r-- | _includes/gw_tools/page_actions.html | 14 | ||||
| -rw-r--r-- | _includes/gw_tools/search_module.html | 25 | ||||
| -rw-r--r-- | _includes/gw_tools/tools.html | 13 |
18 files changed, 250 insertions, 0 deletions
diff --git a/_includes/drassil_comments/comments.html b/_includes/drassil_comments/comments.html new file mode 100644 index 0000000..bf4d761 --- /dev/null +++ b/_includes/drassil_comments/comments.html @@ -0,0 +1,20 @@ +<div id="disqus_thread"></div> +<script> + + /** + * RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS. + * LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/ + /* + var disqus_config = function () { + this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable + this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable + }; + */ + (function () { // DON'T EDIT BELOW THIS LINE + var d = document, s = d.createElement('script'); + s.src = 'https://git-wiki.disqus.com/embed.js'; + s.setAttribute('data-timestamp', +new Date()); + (d.head || d.body).appendChild(s); + })(); +</script> +<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
\ No newline at end of file diff --git a/_includes/drassil_sidebar/sidebar.html b/_includes/drassil_sidebar/sidebar.html new file mode 100644 index 0000000..4b7a396 --- /dev/null +++ b/_includes/drassil_sidebar/sidebar.html @@ -0,0 +1,6 @@ +Menu: + +<ul> + <li><a href="{{ '/' | relative_url }}">Home</a></li> + <li><a href="{{ '/wiki/examples.html' | relative_url }}">Made with Git-Wiki</a> +</ul>
\ No newline at end of file diff --git a/_includes/gw_content/body.html b/_includes/gw_content/body.html new file mode 100644 index 0000000..5edfa9b --- /dev/null +++ b/_includes/gw_content/body.html @@ -0,0 +1,5 @@ +<body> + {% include gw_content/wrapper.html %} + + {% include gw_tail/tail.html %} +</body>
\ No newline at end of file diff --git a/_includes/gw_content/content.html b/_includes/gw_content/content.html new file mode 100644 index 0000000..347f69d --- /dev/null +++ b/_includes/gw_content/content.html @@ -0,0 +1,25 @@ +<section> + {% include gw_tools/tools.html %} + + {% if site.inc_before_toc %} + {% include {{ site.inc_before_toc }} %} + {% endif %} + + <div id="toc"></div> + + {% if site.inc_after_toc %} + {% include {{ site.inc_after_toc }} %} + {% endif %} + + {% if site.inc_before_content %} + {% include {{ site.inc_before_content }} %} + {% endif %} + + <div id="content"> + {{ content }} + </div> + + {% if site.inc_after_content %} + {% include {{ site.inc_after_content }} %} + {% endif %} +</section>
\ No newline at end of file diff --git a/_includes/gw_content/wrapper.html b/_includes/gw_content/wrapper.html new file mode 100644 index 0000000..9fb0223 --- /dev/null +++ b/_includes/gw_content/wrapper.html @@ -0,0 +1,5 @@ +<div class="wrapper"> + {% include gw_header/header.html %} + {% include gw_content/content.html %} + {% include gw_footer/footer.html %} +</div>
\ No newline at end of file diff --git a/_includes/gw_defines/defines.html b/_includes/gw_defines/defines.html new file mode 100644 index 0000000..d479d72 --- /dev/null +++ b/_includes/gw_defines/defines.html @@ -0,0 +1,5 @@ +{% assign version = "1.0.5" %} +{% capture lchar %}{{page.url | slice: -1, 1}}{% endcapture %} +{% capture url %} +{% if lchar == "/" %}{{page.url}}index.html{% else %}{{ page.url | default: 'index.html' }}{% endif%} +{% endcapture %}
\ No newline at end of file diff --git a/_includes/gw_footer/footer.html b/_includes/gw_footer/footer.html new file mode 100644 index 0000000..7aed17c --- /dev/null +++ b/_includes/gw_footer/footer.html @@ -0,0 +1,19 @@ +<footer> + {% if site.inc_before_footer %} + {% include {{ site.inc_before_footer }} %} + {% endif %} + + {% if site.github.is_project_page %} + <p>This project is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a></p> + {% endif %} + <p><small>Hosted on GitHub Pages — Powered by <a href="https://github.com/Drassil/git-wiki">Git-Wiki v{{ + version }}</a> </p> + + {% if site.github.is_project_page %} + <p class="view"><a href="{{ site.github.repository_url }}">View the Project on GitHub <small>{{ github_name }}</small></a></p> + {% endif %} + + {% if site.inc_after_footer %} + {% include {{ site.inc_after_footer }} %} + {% endif %} +</footer>
\ No newline at end of file diff --git a/_includes/gw_head/head.html b/_includes/gw_head/head.html new file mode 100644 index 0000000..cf82bd9 --- /dev/null +++ b/_includes/gw_head/head.html @@ -0,0 +1,13 @@ +<head> + {% if site.inc_before_head %} + {% include {{ site.inc_before_head }} %} + {% endif %} + + {% include gw_head/meta.html %} + {% include gw_head/scripts.html %} + {% include gw_head/styles.html %} + + {% if site.inc_after_head %} + {% include {{ site.inc_after_head }} %} + {% endif %} +</head>
\ No newline at end of file diff --git a/_includes/gw_head/meta.html b/_includes/gw_head/meta.html new file mode 100644 index 0000000..141ab05 --- /dev/null +++ b/_includes/gw_head/meta.html @@ -0,0 +1,12 @@ +{% if site.inc_before_meta %} +{% include {{ site.inc_before_meta }} %} +{% endif %} + +<meta charset="utf-8"> +<meta http-equiv="X-UA-Compatible" content="chrome=1"> +<meta name="viewport" content="width=device-width"> +<title>{{ site.title | default: site.github.repository_name }} by {{ site.github.owner_name }}</title> + +{% if site.inc_after_meta %} +{% include {{ site.inc_after_meta }} %} +{% endif %}
\ No newline at end of file diff --git a/_includes/gw_head/scripts.html b/_includes/gw_head/scripts.html new file mode 100644 index 0000000..65ee4ff --- /dev/null +++ b/_includes/gw_head/scripts.html @@ -0,0 +1,15 @@ +{% if site.inc_before_scripts %} +{% include {{ site.inc_before_scripts }} %} +{% endif %} + +<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" + crossorigin="anonymous"></script> +<script src="{{ '/assets/js/toc.js' | relative_url }}"></script> +<script src="{{ '/assets/js/red-links.js' | relative_url }}"></script> +<!--[if lt IE 9]> + <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> + <![endif]--> + +{% if site.inc_after_scripts %} +{% include {{ site.inc_after_scripts }} %} +{% endif %}
\ No newline at end of file diff --git a/_includes/gw_head/styles.html b/_includes/gw_head/styles.html new file mode 100644 index 0000000..3bb7ecc --- /dev/null +++ b/_includes/gw_head/styles.html @@ -0,0 +1,9 @@ +{% if site.inc_before_styles %} +{% include {{ site.inc_before_styles }} %} +{% endif %} + +<link rel="stylesheet" href="{{ '/assets/css/git-wiki-style.css?v=' | append: site.github.build_revision | relative_url }}"> + +{% if site.inc_after_styles %} +{% include {{ site.inc_after_styles }} %} +{% endif %}
\ No newline at end of file diff --git a/_includes/gw_header/downloads.html b/_includes/gw_header/downloads.html new file mode 100644 index 0000000..8f654f9 --- /dev/null +++ b/_includes/gw_header/downloads.html @@ -0,0 +1,5 @@ +<ul class="downloads"> + <li><a href="{{ site.github.zip_url }}">Download <strong>ZIP File</strong></a></li> + <li><a href="{{ site.github.tar_url }}">Download <strong>TAR Ball</strong></a></li> + <li><a href="{{ site.github.repository_url }}">View On <strong>GitHub</strong></a></li> +</ul>
\ No newline at end of file diff --git a/_includes/gw_header/header.html b/_includes/gw_header/header.html new file mode 100644 index 0000000..1b0b74c --- /dev/null +++ b/_includes/gw_header/header.html @@ -0,0 +1,21 @@ +<header> + {% if site.inc_before_header %} + {% include {{ site.inc_before_header }} %} + {% endif %} + + {% if site.show_downloads %} + {% include gw_header/logo.html %} + {% endif %} + + {% if site.github.is_user_page %} + <p class="view"><a href="{{ site.github.owner_url }}">View My GitHub Profile</a></p> + {% endif %} + + {% if site.show_downloads %} + {% include gw_header/downloads.html %} + {% endif %} + + {% if site.inc_after_header %} + {% include {{ site.inc_after_header }} %} + {% endif %} +</header>
\ No newline at end of file diff --git a/_includes/gw_header/logo.html b/_includes/gw_header/logo.html new file mode 100644 index 0000000..a4a36c3 --- /dev/null +++ b/_includes/gw_header/logo.html @@ -0,0 +1,4 @@ +<a href="{{ '/' | relative_url }}"><img src="{{ site.logo_url }}"> + <h1>{{ site.title | default: site.github.repository_name }}</h1> +</a> +<p>{{ site.description | default: site.github.project_tagline }}</p>
\ No newline at end of file diff --git a/_includes/gw_tail/tail.html b/_includes/gw_tail/tail.html new file mode 100644 index 0000000..e86191c --- /dev/null +++ b/_includes/gw_tail/tail.html @@ -0,0 +1,34 @@ +{% if site.inc_before_tail %} +{% include {{ site.inc_before_tail }} %} +{% endif %} + +<script src="{{ '/assets/js/scale.fix.js' | relative_url }}"></script> + +{% if site.google_analytics %} +<script> + (function (i, s, o, g, r, a, m) { + i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { + (i[r].q = i[r].q || []).push(arguments) + }, i[r].l = 1 * new Date(); a = s.createElement(o), + m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m) + })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga'); + + ga('create', '{{ site.google_analytics }}', 'auto'); + ga('send', 'pageview'); +</script> +{% endif %} + +<script type="text/javascript"> + $(document).ready(function () { + $('#toc').toc({ + title: '<i>Contents</i>', + showSpeed: 0, + headers: '#content h1, #content h2, #content h3, #content h4, #content h5, #content h6' + }); + $(document.body).redLinks(); + }); +</script> + +{% if site.inc_after_tail %} +{% include {{ site.inc_after_tail }} %} +{% endif %}
\ No newline at end of file diff --git a/_includes/gw_tools/page_actions.html b/_includes/gw_tools/page_actions.html new file mode 100644 index 0000000..927b178 --- /dev/null +++ b/_includes/gw_tools/page_actions.html @@ -0,0 +1,14 @@ +{{page.relative_path}} +{% if site.use_github_wiki %} +<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/{{page.folder}}{{url | remove: '.html' | append: ''}}/_edit">Edit</a></span> +<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/{{page.folder}}{{url | remove: '.html' | append: ''}}/_history">History</a></span> +<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/{{page.folder}}{{url | remove: '.html' | append: '.md'}}/">Source</a></span> +{% else %} +<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> +{% if site.use_prose_io %} +<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> +{% endif %} +<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> +<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> +{% endif %}
\ No newline at end of file diff --git a/_includes/gw_tools/search_module.html b/_includes/gw_tools/search_module.html new file mode 100644 index 0000000..f79335a --- /dev/null +++ b/_includes/gw_tools/search_module.html @@ -0,0 +1,25 @@ +{% if site.google_cse_token %} +<script> + (function () { + var cx = "{{site.google_cse_token}}"; + var gcse = document.createElement('script'); + gcse.type = 'text/javascript'; + gcse.async = true; + gcse.src = 'https://cse.google.com/cse.js?cx=' + cx; + var s = document.getElementsByTagName('script')[0]; + s.parentNode.insertBefore(gcse, s); + })(); +</script> +<gcse:search></gcse:search> +{% else %} +<form method="GET" action="{{ site.github.repository_url }}/search"> + <input type="text" name="q[]" placeholder="Text to search"> + {% if site.use_github_wiki %} + <input type="hidden" name="type" value="Wikis"> + {% else %} + <!-- <input type="hidden" name="l" value="Markdown"> --> + <input type="hidden" name="q[]" value="path:/{{ site.wiki_folder }}"> + {% endif %} + <input type="submit" value="Search"> +</form> +{% endif %}
\ No newline at end of file diff --git a/_includes/gw_tools/tools.html b/_includes/gw_tools/tools.html new file mode 100644 index 0000000..c0b50f7 --- /dev/null +++ b/_includes/gw_tools/tools.html @@ -0,0 +1,13 @@ +<div id="tools-buttons" style="width: 100%; text-align: right"> + {% if site.inc_before_tools %} + {% include {{ site.inc_before_tools }} %} + {% endif %} + + {% include gw_tools/page_actions.html %} + + {% include gw_tools/search_module.html %} + + {% if site.inc_after_tools %} + {% include {{ site.inc_after_tools }} %} + {% endif %} +</div>
\ No newline at end of file |
