Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cmpt-363-173
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Paul Hibbitts
cmpt-363-173
Commits
430a9eba
Commit
430a9eba
authored
Feb 10, 2018
by
Paul Hibbitts
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Theme updates.
parent
03a4ed6d
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
59 additions
and
98 deletions
+59
-98
CHANGELOG.md
themes/course-hub-bootstrap/CHANGELOG.md
+14
-0
swipedeck.md
...otstrap/_demo/advanced/slide-decks/week-01-1/swipedeck.md
+8
-0
swipedeck.md
...otstrap/_demo/advanced/slide-decks/week-01-2/swipedeck.md
+8
-0
blueprints.yaml
themes/course-hub-bootstrap/blueprints.yaml
+1
-1
base.html.twig
...es/course-hub-bootstrap/templates/partials/base.html.twig
+3
-0
gitrepo_theme_link.html.twig
...bootstrap/templates/partials/gitrepo_theme_link.html.twig
+25
-1
base.html.twig
themes/mytheme/templates/partials/base.html.twig
+0
-96
No files found.
themes/course-hub-bootstrap/CHANGELOG.md
View file @
430a9eba
# v2.1.0
## 02/10/2018
1.
[](
#improved
)
*
Updated optional direct link to site theme files to support Git Sync setup
# v2.0.9
## 02/08/2018
1.
[](
#improved
)
*
Updated 'advanced' course example
1.
[](
#bugfix
)
*
Restored optional direct link to site theme files
# v2.0.8
## 02/08/2018
...
...
themes/course-hub-bootstrap/_demo/advanced/slide-decks/week-01-1/swipedeck.md
0 → 100644
View file @
430a9eba
---
title
:
'
Week
1
-
Course
Overview'
swipe_deck_title
:
'
Course
Overview'
swipe_deck_id
:
9967fp
swipe_deck_pdf_url
:
#
published
:
true
visible
:
false
---
themes/course-hub-bootstrap/_demo/advanced/slide-decks/week-01-2/swipedeck.md
0 → 100644
View file @
430a9eba
---
title
:
'
Week
1
-
Introduction
to
UX
Design'
swipe_deck_title
:
'
Introduction
to
UX
Design'
swipe_deck_id
:
9967fp
swipe_deck_pdf_url
:
published
:
true
visible
:
false
---
themes/course-hub-bootstrap/blueprints.yaml
View file @
430a9eba
name
:
Course Hub Bootstrap
version
:
2.
0.8
version
:
2.
1.0
description
:
"
A
customized
version
of
the
Bootstrap
theme
(built
with
Bootstrap
3)
for
use
with
the
Grav
Course
Hub
skeleton
package."
icon
:
university
author
:
...
...
themes/course-hub-bootstrap/templates/partials/base.html.twig
View file @
430a9eba
...
...
@@ -72,6 +72,9 @@
{%
if
(
page.header.git_sync_repo_link_display
is
defined
and
page.header.git_sync_repo_link_display
==
'footer'
)
or
((
config.site.gitrepo.editlinklocation
==
'footer'
and
page.header.git_sync_repo_link_display
is
not
defined
)
and
not
(
page.header.hide_git_sync_repo_link
))
%}
<p>
{%
include
'partials/gitrepo_link.html.twig'
%}
</p>
{%
endif
%}
{%
if
config.site.gitrepo.editthemelinklocation
==
'footer'
%}
<p>
{%
include
'partials/gitrepo_theme_link.html.twig'
%}
</p>
{%
endif
%}
<br>
{%
set
content
=
pages.find
(
'/footer'
)
.
content
%}
{%
if
content
%}
...
...
themes/course-hub-bootstrap/templates/partials/gitrepo_theme_link.html.twig
View file @
430a9eba
{# new twig template file - hibbittsdesign.org #}
{%
if
config.site.gitrepo.edittreeurl
%}
{%
set
gitrepothemeeditlinkurl
=
config.site.gitrepo.edittreeurl
~
'/themes/mytheme/'
%}
{%
set
git_repo_link_url
=
config.site.gitrepo.edittreeurl
%}
{%
if
config.site.gitrepo.editlinkicon
is
empty
%}
{%
if
'github'
in
git_repo_link_url
%}
{%
set
git_repo_link_icon
=
"github"
%}
{%
elseif
'gitlab'
in
git_repo_link_url
%}
{%
set
git_repo_link_icon
=
"gitlab"
%}
{%
elseif
'bitbucket'
in
git_repo_link_url
%}
{%
set
git_repo_link_icon
=
"bitbucket"
%}
{%
else
%}
{%
set
git_repo_link_icon
=
"git"
%}
{%
endif
%}
{%
else
%}
{%
set
git_repo_link_icon
=
config.site.gitrepo.editlinkicon
%}
{%
endif
%}
<a
class=
"newwindow external-link"
href=
"
{{
gitrepothemeeditlinkurl
}}
"
title=
"
{{
config.site.gitrepo.editthemelinktext
}}
"
>
<i
class=
"fa fa-
{{
git_repo_link_icon
}}
"
aria-hidden=
"true"
></i>
{{
config.site.gitrepo.editthemelinktext
}}
</a><br>
{%
else
%}
{%
set
git_sync_repo_link
=
config.plugins
[
'git-sync'
]
.
repository
%}
{%
if
config.plugins
[
'git-sync'
]
.
enabled
and
config.plugins
[
'git-sync'
]
.
repository
is
empty
%}
{%
set
admin_panel_appearance_url
=
grav.base_url
~
'/admin/plugins/git-sync'
%}
<a
class=
"newwindow external-link"
href=
"
{{
admin_panel_appearance_url
}}
"
title=
"Setup Git Sync"
>
<i
class=
"fa fa-cog"
aria-hidden=
"true"
></i>
Setup Git Sync
</a>
{%
else
%}
{%
set
git_sync_repo_link
=
config.plugins
[
'git-sync'
]
.
repository
%}
{%
if
'github'
in
git_sync_repo_link
%}
{%
set
git_repo_link_icon
=
"github"
%}
{%
set
gitrepothemeeditlinkurl
=
(
git_sync_repo_link
|
replace
(
{
'.git'
:
'/'
}
))
~
'blob/master/themes/mytheme/'
%}
...
...
@@ -22,4 +45,5 @@
<a
class=
"newwindow external-link"
href=
"
{{
gitrepothemeeditlinkurl
}}
"
title=
"
{{
config.site.gitrepo.editthemelinktext
}}
"
>
<i
class=
"fa fa-
{{
git_repo_link_icon
}}
"
aria-hidden=
"true"
></i>
{{
config.site.gitrepo.editthemelinktext
}}
</a><br>
{%
endif
%}
{%
endif
%}
themes/mytheme/templates/partials/base.html.twig
deleted
100644 → 0
View file @
03a4ed6d
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
{%
block
head
%}
<meta
charset=
"utf-8"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
/>
{%
include
'partials/metadata.html.twig'
%}
<title>
{%
if
header.title
%}{{
header.title
|
e
(
'html'
)
}}
|
{%
endif
%}{{
site.title
|
e
(
'html'
)
}}
</title>
<link
rel=
"icon"
type=
"image/png"
href=
"
{{
url
(
'theme://images/favicon.png'
,
true
)
}}
"
/>
{%
block
stylesheets
%}
{%
if
config.theme.bootstrapcss
==
'canvaslms'
%}
{%
do
assets.add
(
'theme://css/bootstrapcanvaslms.css'
,
96
)
%}
{%
else
%}
{%
do
assets.add
(
'theme://css/bootstrap.css'
,
96
)
%}
{%
endif
%}
{%
do
assets.add
(
'theme://css/font-awesome.min.css'
,
99
)
%}
{%
do
assets.add
(
'theme://css-compiled/theme.css'
,
97
)
%}
{%
do
assets.addCss
(
'theme://css/chbcustom.css'
,
99
)
%}
{%
do
assets.addCss
(
'theme://css/custom.css'
,
100
)
%}
{# added custom.css file pointer - hibbittsdesign.org #}
{%
endblock
%}
{{
assets.css
()
}}
{%
block
javascripts
%}
{%
do
assets.add
(
'jquery'
,
101
)
%}
{%
do
assets.add
(
'theme://js/modernizr.custom.71422.js'
,
100
)
%}
{%
do
assets.add
(
'theme://js/my.js'
,
99
)
%}
{# load custom JS - hibbittsdesign.org #}
{%
if
browser.getBrowser
==
'msie'
and
browser.getVersion
>=
8
and
browser.getVersion
<=
9
%}
{%
do
assets.add
(
'https://oss.maxcdn.com/respond/1.4.2/respond.min.js'
)
%}
{%
do
assets.add
(
'theme://js/html5shiv-printshiv.min.js'
)
%}
{%
endif
%}
{%
endblock
%}
{{
assets.js
()
}}
{%
endblock
head
%}
</head>
<body
id=
"top"
class=
"
{%
block
body_classes
%}{{
page.header.body_classes
}}{%
endblock
%}
"
>
{%
if
config.plugins.langswitcher.enabled
%}
{%
include
'partials/langswitcher.html.twig'
%}
{%
endif
%}
{# check content display flag - hibbittsdesign.org #}
{%
if
not
(
grav.uri.param
(
'chromeless'
))
and
(
not
config.site.chromeless.enabled
)
%}
{%
block
header_navigation
%}
{%
include
'partials/navigation.html.twig'
%}
{%
endblock
%}
{%
endif
%}
{%
block
content
%}{%
endblock
%}
{%
block
pagination
%}{%
endblock
%}
{# check content display flag - hibbittsdesign.org #}
{%
if
not
(
grav.uri.param
(
'chromeless'
))
and
(
not
config.site.chromeless.enabled
)
%}
<div
class=
"footer"
>
<div
class=
"container"
>
{# added top of page navigation element - hibbittsdesign.org #}
<div
class=
"up-arrow"
>
<a
href=
"#"
id=
"top"
title=
"Top of Page"
>
<i
class=
"fa fa-angle-up"
aria-hidden=
"true"
></i>
</a>
</div>
<div
class=
"text-muted"
>
{%
if
config.site.gitrepo.editlinklocation
==
'footer'
and
not
(
page.header.hide_git_sync_repo_link
)
%}
<p>
{%
include
'partials/gitrepo_link.html.twig'
%}
</p>
{%
endif
%}
{%
if
config.site.gitrepo.editthemelinklocation
==
'footer'
%}
<p>
{%
include
'partials/gitrepo_theme_link.html.twig'
%}
</p>
{%
endif
%}
<br>
{%
set
content
=
pages.find
(
'/footer'
)
.
content
%}
{%
if
content
%}
{{
content
}}
{%
endif
%}
{%
if
config.site.cc_license.enabled
%}
<p>
{%
include
'partials/creative_commons_license.html.twig'
%}
</p>
{%
endif
%}
</div>
</div>
</div>
{%
else
%}
<body
style=
"margin-bottom: 60px;"
>
{%
endif
%}
{%
block
bottom
%}{%
endblock
%}
{# added global scripts - hibbittsdesign.org #}
{%
include
'partials/scripts.html.twig'
%}
</body>
</html>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment