Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
luminy-org
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eloi Perdereau
luminy-org
Commits
88f7c9f5
Commit
88f7c9f5
authored
5 years ago
by
Eloi Perdereau
Browse files
Options
Downloads
Patches
Plain Diff
adapt better liquid and forestry settings
parent
ad0bee54
No related branches found
No related tags found
1 merge request
!5
Big fat update, mostly cms configuration
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
_includes/page__hero.html
+53
-45
53 additions, 45 deletions
_includes/page__hero.html
with
53 additions
and
45 deletions
_includes/page__hero.html
+
53
−
45
View file @
88f7c9f5
{% if page.header.fixed_image contains "://" %}
{% capture fixed_img_path %}{{ page.header.fixed_image}}{% endcapture %}
{% else %}
{% capture fixed_img_path %}{{ page.header.fixed_image | relative_url }}{% endcapture %}
{% endif %}
{% if page.header.cta_url contains "://" %}
{% if page.header.cta_url contains "://" %}
{% capture cta_path %}{{ page.header.cta_url }}{% endcapture %}
{% capture cta_path %}{{ page.header.cta_url }}{% endcapture %}
{% else %}
{% else %}
{% capture cta_path %}{{ page.header.cta_url | relative_url }}{% endcapture %}
{% capture cta_path %}{{ page.header.cta_url | relative_url }}{% endcapture %}
{% endif %}
{% endif %}
{% if page.header.fixed_image contains "://" %}
{% capture fixed_img_path %}{{ page.header.fixed_image}}{% endcapture %}
{% else %}
{% capture fixed_img_path %}{{ page.header.fixed_image | relative_url }}{% endcapture %}
{% endif %}
{% if page.header.overlay_image contains "://" %}
{% if page.header.overlay_image contains "://" %}
{% capture overlay_img_path %}{{ page.header.overlay_image }}{% endcapture %}
{% capture overlay_img_path %}{{ page.header.overlay_image }}{% endcapture %}
{% elsif page.overlay_image %}
{% elsif page.overlay_image %}
...
@@ -22,10 +22,10 @@
...
@@ -22,10 +22,10 @@
{% capture overlay_filter %}rgba(0, 0, 0, {{ page.header.overlay_filter }}){% endcapture %}
{% capture overlay_filter %}rgba(0, 0, 0, {{ page.header.overlay_filter }}){% endcapture %}
{% endif %}
{% endif %}
{% if page.header.type == '
fixed_image
' %}
{% if page.header.type == '
overlay
' %}
{% capture img_path %}{{
page.header.fixed_image
}}{% endcapture %}
{% capture img_path %}{{
overlay_img_path
}}{% endcapture %}
{% elsif page.header.type == '
overlay_
image' %}
{% elsif page.header.type == 'image' %}
{% capture img_path %}{{
page.header.overlay_image
}}{% endcapture %}
{% capture img_path %}{{
fixed_img_path
}}{% endcapture %}
{% endif %}
{% endif %}
{% if page.header.show_text == 'description' %}
{% if page.header.show_text == 'description' %}
...
@@ -42,41 +42,49 @@
...
@@ -42,41 +42,49 @@
{% assign image_description = image_description | markdownify | strip_html | strip_newlines | escape_once %}
{% assign image_description = image_description | markdownify | strip_html | strip_newlines | escape_once %}
<div
class=
"page__hero{% unless page.header.header_type == 'image-fixed' %}--overlay{% endunless %}"
<div
class=
"page__hero{% if page.header.type == 'overlay' %}--overlay{% endif %}"
style=
"{% if page.header.overlay_color %}background-color: {{ page.header.overlay_color | default: 'transparent' }};{% endif %} {% if page.header.type contains 'image' %}background-image: {% if overlay_filter %}linear-gradient({{ overlay_filter }}, {{ overlay_filter }}), {% endif %}url('{{ img_path }}');{% endif %}"
style=
"{% if page.header.type == 'overlay' %}{% if page.header.overlay_color
%}background-color: {{ page.header.overlay_color | default: 'transparent'
}};{% endif %} {% if page.header.overlay_image %}background-image: {% if
overlay_filter %}linear-gradient({{ overlay_filter }}, {{ overlay_filter }}),
{% endif %}url('{{ img_path }}');{% endif %}"
>
>
<div
class=
"wrapper"
>
{% if page.header.overlay_title %}
<div
class=
"wrapper"
>
<h1
id=
"page-title"
class=
"page__title"
itemprop=
"headline"
>
{% if page.header.overlay_title %}
{% if paginator and site.paginate_show_page_num %}
<h1
id=
"page-title"
class=
"page__title"
itemprop=
"headline"
>
{{ site.title }}{% unless paginator.page == 1 %} {{ site.data.ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}
{% if paginator and site.paginate_show_page_num %}
{% else %}
{{ site.title }}{% unless paginator.page == 1 %} {{ site.data.ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}
{{ page.title | default: site.title | markdownify | remove: "
<p>
" | remove: "
</p>
" }}
{% else %}
{% endif %}
{{ page.title | default: site.title | markdownify | remove: "
<p>
" | remove: "
</p>
" }}
</h1>
{% endif %}
{% endif %}
</h1>
{% if overlay_text %}
{% endif %}
<p
class=
"page__lead"
>
{{ overlay_text | markdownify | remove: "
<p>
" | remove: "
</p>
" }}
</p>
{% if overlay_text %}
{% endif %}
<p
class=
"page__lead"
>
{{ overlay_text | markdownify | remove: "
<p>
" | remove: "
</p>
" }}
</p>
{% if page.read_time %}
{% endif %}
<p
class=
"page__meta"
><i
class=
"far fa-clock"
aria-hidden=
"true"
></i>
{% include read-time.html %}
</p>
{% if page.read_time %}
{% endif %}
<p
class=
"page__meta"
><i
class=
"far fa-clock"
aria-hidden=
"true"
></i>
{% include read-time.html %}
</p>
{% if page.header.cta_url %}
{% endif %}
<p><a
href=
"{{ cta_path }}"
class=
"btn btn--light-outline btn--large"
>
{{ page.header.cta_label | default: site.data.ui-text[site.locale].more_label | default: "Learn More" }}
</a></p>
{% if page.header.cta_url %}
{% endif %}
<p><a
href=
"{{ cta_path }}"
class=
"btn btn--light-outline btn--large"
>
{{ page.header.cta_label | default: site.data.ui-text[site.locale].more_label | default: "Learn More" }}
</a></p>
{% if page.header.actions %}
{% endif %}
<p>
{% if page.header.actions %}
{% for action in page.header.actions %}
<p>
{% if action.url contains "://" %}
{% for action in page.header.actions %}
{% assign url = action.url %}
{% if action.url contains "://" %}
{% else %}
{% assign url = action.url %}
{% assign url = action.url | relative_url %}
{% else %}
{% endif %}
{% assign url = action.url | relative_url %}
<a
href=
"{{ url }}"
class=
"btn btn--light-outline btn--large"
>
{{ action.label | default: site.data.ui-text[site.locale].more_label | default: "Learn More" }}
</a>
{% endif %}
{% endfor %}
<a
href=
"{{ url }}"
class=
"btn btn--light-outline btn--large"
>
{{ action.label | default: site.data.ui-text[site.locale].more_label | default: "Learn More" }}
</a>
{% endif %}
{% endfor %}
</div>
{% endif %}
{% if page.header.caption %}
</div>
<span
class=
"page__hero-caption"
>
{{ page.header.caption | markdownify | remove: "
<p>
" | remove: "
</p>
" }}
</span>
{% if page.header.caption %}
<span
class=
"page__hero-caption"
>
{{ page.header.caption | markdownify | remove: "
<p>
" | remove: "
</p>
" }}
</span>
{% endif %}
{% elsif page.header.type == 'image' %}
<img
src=
"{{ img_path }}"
alt=
"{{ img_path }}"
class=
"page__hero-image"
>
{% endif %}
{% endif %}
</div>
</div>
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