From 4e1a3540b9e9bcf8c95e2d61e674c7b9711dd99a Mon Sep 17 00:00:00 2001 From: Yehonal Date: Mon, 17 Dec 2018 19:19:20 +0100 Subject: v2.1.0 with blog feature implemented --- .../git-wiki/components/action_btn/downloads.html | 5 ++++ .../components/action_btn/page_actions.html | 23 +++++++++++++++ .../git-wiki/components/copyrights/copyrights.html | 9 ++++++ _includes/git-wiki/components/lists/page-list.html | 26 +++++++++++++++++ _includes/git-wiki/components/lists/post-list.html | 26 +++++++++++++++++ _includes/git-wiki/components/logo/logo.html | 4 +++ _includes/git-wiki/components/search/index.html | 7 +++++ .../git-wiki/components/search/se_github.html | 10 +++++++ .../git-wiki/components/search/se_google.html | 12 ++++++++ _includes/git-wiki/components/search/se_js.html | 15 ++++++++++ _includes/git-wiki/defines/defines.html | 5 ++++ _includes/git-wiki/sections/content/body.html | 5 ++++ _includes/git-wiki/sections/content/content.html | 25 ++++++++++++++++ _includes/git-wiki/sections/content/wrapper.html | 5 ++++ _includes/git-wiki/sections/footer/footer.html | 11 +++++++ _includes/git-wiki/sections/head/head.html | 13 +++++++++ _includes/git-wiki/sections/head/meta.html | 13 +++++++++ _includes/git-wiki/sections/head/scripts.html | 15 ++++++++++ _includes/git-wiki/sections/head/styles.html | 9 ++++++ _includes/git-wiki/sections/header/header.html | 29 ++++++++++++++++++ _includes/git-wiki/sections/tail/tail.html | 34 ++++++++++++++++++++++ _includes/git-wiki/sections/tools/tools.html | 13 +++++++++ 22 files changed, 314 insertions(+) create mode 100644 _includes/git-wiki/components/action_btn/downloads.html create mode 100644 _includes/git-wiki/components/action_btn/page_actions.html create mode 100644 _includes/git-wiki/components/copyrights/copyrights.html create mode 100644 _includes/git-wiki/components/lists/page-list.html create mode 100644 _includes/git-wiki/components/lists/post-list.html create mode 100644 _includes/git-wiki/components/logo/logo.html create mode 100644 _includes/git-wiki/components/search/index.html create mode 100644 _includes/git-wiki/components/search/se_github.html create mode 100644 _includes/git-wiki/components/search/se_google.html create mode 100644 _includes/git-wiki/components/search/se_js.html create mode 100644 _includes/git-wiki/defines/defines.html create mode 100644 _includes/git-wiki/sections/content/body.html create mode 100644 _includes/git-wiki/sections/content/content.html create mode 100644 _includes/git-wiki/sections/content/wrapper.html create mode 100644 _includes/git-wiki/sections/footer/footer.html create mode 100644 _includes/git-wiki/sections/head/head.html create mode 100644 _includes/git-wiki/sections/head/meta.html create mode 100644 _includes/git-wiki/sections/head/scripts.html create mode 100644 _includes/git-wiki/sections/head/styles.html create mode 100644 _includes/git-wiki/sections/header/header.html create mode 100644 _includes/git-wiki/sections/tail/tail.html create mode 100644 _includes/git-wiki/sections/tools/tools.html (limited to '_includes/git-wiki') 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 @@ + \ 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 %} +Add new +Edit +History +Source +{% else %} +Add new +Edit +History +Source +{% if site.blog_feature %} +Add new post +{% endif %} + {% if site.use_prose_io %} +
+ Prose.io: + Add new + Edit + {% if site.blog_feature %} + Add new post + {% 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 %} +

This project is maintained by {{ site.github.owner_name }}

+{% endif %} +

Hosted on GitHub Pages — Powered by Git-Wiki v{{ + version }}

+ +{% if site.github.is_project_page %} +

View the Project on GitHub {{ github_name }}

+{% 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 %} + +Pages {% if (site.show_wiki_pages_limit >= 1 %} (Latest {{site.show_wiki_pages_limit }} updated) {% endif %}: + + +{% 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 %} + +Posts {% if (site.show_wiki_post_limit >= 1 %} (Latest {{site.show_wiki_post_limit }} updated) {% endif %}: + + +{% 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 @@ + +

{{ site.title | default: site.github.repository_name }}

+
+

{{ site.description | default: site.github.project_tagline }}

\ 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 @@ +
+ + {% if site.use_github_wiki %} + + {% else %} + + + {% endif %} + +
\ 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 @@ + + \ 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 @@ +
+ +
+ + + \ No newline at end of file diff --git a/_includes/git-wiki/defines/defines.html b/_includes/git-wiki/defines/defines.html new file mode 100644 index 0000000..43aea6d --- /dev/null +++ b/_includes/git-wiki/defines/defines.html @@ -0,0 +1,5 @@ +{% assign version = "2.0.3" %} +{% capture lchar %}{{page.url | slice: -1, 1}}{% endcapture %} +{% capture url %} +{% if lchar == "/" %}{{page.url}}index.html{% else %}{{ page.url | default: 'index.html' }}{% endif%} +{% endcapture %} diff --git a/_includes/git-wiki/sections/content/body.html b/_includes/git-wiki/sections/content/body.html new file mode 100644 index 0000000..419eeaf --- /dev/null +++ b/_includes/git-wiki/sections/content/body.html @@ -0,0 +1,5 @@ + + {% include git-wiki/sections/content/wrapper.html %} + + {% include git-wiki/sections/tail/tail.html %} + \ No newline at end of file diff --git a/_includes/git-wiki/sections/content/content.html b/_includes/git-wiki/sections/content/content.html new file mode 100644 index 0000000..b86a729 --- /dev/null +++ b/_includes/git-wiki/sections/content/content.html @@ -0,0 +1,25 @@ +
+ {% include git-wiki/sections/tools/tools.html %} + + {% if site.inc_before_toc %} + {% include {{ site.inc_before_toc }} %} + {% endif %} + +
+ + {% if site.inc_after_toc %} + {% include {{ site.inc_after_toc }} %} + {% endif %} + + {% if site.inc_before_content %} + {% include {{ site.inc_before_content }} %} + {% endif %} + +
+ {{ content }} +
+ + {% if site.inc_after_content %} + {% include {{ site.inc_after_content }} %} + {% endif %} +
\ No newline at end of file diff --git a/_includes/git-wiki/sections/content/wrapper.html b/_includes/git-wiki/sections/content/wrapper.html new file mode 100644 index 0000000..eab823f --- /dev/null +++ b/_includes/git-wiki/sections/content/wrapper.html @@ -0,0 +1,5 @@ +
+ {% include git-wiki/sections/header/header.html %} + {% include git-wiki/sections/content/content.html %} + {% include git-wiki/sections/footer/footer.html %} +
\ No newline at end of file diff --git a/_includes/git-wiki/sections/footer/footer.html b/_includes/git-wiki/sections/footer/footer.html new file mode 100644 index 0000000..f49703b --- /dev/null +++ b/_includes/git-wiki/sections/footer/footer.html @@ -0,0 +1,11 @@ +
+ {% if site.inc_before_footer %} + {% include {{ site.inc_before_footer }} %} + {% endif %} + + {% include git-wiki/components/copyrights/copyrights.html %} + + {% if site.inc_after_footer %} + {% include {{ site.inc_after_footer }} %} + {% endif %} +
\ No newline at end of file diff --git a/_includes/git-wiki/sections/head/head.html b/_includes/git-wiki/sections/head/head.html new file mode 100644 index 0000000..dab9a86 --- /dev/null +++ b/_includes/git-wiki/sections/head/head.html @@ -0,0 +1,13 @@ + + {% if site.inc_before_head %} + {% include {{ site.inc_before_head }} %} + {% endif %} + + {% include git-wiki/sections/head/meta.html %} + {% include git-wiki/sections/head/scripts.html %} + {% include git-wiki/sections/head/styles.html %} + + {% if site.inc_after_head %} + {% include {{ site.inc_after_head }} %} + {% endif %} + \ No newline at end of file diff --git a/_includes/git-wiki/sections/head/meta.html b/_includes/git-wiki/sections/head/meta.html new file mode 100644 index 0000000..bfae3da --- /dev/null +++ b/_includes/git-wiki/sections/head/meta.html @@ -0,0 +1,13 @@ +{% if site.inc_before_meta %} +{% include {{ site.inc_before_meta }} %} +{% endif %} + + + + + +{% seo %} + +{% if site.inc_after_meta %} +{% include {{ site.inc_after_meta }} %} +{% endif %} \ No newline at end of file diff --git a/_includes/git-wiki/sections/head/scripts.html b/_includes/git-wiki/sections/head/scripts.html new file mode 100644 index 0000000..65ee4ff --- /dev/null +++ b/_includes/git-wiki/sections/head/scripts.html @@ -0,0 +1,15 @@ +{% if site.inc_before_scripts %} +{% include {{ site.inc_before_scripts }} %} +{% endif %} + + + + + + +{% if site.inc_after_scripts %} +{% include {{ site.inc_after_scripts }} %} +{% endif %} \ No newline at end of file diff --git a/_includes/git-wiki/sections/head/styles.html b/_includes/git-wiki/sections/head/styles.html new file mode 100644 index 0000000..3bb7ecc --- /dev/null +++ b/_includes/git-wiki/sections/head/styles.html @@ -0,0 +1,9 @@ +{% if site.inc_before_styles %} +{% include {{ site.inc_before_styles }} %} +{% endif %} + + + +{% if site.inc_after_styles %} +{% include {{ site.inc_after_styles }} %} +{% endif %} \ No newline at end of file diff --git a/_includes/git-wiki/sections/header/header.html b/_includes/git-wiki/sections/header/header.html new file mode 100644 index 0000000..34f21dd --- /dev/null +++ b/_includes/git-wiki/sections/header/header.html @@ -0,0 +1,29 @@ +
+ {% if site.inc_before_header %} + {% include {{ site.inc_before_header }} %} + {% endif %} + + {% if site.logo_url %} + {% include git-wiki/components/logo/logo.html %} + {% endif %} + + {% if site.github.is_user_page %} +

View My GitHub Profile

+ {% endif %} + + {% if site.show_downloads %} + {% include git-wiki/components/action_btn/downloads.html %} + {% endif %} + + {% if site.show_wiki_pages %} + {% include git-wiki/components/lists/page-list.html %} + {% endif %} + + {% if site.blog_feature and site.show_wiki_posts %} + {% include git-wiki/components/lists/post-list.html %} + {% endif %} + + {% if site.inc_after_header %} + {% include {{ site.inc_after_header }} %} + {% endif %} +
diff --git a/_includes/git-wiki/sections/tail/tail.html b/_includes/git-wiki/sections/tail/tail.html new file mode 100644 index 0000000..e86191c --- /dev/null +++ b/_includes/git-wiki/sections/tail/tail.html @@ -0,0 +1,34 @@ +{% if site.inc_before_tail %} +{% include {{ site.inc_before_tail }} %} +{% endif %} + + + +{% if site.google_analytics %} + +{% endif %} + + + +{% if site.inc_after_tail %} +{% include {{ site.inc_after_tail }} %} +{% endif %} \ No newline at end of file diff --git a/_includes/git-wiki/sections/tools/tools.html b/_includes/git-wiki/sections/tools/tools.html new file mode 100644 index 0000000..0b2770e --- /dev/null +++ b/_includes/git-wiki/sections/tools/tools.html @@ -0,0 +1,13 @@ +
+ {% if site.inc_before_tools %} + {% include {{ site.inc_before_tools }} %} + {% endif %} + + {% include git-wiki/components/action_btn/page_actions.html %} + + {% include git-wiki/components/search/index.html %} + + {% if site.inc_after_tools %} + {% include {{ site.inc_after_tools }} %} + {% endif %} +
\ No newline at end of file -- cgit