diff --git a/_data/site.js b/_data/site.js index 0f52f3e47b..7c7028bef7 100644 --- a/_data/site.js +++ b/_data/site.js @@ -18,7 +18,7 @@ module.exports = { title: "ESLint - Pluggable JavaScript linter", description: "A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.", banner: { - text: "Donate to Code2040", + text: null, foregroundColor: "#ffffff", backgroundColor: "#150b29" }, diff --git a/_includes/ad.liquid b/_includes/ad.liquid new file mode 100644 index 0000000000..0d595b8a04 --- /dev/null +++ b/_includes/ad.liquid @@ -0,0 +1,9 @@ + +
+
+ +
+
diff --git a/_includes/head.liquid b/_includes/head.liquid index 1c043c229e..c90b3f2db4 100644 --- a/_includes/head.liquid +++ b/_includes/head.liquid @@ -33,4 +33,5 @@ + diff --git a/_includes/jumbotron.liquid b/_includes/jumbotron.liquid index 60b9f92e1b..03e95e7f37 100644 --- a/_includes/jumbotron.liquid +++ b/_includes/jumbotron.liquid @@ -1,5 +1,11 @@
+ +

ESLint

Find and fix problems in your JavaScript code

Get Started ยป diff --git a/_includes/text-ad.liquid b/_includes/text-ad.liquid new file mode 100644 index 0000000000..e8df71ffd6 --- /dev/null +++ b/_includes/text-ad.liquid @@ -0,0 +1,8 @@ + + diff --git a/_layouts/doc.liquid b/_layouts/doc.liquid index d548b3cd79..4885dd4e61 100644 --- a/_layouts/doc.liquid +++ b/_layouts/doc.liquid @@ -9,6 +9,13 @@ {% include menu %}
+ {% if ad == "text" %} + {% include text-ad %} + {% else %} + + {% endif %} {{ content | replace: '

Examples of incorrect code', '

Examples of incorrect code' | replace: '

Example of incorrect code', '

Example of incorrect code' diff --git a/_layouts/post.liquid b/_layouts/post.liquid index 39273163ac..48729bfb39 100644 --- a/_layouts/post.liquid +++ b/_layouts/post.liquid @@ -20,6 +20,7 @@