Skip to content

Commit

Permalink
Merge pull request #1 from coltborg/try-11ty
Browse files Browse the repository at this point in the history
Try 11ty
  • Loading branch information
cy-by authored May 23, 2024
2 parents ea12bfb + 34a7e1a commit f30734a
Show file tree
Hide file tree
Showing 10 changed files with 2,505 additions and 30 deletions.
8 changes: 8 additions & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = function (eleventyConfig) {
// Pass static files
eleventyConfig.addPassthroughCopy("style.css");

// Watch targets
eleventyConfig.addWatchTarget("./style.css");
}

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules/
README.md
_drafts/
_site/
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"editor.fontSize": 14,
"editor.fontFamily": "Menlo, Monaco, 'Courier New', monospace",
"workbench.colorTheme": "GitHub Dark",
"editor.renderWhitespace": "all",
"editor.minimap.enabled": false
}
27 changes: 27 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "install",
"group": "clean",
"problemMatcher": [],
"label": "npm: install",
"runOptions": {
"runOn": "folderOpen"
},
"detail": "install dependencies from package"
},
{
"label": "Run 11ty server",
"type": "shell",
"command": "npx @11ty/eleventy --serve",
"group": "build",
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": []
}
]
}
13 changes: 0 additions & 13 deletions blog/test/index.html

This file was deleted.

16 changes: 6 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="light dark">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="color-scheme" content="light dark" />
<title>Cyby.dev</title>
<link href="style.css" rel="stylesheet">
<link href="/style.css" rel="stylesheet" />
</head>
<body>
<header>
<h1>Cyby.dev</h1>
<p>A blog about tech and stuff.</p>
</header>
<main>
🚧 Under construction 🚧
<ul>
<li><a href="/blog/test">Blog post test</a></li>
</ul>
🚧 Under construction 🚧
</main>
</body>
</html>

Loading

0 comments on commit f30734a

Please sign in to comment.