Skip to content

Commit

Permalink
basepath
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Oct 1, 2023
1 parent 197d3ca commit b9d7406
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions _config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import lume from "lume/mod.ts";
import eta from "lume/plugins/eta.ts";
import postcss from "lume/plugins/postcss.ts";
import basePath from "lume/plugins/base_path.ts";

const site = lume({
src: "./src",
Expand All @@ -13,6 +14,7 @@ site
.copy("js")
.use(eta())
.use(postcss())
.use(basePath())
.remoteFile(
"/vendor/jquery/jquery.js",
"https://code.jquery.com/jquery-3.5.1.min.js",
Expand Down
12 changes: 6 additions & 6 deletions src/_includes/layout.eta
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ https://oscarotero.com
<meta name="twitter:description" content="<%= description %>">
<meta name="twitter:image" content="/jquery.png">

<link rel="stylesheet" href="css/styles.css" type="text/css" media="screen">
<link rel="stylesheet" href="css/styles-print.css" type="text/css" media="print">
<script src="vendor/jquery/jquery.js"></script>
<script src="vendor/Magnific-Popup/jquery.magnific-popup.js"></script>
<script src="vendor/selectize/selectize.js"></script>
<script type="module" src="js/main.js"></script>
<link rel="stylesheet" href="/css/styles.css" type="text/css" media="screen">
<link rel="stylesheet" href="/css/styles-print.css" type="text/css" media="print">
<script src="/vendor/jquery/jquery.js"></script>
<script src="/vendor/Magnific-Popup/jquery.magnific-popup.js"></script>
<script src="/vendor/selectize/selectize.js"></script>
<script type="module" src="/js/main.js"></script>
<script>
if (document.childNodes[1].nodeType === 8) {
console.log(document.childNodes[1].nodeValue);
Expand Down

0 comments on commit b9d7406

Please sign in to comment.