From 8ded9b5d82cd58eb1ded21e8c70e5be21abd4cda Mon Sep 17 00:00:00 2001 From: Nico Burns Date: Wed, 19 Feb 2025 12:08:51 +1300 Subject: [PATCH] Visually mark --- _data/menu.json | 6 +++--- _includes/ext-link-marker.html | 1 + _includes/header.html | 24 ++++++++++++++++++------ 3 files changed, 22 insertions(+), 9 deletions(-) create mode 100644 _includes/ext-link-marker.html diff --git a/_data/menu.json b/_data/menu.json index 8f7241d4c..b0b07f86a 100644 --- a/_data/menu.json +++ b/_data/menu.json @@ -4,20 +4,20 @@ "url": "#", "subpages": [ { "title": "Contributing", "url": "/contributing/" }, - { "title": "Servo Book", "url": "https://book.servo.org" }, + { "title": "Servo Book", "url": "https://book.servo.org", "external": true }, { "title": "WPT pass rates", "url": "/wpt/" }, { "title": "Code of Conduct", "url": "/coc/" } ] }, { "title": "Download", "url": "/download/" }, { "title": "Blog", "url": "/blog/" }, - { "title": "Demos", "url": "https://demo.servo.org/" }, + { "title": "Demos", "url": "https://demo.servo.org/", "external": true }, { "title": "About", "url": "#", "subpages": [ { "title": "About Servo", "url": "/about/" }, - { "title": "Governance", "url": "https://github.com/servo/project/blob/main/governance/README.md" }, + { "title": "Governance", "url": "https://github.com/servo/project/blob/main/governance/README.md", "external": true }, { "title": "Sponsorship", "url": "/sponsorship/" }, { "title": "Acknowledgements", "url": "/acknowledgements/" } ] diff --git a/_includes/ext-link-marker.html b/_includes/ext-link-marker.html new file mode 100644 index 000000000..d1e0f6230 --- /dev/null +++ b/_includes/ext-link-marker.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/_includes/header.html b/_includes/header.html index a178d939f..1bcdfd617 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -25,20 +25,32 @@ {% endfor %} {% endcapture %} {% else %} - - {{ link.title }} + + {{ link.title }}{% if link.external %}{% include "ext-link-marker.html" %}{% endif %} {% endif %} {% endfor %}