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
Commits
8ba283d3
Verified
Commit
8ba283d3
authored
4 years ago
by
magicfelix
Browse files
Options
Downloads
Patches
Plain Diff
Add page_with_button (without carousel)
parent
101729ee
No related branches found
No related tags found
1 merge request
!1
Add page with button
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
templates/page_with_button.html
+78
-0
78 additions, 0 deletions
templates/page_with_button.html
templates/page_with_carousel_button.html
+1
-78
1 addition, 78 deletions
templates/page_with_carousel_button.html
with
79 additions
and
78 deletions
templates/page_with_button.html
0 → 100644
+
78
−
0
View file @
8ba283d3
{% extends 'base.html' %}
{% block content %}
<div
class=
"container title"
>
<div
class=
"row clearfix"
>
<div
class=
"column full"
>
{% import 'translations.html' as translations with context %}
{{ translations.translations_for(page) }}
</div>
</div>
</div>
<section
class=
'page_content'
>
<div
class=
'container'
>
<div
class=
'row clearfix'
>
<div
class=
'column full'
>
{% block data %}
{{ page.content }}
{% endblock data %}
</div>
</div>
</div>
</section>
{% if page.modified and PAGES_DEBUG == true %}
<p>
<small>
Created: {{ page.locale_date }}
</small>
,
<small>
Last updated: {{ page.locale_modified }}
</small>
</p>
{% endif %}
{% if PAGES_DEBUG == true %}
<div
class=
'page_content debug'
>
<div>
<p>
Debug stuff. Ignore
</p>
<p>
url: {{ page.url }}
<br/>
slug: {{ page.slug }}
<br/>
{% if page.parent %}
page parent: {{ page.parent }}
<br/>
page parent url: {{ page.parent.url }}
<br/>
page parent title: {{ page.parent.title }}
{% endif %}
</p>
<p>
page parents
</p>
<ul>
<li>
page.parents.length: {{ page.parents|length }}
</li>
{% for parent in page.parents %}
<li>
url: {{ parent.url }} - title: {{ parent.title }}
<br/>
<a
href=
"/{{ parent.url }}"
>
{{ parent.title }}
</a></li>
{% endfor %}
</ul>
<p>
page children
</p>
<ul>
{% for child in page.children %}
<li>
url: {{ child.url }} - title: {{ child.title }}
<br/>
<a
href=
"/{{ child.url }}"
>
{{ child.title }}
</a></li>
{% endfor %}
</ul>
</div>
</div>
{% endif %}
{% endblock %}
{% block template_content_footer %}
<div
class=
"button-wrapper"
>
<button
type=
"button"
class=
"btn btn-default btn-lg"
>
{% set button = page.button.split('|') %}
<a
href=
"{{ button[0] }}"
>
{{ button[1] }}
</a>
</button>
</div>
{% endblock %}
This diff is collapsed.
Click to expand it.
templates/page_with_carousel_button.html
+
1
−
78
View file @
8ba283d3
{% extends '
base
.html' %}
{% extends '
page_with_button
.html' %}
{% block template_content_head %}
<div
id=
"myCarousel"
class=
"carousel slide"
data-ride=
"carousel"
>
...
...
@@ -25,80 +25,3 @@
</div>
{% endblock %}
{% block content %}
<div
class=
"container title"
>
<div
class=
"row clearfix"
>
<div
class=
"column full"
>
{% import 'translations.html' as translations with context %}
{{ translations.translations_for(page) }}
</div>
</div>
</div>
<section
class=
'page_content'
>
<div
class=
'container'
>
<div
class=
'row clearfix'
>
<div
class=
'column full'
>
{% block data %}
{{ page.content }}
{% endblock data %}
</div>
</div>
</div>
</section>
{% if page.modified and PAGES_DEBUG == true %}
<p>
<small>
Created: {{ page.locale_date }}
</small>
,
<small>
Last updated: {{ page.locale_modified }}
</small>
</p>
{% endif %}
{% if PAGES_DEBUG == true %}
<div
class=
'page_content debug'
>
<div>
<p>
Debug stuff. Ignore
</p>
<p>
url: {{ page.url }}
<br/>
slug: {{ page.slug }}
<br/>
{% if page.parent %}
page parent: {{ page.parent }}
<br/>
page parent url: {{ page.parent.url }}
<br/>
page parent title: {{ page.parent.title }}
{% endif %}
</p>
<p>
page parents
</p>
<ul>
<li>
page.parents.length: {{ page.parents|length }}
</li>
{% for parent in page.parents %}
<li>
url: {{ parent.url }} - title: {{ parent.title }}
<br/>
<a
href=
"/{{ parent.url }}"
>
{{ parent.title }}
</a></li>
{% endfor %}
</ul>
<p>
page children
</p>
<ul>
{% for child in page.children %}
<li>
url: {{ child.url }} - title: {{ child.title }}
<br/>
<a
href=
"/{{ child.url }}"
>
{{ child.title }}
</a></li>
{% endfor %}
</ul>
</div>
</div>
{% endif %}
{% endblock %}
{% block template_content_footer %}
<div
class=
"button-wrapper"
>
<button
type=
"button"
class=
"btn btn-default btn-lg"
>
{% set button = page.button.split('|') %}
<a
href=
"{{ button[0] }}"
>
{{ button[1] }}
</a>
</button>
</div>
{% endblock %}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment