Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add keynote speaker slider #393

Merged
merged 12 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion _includes/components/menu_sub2.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,17 @@

{% assign current_page = page.rdf.render_path | relativize_url %}
{% assign menu = menuResource | rdf_container %}
{%- if menu.size <= 6 -%}
{%- assign fontSize = 100 -%}
{%- elsif menu.size == 7 -%}
{% assign fontSize = 90 -%}
{%- elsif menu.size == 8 -%}
{% assign fontSize = 80 -%}
{%- else -%}
{%- assign fontSize = 70 -%}
{%- endif -%}

<nav class="nav-sub2" aria-label="{{ str_sub2_menu }}">
<nav class="nav-sub2" aria-label="{{ str_sub2_menu }}" style="font-size:{{ fontSize }}%;">
<ul>
{% for entry in menu %}
{% assign label = nil %}
Expand Down
1 change: 1 addition & 0 deletions _layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<main class="page-main" aria-label="Inhalt" id="inhalt">
<div class="content-header">
{{ content }}
{% include_cached sections/keynotes.html %}
</div>
{% include_cached sections/impressions.html %}
</main>
Expand Down
Loading
Loading