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
96066245
Commit
96066245
authored
Mar 28, 2019
by
Administrator
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up.
parent
ff2de0e8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
56 deletions
+8
-56
README.md
user/plugins/m3-p2/pages/README.md
+3
-1
language-columns.html.twig
user/themes/textbook/templates/language-columns.html.twig
+0
-52
polyglot-columns.html.twig
user/themes/textbook/templates/polyglot-columns.html.twig
+5
-3
No files found.
user/plugins/m3-p2/pages/README.md
View file @
96066245
> Looks like useless empty files in here!
We use them, though! See
`m3-p2.php`
.
\ No newline at end of file
We do use them, though! See
`m3-p2.php`
.
They're a convenient way of leveraging Grav's page system
to make our custom pages.
\ No newline at end of file
user/themes/textbook/templates/language-columns.html.twig
deleted
100644 → 0
View file @
ff2de0e8
{# DEPRECATED -- see polyglot-columns #}
{%
extends
'partials/base.html.twig'
%}
{%
block
stylesheets
%}
{%
do
assets.addCss
(
'theme://css/columns.css'
)
%}
{{
parent
()
}}
{%
endblock
%}
{%
block
javascripts
%}
{%
do
assets.addJs
(
'theme://js/syncscroll.js'
,
{
group
:
'bottom'
}
)
%}
{{
parent
()
}}
{%
endblock
%}
{%
block
body
%}
<div
class=
"claude-columns"
>
{%
for
column
in
page
|
translations
%}
{#
{
% for column in language_selector.translated_pages %}#}
<section
id=
"
{{
macro.pageLinkName
(
column.menu
)
}}
"
class=
"claude-column syncscroll"
name=
"language"
>
{{
column.content
|
raw
}}
{#
{
% include 'partials/contributions-incentive.html.twig' with
{
page: column} %}#}
</section>
{%
endfor
%}
</div>
{#
{{
page.content|raw }}#}
{%
endblock
%}
user/themes/textbook/templates/polyglot-columns.html.twig
View file @
96066245
{%
extends
'partials/base.html.twig'
%}
{# `page` is irrelevant here #}
{# use `target_page`, injected by m3-p2 plugin #}
{%
block
stylesheets
%}
{%
do
assets.addCss
(
'theme://css/columns.css'
)
%}
{{
parent
()
}}
{%
endblock
%}
{%
block
javascripts
%}
{%
do
assets.addJs
(
'theme://js/syncscroll.js'
,
{
group
:
'bottom'
}
)
%}
{{
parent
()
}}
...
...
@@ -15,18 +18,17 @@
{%
block
body
%}
<div
class=
"claude-columns"
>
{%
for
column
in
target_page
|
translations
%}
<section
id=
"
{{
macro.pageLinkName
(
column.menu
)
}}
"
class=
"claude-column syncscroll"
name=
"language"
>
<section
id=
"
{{
column.slug
}}
"
class=
"claude-column syncscroll"
name=
"language"
>
{{
column.content
|
raw
}}
{#
{
% include 'partials/contributions-incentive.html.twig' with
{
page: column} %}#}
</section>
{%
endfor
%}
</div>
{%
endblock
%}
{# Disable the language selector. #}
{%
block
header_language_selection
%}{%
endblock
%}
{# … disabling the whole section instead is semantically correct but it offsets the navigation. TBD #}
...
...
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