Skip to content

Commit

Permalink
Merge pull request #283 from jlaundry/master
Browse files Browse the repository at this point in the history
Make quick filter explicit on each page
  • Loading branch information
adamfowlerit authored Sep 30, 2024
2 parents 3236bb1 + 669ec75 commit 90e226d
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 20 deletions.
1 change: 1 addition & 0 deletions 3rdparty.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: page
title: 3rd Party Portals
search: true
---

These portals are not Microsoft owned or controlled, but provide free and useful tools.
Expand Down
1 change: 1 addition & 0 deletions 404.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
layout: page
title: 404 - Page not found
permalink: /404
search: false
---

Sorry, we can't find that page that you're looking for. You can try again by going [back to the homepage]({{ site.baseurl }}/).
Expand Down
20 changes: 11 additions & 9 deletions _includes/quickfilter.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,17 @@
};
var scriptLoaded = loadScriptAsync();
scriptLoaded.then(function () {
document.querySelectorAll(window.location.hash).forEach(function (anchorLink) {
if (anchorLink.parentNode.hidden === false) {
anchorLink.scrollIntoView({
preventScroll: true,
behavior: "smooth",
block: "start",
});
}
});
if (window.location.hash != "") {
document.querySelectorAll(window.location.hash).forEach(function (anchorLink) {
if (anchorLink.parentNode.hidden === false) {
anchorLink.scrollIntoView({
preventScroll: true,
behavior: "smooth",
block: "start",
});
}
});
}
});
};
</script>
12 changes: 3 additions & 9 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,7 @@ <h2>{{ site.description | default: site.github.project_tagline }}</h2>
<a href="{{ site.github.repository_url }}" class="btn" target="_blank"></span>GitHub</a>
<a href="{{ site.baseurl }}/about" class="btn"></span>About</a>
</section>
{% if page.title contains "Portals" %}
{% include quickfilter.html %}
{% endif %}
{% if page.title contains "Training Links" %}
{% include quickfilter.html %}
{% endif %}
{% if page.title contains "Licensing Links" %}
{% if page.search %}
{% include quickfilter.html %}
{% endif %}
{% include tenantid.html %}
Expand All @@ -67,7 +61,7 @@ <h2>{{ site.description | default: site.github.project_tagline }}</h2>
<div class="container">
<section id="main_content">
{{ content }}
{% if page.title contains "Portals" %}
{% if page.search %}
{% include nomatches.html %}
{% endif %}
</section>
Expand All @@ -79,4 +73,4 @@ <h2>{{ site.description | default: site.github.project_tagline }}</h2>

</body>

</html>
</html>
1 change: 1 addition & 0 deletions about.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
layout: page
title: About
permalink: /about/
search: false
---

This site is not owned or endorsed by Microsoft in any way. If you have feedback or found a site we don't have listed, visit our [GitHub page](https://github.com/adamfowlerit/msportals.io) and let us know there.
Expand Down
1 change: 1 addition & 0 deletions favorites.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: page
title: Saved Links
search: false
---

<script type="text/javascript">
Expand Down
1 change: 1 addition & 0 deletions index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: page
title: Administrator Portals
search: true
---
Welcome to this community driven project to list all of Microsoft's portals in one place.

Expand Down
3 changes: 2 additions & 1 deletion licensing.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: page
title: Licensing Portals and Links
title: Licensing Links
search: true
---

This area is a work in progress! Please provide feeback through GitHub.
Expand Down
3 changes: 2 additions & 1 deletion training.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: page
title: Training Portals and Links
title: Training Links
search: true
---


Expand Down
1 change: 1 addition & 0 deletions userportals.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: page
title: User Portals
search: true
---

These Microsoft portals are for end users.
Expand Down
1 change: 1 addition & 0 deletions usgovt.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: page
title: Government Portals
search: true
---

GCC, GCC High and DoD links to Microsoft Portals
Expand Down

0 comments on commit 90e226d

Please sign in to comment.