diff options
| author | Yehonal <yehonal.azeroth@gmail.com> | 2018-12-17 19:19:20 +0100 |
|---|---|---|
| committer | Yehonal <yehonal.azeroth@gmail.com> | 2018-12-17 21:01:20 +0100 |
| commit | 4e1a3540b9e9bcf8c95e2d61e674c7b9711dd99a (patch) | |
| tree | 3e671c486e329d2b67312cf7c6a4d81bff5c07ed /_includes/git-wiki/components | |
| parent | 2e2c8eefe545b70e0d7c5f1286477a083aff1f06 (diff) | |
| download | wiki-4e1a3540b9e9bcf8c95e2d61e674c7b9711dd99a.tar.gz wiki-4e1a3540b9e9bcf8c95e2d61e674c7b9711dd99a.tar.bz2 wiki-4e1a3540b9e9bcf8c95e2d61e674c7b9711dd99a.zip | |
v2.1.0 with blog feature implemented
Diffstat (limited to '_includes/git-wiki/components')
10 files changed, 137 insertions, 0 deletions
diff --git a/_includes/git-wiki/components/action_btn/downloads.html b/_includes/git-wiki/components/action_btn/downloads.html new file mode 100644 index 0000000..8f654f9 --- /dev/null +++ b/_includes/git-wiki/components/action_btn/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/git-wiki/components/action_btn/page_actions.html b/_includes/git-wiki/components/action_btn/page_actions.html new file mode 100644 index 0000000..af5a41f --- /dev/null +++ b/_includes/git-wiki/components/action_btn/page_actions.html @@ -0,0 +1,23 @@ +{% if site.use_github_wiki %} +<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/wiki/_new">Add new</a></span> +<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/wiki/{{url | remove: '.html' | append: ''}}/_edit">Edit</a></span> +<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/wiki/{{url | remove: '.html' | append: ''}}/_history">History</a></span> +<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/wiki/{{url | remove: '.html' | append: '.md'}}/">Source</a></span> +{% else %} +<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/new/{{site.git_branch}}?filename={{ site.wiki_folder | default: 'wiki' }}/">Add new</a></span> +<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> +<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> +{% if site.blog_feature %} +<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/new/{{site.git_branch}}?filename=_posts/">Add new post</a></span> +{% endif %} + {% if site.use_prose_io %} + <br> + Prose.io: + <span class="tools-element"><a target="_blank" href="http://prose.io/#{{site.github.repository_nwo}}/new/{{site.git_branch}}/{{ site.wiki_folder | default: 'wiki' }}">Add new</a></span> + <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</a></span> + {% if site.blog_feature %} + <span class="tools-element"><a target="_blank" href="http://prose.io/#{{site.github.repository_nwo}}/new/{{site.git_branch}}/_posts/">Add new post</a></span> + {% endif %} + {% endif %} +{% endif %}
\ No newline at end of file diff --git a/_includes/git-wiki/components/copyrights/copyrights.html b/_includes/git-wiki/components/copyrights/copyrights.html new file mode 100644 index 0000000..d53ff75 --- /dev/null +++ b/_includes/git-wiki/components/copyrights/copyrights.html @@ -0,0 +1,9 @@ +{% 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 %}
\ No newline at end of file diff --git a/_includes/git-wiki/components/lists/page-list.html b/_includes/git-wiki/components/lists/page-list.html new file mode 100644 index 0000000..8c32b63 --- /dev/null +++ b/_includes/git-wiki/components/lists/page-list.html @@ -0,0 +1,26 @@ +{% if site.inc_before_page_list %} +{% include {{ site.inc_before_page_list }} %} +{% endif %} + +<span class="page-list-title">Pages {% if (site.show_wiki_pages_limit >= 1 %} (Latest {{site.show_wiki_pages_limit }} updated) {% endif %}:</span> +<ul class="page-list"> +{% assign numPages=0 %} +{% assign items = site.pages | sort: 'date' %} +{% for post in items %} +{% if numPages >= site.show_wiki_pages_limit %} + {% break %} +{% endif %} + +{% if post.layout != "null" and post.sitemap != false and post.title %} + <li class="page-list-item"> + <a href="{{ post.url | relative_url }}">{{ post.title}}</a> + </li> + {% assign numPages = numPages | plus: 1 %} +{% endif %} + +{% endfor %} +</ul> + +{% if site.inc_after_page_list %} +{% include {{ site.inc_after_page_list }} %} +{% endif %}
\ No newline at end of file diff --git a/_includes/git-wiki/components/lists/post-list.html b/_includes/git-wiki/components/lists/post-list.html new file mode 100644 index 0000000..5e39359 --- /dev/null +++ b/_includes/git-wiki/components/lists/post-list.html @@ -0,0 +1,26 @@ +{% if site.inc_before_post_list %} +{% include {{ site.inc_before_post_list }} %} +{% endif %} + +<span class="post-list-title">Posts {% if (site.show_wiki_post_limit >= 1 %} (Latest {{site.show_wiki_post_limit }} updated) {% endif %}:</span> +<ul class="post-list"> +{% assign numPages=0 %} +{% assign items = site.posts | sort: 'date' %} +{% for post in items %} +{% if numPages >= site.show_wiki_post_limit %} + {% break %} +{% endif %} + +{% if post.layout != "null" and post.sitemap != false and post.title %} + <li class="post-list-item"> + <a href="{{ post.url | relative_url }}">{{ post.title}}</a> + </li> + {% assign numPages = numPages | plus: 1 %} +{% endif %} + +{% endfor %} +</ul> + +{% if site.inc_after_post_list %} +{% include {{ site.inc_after_post_list }} %} +{% endif %}
\ No newline at end of file diff --git a/_includes/git-wiki/components/logo/logo.html b/_includes/git-wiki/components/logo/logo.html new file mode 100644 index 0000000..a4a36c3 --- /dev/null +++ b/_includes/git-wiki/components/logo/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/git-wiki/components/search/index.html b/_includes/git-wiki/components/search/index.html new file mode 100644 index 0000000..8af31e8 --- /dev/null +++ b/_includes/git-wiki/components/search/index.html @@ -0,0 +1,7 @@ +{% comment %} + This component just select your preferred search engine based on _config.yml value +{% endcomment %} + +{% assign se = site.search_engine | default: "github" %} +{% assign file = "git-wiki/components/search/se_" | append: se | append: ".html" %} +{% include {{file}} %}
\ No newline at end of file diff --git a/_includes/git-wiki/components/search/se_github.html b/_includes/git-wiki/components/search/se_github.html new file mode 100644 index 0000000..efcc5e8 --- /dev/null +++ b/_includes/git-wiki/components/search/se_github.html @@ -0,0 +1,10 @@ +<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>
\ No newline at end of file diff --git a/_includes/git-wiki/components/search/se_google.html b/_includes/git-wiki/components/search/se_google.html new file mode 100644 index 0000000..0c3e675 --- /dev/null +++ b/_includes/git-wiki/components/search/se_google.html @@ -0,0 +1,12 @@ +<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>
\ No newline at end of file diff --git a/_includes/git-wiki/components/search/se_js.html b/_includes/git-wiki/components/search/se_js.html new file mode 100644 index 0000000..9e75464 --- /dev/null +++ b/_includes/git-wiki/components/search/se_js.html @@ -0,0 +1,15 @@ +<div class="container"> + <div class="well" id="searchbox"> + <input id="search-field" placeholder="Search the Site"/> + <ul id="results"></ul> + </div> +</div> + +<script src="{{ '/assets/js/jquery.camelhunter.min.js' | relative_url }}"></script> +<script type="text/javascript"> + $("#search-field").camelHunter({ + onKeyUp : true, + rss: "{{ '/sitemap_full.xml' | relative_url }}", + results : "#results" + }); +</script>
\ No newline at end of file |
