Skip to content

Commit

Permalink
feat: hide UIO table of contents on article pages
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueSlug committed Apr 18, 2022
1 parent 4e19cec commit 9f2ca68
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions src/assets/styles/vendors/uio.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
// UIO styles

// removes gradient and applies border to banner for UIO contrast themes
[class*=fl-theme]:not(.fl-theme-prefsEditor-default) .banner {
background-image: none;
border: 1px solid var(--fl-fgColor);
}

// hides the Table of Contents on Article pages
.topic .flc-toc-tocContainer {
display: none !important;
}
1 change: 0 additions & 1 deletion src/collections/approaches/approaches.11tydata.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const generatePermalink = require("../../utils/generatePermalink.js");
const getLang = require("../../utils/getLang.js");

module.exports = {
layout: "layouts/topic-page",
eleventyComputed: {
/* Determine the language of this item based on the language code in the file path. */
lang: data => getLang(data.page.filePathStem, "approaches"),
Expand Down
4 changes: 4 additions & 0 deletions src/collections/collections.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"bodyClass": "topic",
"layout": "layouts/topic-page"
}
1 change: 0 additions & 1 deletion src/collections/perspectives/perspectives.11tydata.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const generatePermalink = require("../../utils/generatePermalink.js");
const getLang = require("../../utils/getLang.js");

module.exports = {
layout: "layouts/topic-page",
eleventyComputed: {
/* Determine the language of this item based on the language code in the file path. */
lang: data => getLang(data.page.filePathStem, "perspectives"),
Expand Down
1 change: 0 additions & 1 deletion src/collections/techniques/techniques.11tydata.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const generatePermalink = require("../../utils/generatePermalink.js");
const getLang = require("../../utils/getLang.js");

module.exports = {
layout: "layouts/topic-page",
eleventyComputed: {
/* Determine the language of this item based on the language code in the file path. */
lang: data => getLang(data.page.filePathStem, "techniques"),
Expand Down

0 comments on commit 9f2ca68

Please sign in to comment.