This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/attic.git
The following commit(s) were added to refs/heads/main by this push:
new cf9d75d Move acevent to end of navigation
cf9d75d is described below
commit cf9d75d06c6e7776b97a2c9958a09baedcdb7b90
Author: Sebb <[email protected]>
AuthorDate: Tue May 6 11:29:13 2025 +0100
Move acevent to end of navigation
---
_config.yml | 4 ++++
.../{nav_footer_custom.html => components/breadcrumbs.html} | 13 +++++++------
_includes/footer_custom.html | 6 ------
_plugins/setup.rb | 9 +++++++++
4 files changed, 20 insertions(+), 12 deletions(-)
diff --git a/_config.yml b/_config.yml
index 2a53cd8..3cbb967 100644
--- a/_config.yml
+++ b/_config.yml
@@ -52,6 +52,10 @@ nav_external_links:
url: https://events.apache.org/
opens_in_new_tab: true
hide_icon: true
+ - title: ~
+ # Dummy entry for acevent
+ url: 'http://localhost/#acevent'
+ hide_icon: true
# For Callouts, see
https://just-the-docs.github.io/just-the-docs/docs/configuration/#callouts
callouts:
diff --git a/_includes/nav_footer_custom.html
b/_includes/components/breadcrumbs.html
similarity index 73%
rename from _includes/nav_footer_custom.html
rename to _includes/components/breadcrumbs.html
index 27bcb43..76cf7f7 100644
--- a/_includes/nav_footer_custom.html
+++ b/_includes/components/breadcrumbs.html
@@ -20,10 +20,11 @@ limitations under the License.
{%- else %}
{% assign path = page.path %}
{%- endif %}
-<nav aria-label="Main" id="site-nav-custom" class="site-nav">
-<ul class="nav-list">
- <li class="nav-list-item"><button class="btn"><a href="{{ site.repo
}}/edit/main/{{ path }}" id="edit-this-page">Improve this page</a></button></li>
- <li class="nav-list-item"> </li>
- <li class="nav-list-item"><a class="acevent" data-format="square">
</a></li>
-</ul>
+<nav aria-label="Breadcrumb" class="breadcrumb-nav float: right">
+<p align="right">
+ <ol class="breadcrumb-nav-list">
+ <li class="breadcrumb-nav-list-item"><a href="{{ site.repo
}}/tree/main/{{ path }}">View page source</a></li>
+ <li class="breadcrumb-nav-list-item"><a href="{{ site.repo
}}/edit/main/{{ path }}">Improve this page</a></li>
+ </ol>
+</p>
</nav>
diff --git a/_includes/footer_custom.html b/_includes/footer_custom.html
index 78e3b3a..6a41983 100644
--- a/_includes/footer_custom.html
+++ b/_includes/footer_custom.html
@@ -19,9 +19,3 @@ limitations under the License.
Licensed under the <a
href="https://www.apache.org/licenses/LICENSE-2.0">Apache License, Version
2.0</a>.
<br />Apache and the Apache feather logo are trademarks of The Apache Software
Foundation.</p>
-{% if page.layout == 'project-layout' or page.layout ==
'project-templates-layout' -%}
- {% capture path %}{{ page.layout | prepend: "_layouts/" | append:
".html"}}{% endcapture %}
-{% else -%}
- {% assign path = page.path %}
-{% endif -%}
-<div class="d-flex mt-2"> <p class="text-small text-grey-dk-000 mb-0"> <a
href="{{ site.repo }}/edit/main/{{ path }}" id="edit-this-page">Improve this
page</a> </p> </div>
diff --git a/_plugins/setup.rb b/_plugins/setup.rb
index f0e0446..aa72125 100644
--- a/_plugins/setup.rb
+++ b/_plugins/setup.rb
@@ -47,4 +47,13 @@ module Setup
end
end
end
+ # Massage page to insert acevent class
+ Jekyll::Hooks.register :pages, :post_render do |page|
+ if page.relative_path =~ %r{\.(md|html)$}
+ page.output.gsub!(
+ %r{<a href="http://localhost/#acevent" class="nav-list-link external"},
+ '<a class="nav-list-link acevent" data-format="square"'
+ )
+ end
+ end
end
\ No newline at end of file