Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M3P2 HTML Generator
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
12
Issues
12
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
M3P2
M3P2 HTML Generator
Commits
684ce3e9
Commit
684ce3e9
authored
Mar 22, 2019
by
Administrator
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve the topics page a little bit.
parent
dd874999
Pipeline
#48
passed with stage
in 44 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
3 deletions
+42
-3
topic-list-item.html.twig
...mes/textbook/templates/partials/topic-list-item.html.twig
+27
-0
textbook.html.twig
user/themes/textbook/templates/textbook.html.twig
+0
-2
topics.html.twig
user/themes/textbook/templates/topics.html.twig
+15
-1
No files found.
user/themes/textbook/templates/partials/topic-list-item.html.twig
0 → 100644
View file @
684ce3e9
<div
class=
"card"
>
{%
set
image
=
page.media.images
|
first
%}
{%
if
image
%}
<div
class=
"card-image"
>
<a
href=
"
{{
page.url
}}
"
>
{{
image.cropZoom
(
800
,
400
)
.
html
}}
</a>
</div>
{%
endif
%}
<div
class=
"card-header"
>
{#<div class="card-subtitle text-gray">#}
{#
{
% include 'partials/blog/date.html.twig' %}#}
{#</div>#}
<div
class=
"card-title"
>
{%
include
'partials/blog/title.html.twig'
with
{
title_level
:
'h5'
}
%}
</div>
</div>
<div
class=
"card-body"
>
{%
if
page.summary
!=
page.content
%}
{{
page.summary
|
raw
}}
{%
else
%}
{{
page.content
|
raw
}}
{%
endif
%}
</div>
<div
class=
"card-footer"
>
{%
include
'partials/blog/taxonomy.html.twig'
%}
</div>
</div>
user/themes/textbook/templates/textbook.html.twig
View file @
684ce3e9
{%
extends
'partials/base.html.twig'
%}
{%
extends
'partials/base.html.twig'
%}
{%
block
content
%}
{%
block
content
%}
{{
page.content
|
raw
}}
{{
page.content
|
raw
}}
{%
include
'partials/contributions-incentive.html.twig'
%}
{%
include
'partials/contributions-incentive.html.twig'
%}
{%
endblock
%}
{%
endblock
%}
user/themes/textbook/templates/topics.html.twig
View file @
684ce3e9
{%
extends
'
blog
.html.twig'
%}
{%
extends
'
partials/base
.html.twig'
%}
{%
block
stylesheets
%}
{%
do
assets.addCss
(
'theme://css/bricklayer.css'
)
%}
{{
parent
()
}}
{%
endblock
%}
{%
block
content
%}
{{
page.content
|
raw
}}
<section
class=
"bricklayer topics"
>
{%
for
topic
in
page.collection
()
%}
{%
include
'partials/topic-list-item.html.twig'
with
{
parent
:
page
,
page
:
topic
}
%}
{%
endfor
%}
</section>
{%
endblock
%}
\ No newline at end of file
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