Commit bbd960a3 authored by James Fenn's avatar James Fenn
Browse files

reorganize stuff

parent 551621a2
......@@ -13,9 +13,11 @@ module.exports = function(eleventyConfig) {
eleventyConfig.addLayoutAlias("page", "layouts/page.liquid");
eleventyConfig.addPassthroughCopy("favicon.ico");
eleventyConfig.addPassthroughCopy("assets");
eleventyConfig.addPassthroughCopy("resume.pdf");
eleventyConfig.addPassthroughCopy({"assets/images": "images"});
eleventyConfig.addPassthroughCopy({"assets/files": "files"});
eleventyConfig.addPassthroughCopy({"assets/css": "css"});
eleventyConfig.addPassthroughCopy({"assets/js": "js"});
const markdownItRenderer = new _markdown({ html: true })
.use(require('markdown-it-prism'), { plugins: ["autoloader"] })
......
......@@ -31,8 +31,9 @@ deploy: prune install assets/css/styles.css
${NPX} @11ty/eleventy
git add -f _site/
git commit -m 'deploy'
git subtree split --prefix _site -b main
git push -f deploy main:main
git subtree split --prefix _site -b temp
git push -f deploy temp:main
git branch -D temp
git reset HEAD~
prune:
......
......@@ -51,7 +51,7 @@
<link href="//fonts.googleapis.com/css?family=Crete+Round|Roboto|Montserrat" rel="stylesheet">
<link href="//fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="/assets/css/styles.css" rel="stylesheet">
<link href="/css/styles.css" rel="stylesheet">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="{{ head_title }}">
......
var ElementUtil = {};
ElementUtil.createElement = function(html) {
var fragment = document.createDocumentFragment();
var temp = document.createElement('div');
temp.innerHTML = html;
while (temp.firstChild) {
fragment.appendChild(temp.firstChild);
}
return fragment;
};
ElementUtil.clearElement = function(element) {
while (element.firstChild) {
element.removeChild(element.firstChild);
}
};
var StringUtil = {};
StringUtil.format = function(string, value) {
return string.replace(/\${}/g, value);
};
StringUtil.titleize = function(string) {
return string.split("_").join(" ")
.split("-").join(" ")
.replace(/([a-z])([A-Z])/g, "$1 $2")
.replace(/([A-Z])([A-Z][a-z])/g, "$1 $2");
};
var UrlUtil = {};
UrlUtil.stringToArguments = function(args) {
var array = args.split("&");
var args = {};
for (var i = 0; i < array.length; i++) {
if (array[i].indexOf("=") >= 0) {
var argArray = array[i].split("=");
args[argArray[0]] = argArray[1];
} else args[array[i]] = true;
}
return args;
};
UrlUtil.argumentsToString = function(args) {
var string = "";
for (var i in args) {
string += i + "=" + args[i] + "&";
}
return string.substring(0, string.length - 1);
};
UrlUtil.getCurrentArguments = function() {
if (window.location.search)
return UrlUtil.stringToArguments(window.location.search.replace("?", ""));
else return {};
};
---
permalink: /CNAME
eleventyExcludeFromCollections: true
---
{{ meta.domainurl.split('/') | last }}
\ No newline at end of file
......@@ -17,7 +17,7 @@ permalink: /
<p>
The main purpose of this site is to document my work in order to make it more accessible to the public. It
also serves as a basic portfolio - if you are interested in hiring me, you can find
<a href="/files/resume.pdf">my resume</a> here, along with a few ways to <a href="/contact/">contact me</a>.
<a href="/resume.pdf">my resume</a> here, along with a few ways to <a href="/contact/">contact me</a>.
</p>
{% assign links = "twitter fediverse github linkedin" | split: " " %}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment