Skip to content

Commit

Permalink
Merge pull request #219 from mortendk/moved-debug-to-theme
Browse files Browse the repository at this point in the history
moving debug to /theme/debug
  • Loading branch information
mortendk authored Nov 22, 2022
2 parents ccb4979 + 2143008 commit 1d06ce9
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 10 deletions.
8 changes: 5 additions & 3 deletions UPGRADE-GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ Both will be regenered when you `npm install` and `npm start`
## Overvrite
/eleventy.config.js
/netlify.toml
/src/debug
/src/system

## Config


/src/themes/grunn
/src/themes/nakinn
/src/themes/styleguide
/src/themes/debug

## Config
package.json

2 changes: 1 addition & 1 deletion eleventy.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ module.exports = function (eleventyConfig) {
// PassThrough
eleventyConfig.addPassthroughCopy("src/themes/" + theme + "/assets/");
eleventyConfig.addPassthroughCopy("src/service-workers.js");
eleventyConfig.addPassthroughCopy("src/debug/");
eleventyConfig.addPassthroughCopy("src/themes/debug/");

// global vars
eleventyConfig.addNunjucksGlobal("saga11version", saga11version);
Expand Down
4 changes: 2 additions & 2 deletions src/content/_data/site.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"humantxt": "/* TEAM */\n\n/* THANKS */\n\n/* SITE */\nStandards: HTML5, CSS3\nBuild on: 11ty with magic \n\n/* Software + Assets */\nvscode: https://code.visualstudio.com\nresponsively: https://responsively.app\n\nhttps://saga11.dev\nhttps://11ty.dev\nhttps://tailwindcss.com\n\nIcons\nhttps://heroicons.com/\n",
"color": "#e413d1",
"color": "#35034c",
"keywords": "11ty",
"header": "",
"faviconcolor": "#000000",
"faviconcolor": "#ffffff",
"authoremail": "Ragnar@valhalla",
"mastodon_verification": "",
"rss": true,
Expand Down
2 changes: 1 addition & 1 deletion src/system/11ty/filter/debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = function (content, name) {
const debug = inspect(content);

return `
<link rel="stylesheet" href="/debug/jsonpath-picker.css">
<link rel="stylesheet" href="/themes/debug/jsonpath-picker.css">
<div class="debug11ty">
<h2>11ty 🎈 Debüg</h2>
Expand Down
4 changes: 2 additions & 2 deletions src/system/11ty/filter/debugPretty.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ module.exports = function (content, arg) {
const debug = inspect(content);

return `
<link rel="stylesheet" href="/debug/jsonpath-picker.css">
<script src="/debug/jsonpath-picker.min.js"></script>
<link rel="stylesheet" href="/themes/debug/jsonpath-picker.css">
<script src="/themes/debug/jsonpath-picker.min.js"></script>
<div class="debug11ty">
<h2>11ty 🎈 Debüg</h2>
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/themes/grunn/assets/css/style.min.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/themes/grunn/layouts/page/frontpage.njk
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ Specfic page to control the layout for the frontpage

<div class="prose prose-xl dark:prose-invert mt-4 md:mt-0 md:ml-4 p-4 bg-white rounded-md shadow-md dark:bg-slate-700">
{{ content | safe }}


</div>
</article>

Expand Down

0 comments on commit 1d06ce9

Please sign in to comment.