diff options
| author | Yehonal <yehonal.azeroth@gmail.com> | 2020-01-08 22:01:08 +0100 |
|---|---|---|
| committer | Yehonal <yehonal.azeroth@gmail.com> | 2020-01-08 22:01:08 +0100 |
| commit | b3079927197d733856f44409a80110a38cdfec33 (patch) | |
| tree | 3406b554ce9f4adf0e7e39126254f58535a3586f /_includes | |
| parent | a762bbadefc59a9a4c0ad5bb9541b0109d8fec3d (diff) | |
| download | wiki-b3079927197d733856f44409a80110a38cdfec33.tar.gz wiki-b3079927197d733856f44409a80110a38cdfec33.tar.bz2 wiki-b3079927197d733856f44409a80110a38cdfec33.zip | |
defining service automatically
based on metadata hostname
Diffstat (limited to '_includes')
| -rw-r--r-- | _includes/git-wiki/components/action_btn/page_actions.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/_includes/git-wiki/components/action_btn/page_actions.html b/_includes/git-wiki/components/action_btn/page_actions.html index b9151b4..78a4dac 100644 --- a/_includes/git-wiki/components/action_btn/page_actions.html +++ b/_includes/git-wiki/components/action_btn/page_actions.html @@ -8,7 +8,7 @@ <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/new/{{site.git_branch | escape}}?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 | escape}}/{{page.path | escape}}">Edit</a></span> - {% if site.service == "gitlab" %} + {% if site.hostname == "gitlab.com" %} <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/blob/{{site.git_branch | escape}}/{{page.path | escape}}">Delete</a></span> {% else %} <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/delete/{{site.git_branch | escape}}/{{page.path | escape}}">Delete</a></span> @@ -19,7 +19,7 @@ <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/new/{{site.git_branch | escape}}?filename=_posts/">Add new post</a></span> {% endif %} - {% if site.use_prose_io and site.service == "github" %} + {% if site.use_prose_io and site.hostname == "github.com" %} <br> Prose.io: <span class="tools-element"><a target="_blank" href="http://prose.io/#{{site.github.repository_nwo}}/new/{{site.git_branch | escape}}/{{ site.wiki_folder | default: 'wiki' }}">Add |
