Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pelican-theme-teckids
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Teckids
Team PR
pelican-theme-teckids
Compare revisions
66fd902c66a0913d42c6a6b8a3f0dd2625250959 to 54cd665a264e8b8e5d5a070f50fcdb43920b95be
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
Teckids/team-pr/pelican-theme-teckids
Select target project
No results found
54cd665a264e8b8e5d5a070f50fcdb43920b95be
Select Git revision
Branches
master
set-max-carousel-img-height
Swap
Target
Teckids/team-pr/pelican-theme-teckids
Select target project
No results found
66fd902c66a0913d42c6a6b8a3f0dd2625250959
Select Git revision
Branches
master
set-max-carousel-img-height
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
Fix border
· 203bf9ee
Tom Teichler
authored
5 years ago
Verified
203bf9ee
Add macros to allow nested menus
· 54cd665a
Tom Teichler
authored
5 years ago
Verified
54cd665a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
static/css/style.css
+1
-1
1 addition, 1 deletion
static/css/style.css
templates/base.html
+46
-6
46 additions, 6 deletions
templates/base.html
with
47 additions
and
7 deletions
static/css/style.css
View file @
54cd665a
...
@@ -6,7 +6,7 @@ a {
...
@@ -6,7 +6,7 @@ a {
color
:
#5e42ed
;
color
:
#5e42ed
;
}
}
nav
{
.
nav
bar
{
border-bottom
:
#2855e6
3px
solid
;
border-bottom
:
#2855e6
3px
solid
;
}
}
...
...
This diff is collapsed.
Click to expand it.
templates/base.html
View file @
54cd665a
{% macro genurl(string, force=False) %}
{% if (force or
( string.startswith('/') and not string.startswith('//') )) %}
{% set url = '/'.join([SITEURL.rstrip('/'),string.lstrip('/')]) %}
{{- url -}}
{% else %}
{{- string -}}
{% endif %}
{% endmacro %}
{% macro newtab(string, force=False) %}
{% if ( string.startswith('http://') or
string.startswith('https://')) %}
target="_blank"
{% endif %}
{% endmacro %}
<!DOCTYPE html>
<!DOCTYPE html>
<html
lang=
"{{ DEFAULT_LANG }}"
>
<html
lang=
"{{ DEFAULT_LANG }}"
>
...
@@ -31,12 +48,35 @@
...
@@ -31,12 +48,35 @@
</div>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<!-- Collect the nav links, forms, and other content for toggling -->
<div
class=
"collapse navbar-collapse"
id=
"navbar-main"
>
<div
class=
"collapse navbar-collapse"
id=
"navbar-collapse"
>
<ul
class=
"nav navbar-nav navbar-right"
>
<ul
class=
"nav navbar-nav navbar-right"
id=
"menuitem-list"
>
{% for name, link in LINKS %}
{% for title,url in MENUITEMS %}
<li>
{% if url is string %}
<a
href=
"{{ link }}"
>
{{ name }}
</a>
{% if title != 'Search' %}
</li>
<li
{%
if
url =
=
link
%}
class=
"active"
{%
endif
%}
>
<a
href=
"{{ genurl( url ) }}"
{{
newtab
(
url
)
}}
>
{{ title }}
</a>
</li>
{% endif %}
{% elif url is iterable %}
<li
class=
"btn-group
{%- for title,item_url in url -%}
{%- if item_url == link -%}
{{- ' active' -}}
{%- endif -%}
{%- endfor -%}
"
>
<a
href=
"#"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
>
{{- title }}
<b
class=
"caret"
></b>
</a>
<ul
class=
"dropdown-menu"
role=
"menu"
>
{% for title,item_url in url %}
<li
{%
if
item_url =
=
link
%}
class=
"active"
{%
endif
%}
>
<a
href=
"{{ genurl( item_url ) }}"
{{
newtab
(
item_url
)
}}
>
{{ title }}
</a>
</li>
{% endfor %}
</ul>
{% endif %}
{% endfor %}
{% endfor %}
</ul>
</ul>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.