Commit f3dcf45b authored by Paul Hibbitts's avatar Paul Hibbitts

Theme updates.

parent 55c90c1e
# v2.1.6
## 03/01/2018
1. [](#improved)
* Better aligned Git Sync Link Twig code with other Git Sync themes
# v2.1.5
## 02/27/2018
......
name: Course Hub Bootstrap
version: 2.1.5
version: 2.1.6
description: "A customized version of the Bootstrap theme (built with Bootstrap 3) for use with the Grav Course Hub skeleton package."
icon: university
author:
......
......@@ -52,22 +52,22 @@
{% else %}
{% set git_sync_repo = config.plugins['git-sync'].repository %}
{% set git_sync_repo_link = (git_sync_repo | replace({'.git': '/'})) %}
{% if 'github' in git_sync_repo_link %}
{% set git_repo_link_icon = "github" %}
{% set git_repo_edit_link_url = (git_sync_repo|replace({'.git':'/'})) ~ 'blob/master' ~ (page.filePathClean)|replace({'user/':'/'}) %}
{% elseif 'gitlab' in git_sync_repo_link %}
{% set git_repo_link_icon = "gitlab" %}
{% set git_repo_edit_link_url = (git_sync_repo|replace({'.git':'/'})) ~ 'blob/master' ~ (page.filePathClean)|replace({'user/':'/'}) %}
{% elseif 'bitbucket' in git_sync_repo_link %}
{% set git_repo_link_icon = "bitbucket" %}
{% set git_repo_edit_link_url = (git_sync_repo|replace({'.git':'/'})) ~ 'src/master' ~ (page.filePathClean)|replace({'user/':'/'}) %}
{% else %}
{% set git_repo_link_icon = "git" %}
{% set git_repo_edit_link_url = (git_sync_repo|replace({'.git':'/'})) ~ 'blob/master' ~ (page.filePathClean)|replace({'user/':'/'}) %}
{% endif %}
{% if config.site.gitrepo.editlinkicon is not empty %}
{% if 'github' in git_sync_repo_link %}
{% set git_repo_link_icon = "github" %}
{% set git_repo_edit_link_url = (git_sync_repo|replace({'.git':'/'})) ~ 'blob/master' ~ (page.filePathClean)|replace({'user/':'/'}) %}
{% elseif 'gitlab' in git_sync_repo_link %}
{% set git_repo_link_icon = "gitlab" %}
{% set git_repo_edit_link_url = (git_sync_repo|replace({'.git':'/'})) ~ 'blob/master' ~ (page.filePathClean)|replace({'user/':'/'}) %}
{% elseif 'bitbucket' in git_sync_repo_link %}
{% set git_repo_link_icon = "bitbucket" %}
{% set git_repo_edit_link_url = (git_sync_repo|replace({'.git':'/'})) ~ 'src/master' ~ (page.filePathClean)|replace({'user/':'/'}) %}
{% else %}
{% set git_repo_link_icon = "git" %}
{% set git_repo_edit_link_url = (git_sync_repo|replace({'.git':'/'})) ~ 'blob/master' ~ (page.filePathClean)|replace({'user/':'/'}) %}
{% endif %}
{% if config.site.gitrepo.editlinkicon is not empty %}
{% set git_repo_link_icon = config.site.gitrepo.editlinkicon %}
{% endif %}
{% endif %}
{% if config.site.gitrepo.typeofgitsyncrepolink == 'view' %}
{% if config.site.gitrepo.editlinktext is empty %}
{% set git_repo_link_text = 'View Content Repository' %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment