From f96b54231a7302fd08f51b8e2f0ec8f6e2735580 Mon Sep 17 00:00:00 2001 From: Bradley Shellnut Date: Thu, 3 Jun 2021 14:55:45 -0700 Subject: [PATCH] The rest of the tutorial up to serving the site. --- .../assets/pages/__layout.svelte-b325a427.css | 0 build/_app/assets/start-8077b9bf.css | 1 + build/_app/chunks/goodbye-62de47d1.js | 1 + build/_app/chunks/hello-750c14bf.js | 1 + build/_app/chunks/preload-helper-9f12a5fd.js | 1 + build/_app/chunks/vendor-55eff8e9.js | 1 + build/_app/pages/__error.svelte-92c74c38.js | 1 + build/_app/pages/__layout.svelte-d83a74e6.js | 1 + build/_app/pages/about.svelte-38b2fb12.js | 1 + build/_app/pages/index.svelte-1cf09077.js | 1 + .../pages/posts/[slug].svelte-bf81e842.js | 1 + .../pages/posts/__layout.svelte-9b5e845d.js | 1 + .../_app/pages/posts/about.svelte-80837ddb.js | 1 + .../_app/pages/posts/index.svelte-2b52bcc1.js | 1 + build/_app/start-042b987c.js | 1 + build/about/index.html | 73 ++++++++++++++++ build/favicon.png | Bin 0 -> 1571 bytes build/index.html | 71 ++++++++++++++++ build/posts/about/index.html | 76 +++++++++++++++++ build/posts/goodbye/index.html | 76 +++++++++++++++++ build/posts/hello/index.html | 79 ++++++++++++++++++ build/posts/index.html | 77 +++++++++++++++++ package-lock.json | 55 +++++++----- package.json | 19 +++-- src/routes/__error.svelte | 20 +++++ src/routes/posts/[slug].svelte | 36 +++++--- src/routes/posts/__layout.svelte | 3 +- svelte.config.js | 4 +- 28 files changed, 559 insertions(+), 44 deletions(-) create mode 100644 build/_app/assets/pages/__layout.svelte-b325a427.css create mode 100644 build/_app/assets/start-8077b9bf.css create mode 100644 build/_app/chunks/goodbye-62de47d1.js create mode 100644 build/_app/chunks/hello-750c14bf.js create mode 100644 build/_app/chunks/preload-helper-9f12a5fd.js create mode 100644 build/_app/chunks/vendor-55eff8e9.js create mode 100644 build/_app/pages/__error.svelte-92c74c38.js create mode 100644 build/_app/pages/__layout.svelte-d83a74e6.js create mode 100644 build/_app/pages/about.svelte-38b2fb12.js create mode 100644 build/_app/pages/index.svelte-1cf09077.js create mode 100644 build/_app/pages/posts/[slug].svelte-bf81e842.js create mode 100644 build/_app/pages/posts/__layout.svelte-9b5e845d.js create mode 100644 build/_app/pages/posts/about.svelte-80837ddb.js create mode 100644 build/_app/pages/posts/index.svelte-2b52bcc1.js create mode 100644 build/_app/start-042b987c.js create mode 100644 build/about/index.html create mode 100644 build/favicon.png create mode 100644 build/index.html create mode 100644 build/posts/about/index.html create mode 100644 build/posts/goodbye/index.html create mode 100644 build/posts/hello/index.html create mode 100644 build/posts/index.html create mode 100644 src/routes/__error.svelte diff --git a/build/_app/assets/pages/__layout.svelte-b325a427.css b/build/_app/assets/pages/__layout.svelte-b325a427.css new file mode 100644 index 0000000..e69de29 diff --git a/build/_app/assets/start-8077b9bf.css b/build/_app/assets/start-8077b9bf.css new file mode 100644 index 0000000..66761c8 --- /dev/null +++ b/build/_app/assets/start-8077b9bf.css @@ -0,0 +1 @@ +#svelte-announcer.svelte-1j55zn5{position:absolute;left:0;top:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);overflow:hidden;white-space:nowrap;width:1px;height:1px} \ No newline at end of file diff --git a/build/_app/chunks/goodbye-62de47d1.js b/build/_app/chunks/goodbye-62de47d1.js new file mode 100644 index 0000000..37bd425 --- /dev/null +++ b/build/_app/chunks/goodbye-62de47d1.js @@ -0,0 +1 @@ +import{S as t,i as a,s,e,t as o,c as r,a as l,g as i,d,b as f,f as h,D as c,E as n}from"./vendor-55eff8e9.js";function u(t){let a,s,u;return{c(){a=e("h1"),s=e("a"),u=o(b),this.h()},l(t){a=r(t,"H1",{id:!0});var e=l(a);s=r(e,"A",{href:!0});var o=l(s);u=i(o,b),o.forEach(d),e.forEach(d),this.h()},h(){f(s,"href","#title"),f(a,"id","title")},m(t,e){h(t,a,e),c(a,s),c(s,u)},p:n,i:n,o:n,d(t){t&&d(a)}}}const g={title:"Goodbye",slug:"goodbye"},{title:b,slug:m}=g;var p=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:class extends t{constructor(t){super(),a(this,t,null,u,s,{})}},metadata:g});export{p as _}; diff --git a/build/_app/chunks/hello-750c14bf.js b/build/_app/chunks/hello-750c14bf.js new file mode 100644 index 0000000..37f11ec --- /dev/null +++ b/build/_app/chunks/hello-750c14bf.js @@ -0,0 +1 @@ +import{S as a,i as l,s as r,e as s,t as e,k as o,c as t,a as i,g as h,d as f,n as c,b as u,f as d,D as n,E as m}from"./vendor-55eff8e9.js";function p(a){let l,r,p,v,g,_,H,b,L,S,W,j,x;return{c(){l=s("h1"),r=s("a"),p=e(E),v=o(),g=s("p"),_=e("lorem ipsum"),H=o(),b=s("ul"),L=s("li"),S=e("Hello"),W=o(),j=s("li"),x=e("World"),this.h()},l(a){l=t(a,"H1",{id:!0});var s=i(l);r=t(s,"A",{href:!0});var e=i(r);p=h(e,E),e.forEach(f),s.forEach(f),v=c(a),g=t(a,"P",{});var o=i(g);_=h(o,"lorem ipsum"),o.forEach(f),H=c(a),b=t(a,"UL",{});var u=i(b);L=t(u,"LI",{});var d=i(L);S=h(d,"Hello"),d.forEach(f),W=c(u),j=t(u,"LI",{});var n=i(j);x=h(n,"World"),n.forEach(f),u.forEach(f),this.h()},h(){u(r,"href","#title"),u(l,"id","title")},m(a,s){d(a,l,s),n(l,r),n(r,p),d(a,v,s),d(a,g,s),n(g,_),d(a,H,s),d(a,b,s),n(b,L),n(L,S),n(b,W),n(b,j),n(j,x)},p:m,i:m,o:m,d(a){a&&f(l),a&&f(v),a&&f(g),a&&f(H),a&&f(b)}}}const v={title:"Hello World",slug:"hello"},{title:E,slug:g}=v;var _=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:class extends a{constructor(a){super(),l(this,a,null,p,r,{})}},metadata:v});export{_}; diff --git a/build/_app/chunks/preload-helper-9f12a5fd.js b/build/_app/chunks/preload-helper-9f12a5fd.js new file mode 100644 index 0000000..d3bef61 --- /dev/null +++ b/build/_app/chunks/preload-helper-9f12a5fd.js @@ -0,0 +1 @@ +let e;const r={},t=function(t,n){if(!n)return t();if(void 0===e){const r=document.createElement("link").relList;e=r&&r.supports&&r.supports("modulepreload")?"modulepreload":"preload"}return Promise.all(n.map((t=>{if(t in r)return;r[t]=!0;const n=t.endsWith(".css"),o=n?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${t}"]${o}`))return;const s=document.createElement("link");return s.rel=n?"stylesheet":e,n||(s.as="script",s.crossOrigin=""),s.href=t,document.head.appendChild(s),n?new Promise(((e,r)=>{s.addEventListener("load",e),s.addEventListener("error",r)})):void 0}))).then((()=>t()))};export{t as _}; diff --git a/build/_app/chunks/vendor-55eff8e9.js b/build/_app/chunks/vendor-55eff8e9.js new file mode 100644 index 0000000..596a4ba --- /dev/null +++ b/build/_app/chunks/vendor-55eff8e9.js @@ -0,0 +1 @@ +function t(){}function n(t,n){for(const e in n)t[e]=n[e];return t}function e(t){return t()}function o(){return Object.create(null)}function r(t){t.forEach(e)}function c(t){return"function"==typeof t}function u(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function s(t,n,e,o){if(t){const r=i(t,n,e,o);return t[0](r)}}function i(t,e,o,r){return t[1]&&r?n(o.ctx.slice(),t[1](r(e))):o.ctx}function f(t,n,e,o,r,c,u){const s=function(t,n,e,o){if(t[2]&&o){const r=t[2](o(e));if(void 0===n.dirty)return r;if("object"==typeof r){const t=[],e=Math.max(n.dirty.length,r.length);for(let o=0;o{P.delete(t),o&&(e&&t.d(1),o())})),t.o(n)}}function R(t,n){const e={},o={},r={$$scope:1};let c=t.length;for(;c--;){const u=t[c],s=n[c];if(s){for(const t in u)t in s||(o[t]=1);for(const t in s)r[t]||(e[t]=s[t],r[t]=1);t[c]=s}else for(const t in u)r[t]=1}for(const u in o)u in e||(e[u]=void 0);return e}function U(t){return"object"==typeof t&&null!==t?t:{}}function V(t){t&&t.c()}function W(t,n){t&&t.l(n)}function X(t,n,o,u){const{fragment:s,on_mount:i,on_destroy:f,after_update:a}=t.$$;s&&s.m(n,o),u||F((()=>{const n=i.map(e).filter(c);f?f.push(...n):r(n),t.$$.on_mount=[]})),a.forEach(F)}function Y(t,n){const e=t.$$;null!==e.fragment&&(r(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function Z(t,n){-1===t.$$.dirty[0]&&(S.push(t),B||(B=!0,z.then(G)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<{const r=o.length?o[0]:e;return l.ctx&&s(l.ctx[t],l.ctx[t]=r)&&(!l.skip_bound&&l.bound[t]&&l.bound[t](r),h&&Z(n,t)),e})):[],l.update(),h=!0,r(l.before_update),l.fragment=!!u&&u(l.ctx),e.target){if(e.hydrate){const t=y(e.target);l.fragment&&l.fragment.l(t),t.forEach(d)}else l.fragment&&l.fragment.c();e.intro&&L(n.$$.fragment),X(n,e.target,e.anchor,e.customElement),G()}E(a)}class nt{$destroy(){Y(this,1),this.$destroy=t}$on(t,n){const e=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return e.push(n),()=>{const t=e.indexOf(n);-1!==t&&e.splice(t,1)}}$set(t){var n;this.$$set&&(n=t,0!==Object.keys(n).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const et=[];function ot(n,e=t){let o;const r=[];function c(t){if(u(n,t)&&(n=t,o)){const t=!et.length;for(let e=0;e{const t=r.indexOf(i);-1!==t&&r.splice(t,1),0===r.length&&(o(),o=null)}}}}export{n as A,J as B,ot as C,a as D,t as E,s as F,f as G,h as H,nt as S,y as a,b,x as c,d,p as e,l as f,_ as g,k as h,tt as i,V as j,$ as k,m as l,W as m,w as n,X as o,R as p,U as q,Q as r,u as s,g as t,K as u,L as v,Y as w,O as x,N as y,A as z}; diff --git a/build/_app/pages/__error.svelte-92c74c38.js b/build/_app/pages/__error.svelte-92c74c38.js new file mode 100644 index 0000000..c8f6848 --- /dev/null +++ b/build/_app/pages/__error.svelte-92c74c38.js @@ -0,0 +1 @@ +import{S as s,i as r,s as a,e as t,t as e,k as o,c as n,a as u,g as c,d as f,n as E,f as h,D as i,h as p,E as H}from"../chunks/vendor-55eff8e9.js";function d(s){let r,a,d,l,m,v,N,P,g=s[1].message+"";return{c(){r=t("h1"),a=e("SOMETHING HAPPENED!"),d=o(),l=t("h3"),m=e(s[0]),v=o(),N=t("h3"),P=e(g)},l(t){r=n(t,"H1",{});var e=u(r);a=c(e,"SOMETHING HAPPENED!"),e.forEach(f),d=E(t),l=n(t,"H3",{});var o=u(l);m=c(o,s[0]),o.forEach(f),v=E(t),N=n(t,"H3",{});var h=u(N);P=c(h,g),h.forEach(f)},m(s,t){h(s,r,t),i(r,a),h(s,d,t),h(s,l,t),i(l,m),h(s,v,t),h(s,N,t),i(N,P)},p(s,[r]){1&r&&p(m,s[0]),2&r&&g!==(g=s[1].message+"")&&p(P,g)},i:H,o:H,d(s){s&&f(r),s&&f(d),s&&f(l),s&&f(v),s&&f(N)}}}function l({error:s,status:r}){return{props:{error:s,status:r}}}function m(s,r,a){let{status:t}=r,{error:e}=r;return s.$$set=s=>{"status"in s&&a(0,t=s.status),"error"in s&&a(1,e=s.error)},[t,e]}export default class extends s{constructor(s){super(),r(this,s,m,d,a,{status:0,error:1})}}export{l as load}; diff --git a/build/_app/pages/__layout.svelte-d83a74e6.js b/build/_app/pages/__layout.svelte-d83a74e6.js new file mode 100644 index 0000000..e0bb305 --- /dev/null +++ b/build/_app/pages/__layout.svelte-d83a74e6.js @@ -0,0 +1 @@ +import{S as s,i as a,s as r,e,t,k as o,c as n,a as c,g as h,d as l,n as f,b as u,f as $,D as i,E as m,F as p,j as E,m as d,o as v,G as g,v as A,r as b,w as H}from"../chunks/vendor-55eff8e9.js";function x(s){let a,r,p,E,d,v,g,A,b,H;return{c(){a=e("header"),r=e("h1"),p=t("Welcome"),E=o(),d=e("nav"),v=e("a"),g=t("Home"),A=o(),b=e("a"),H=t("About Us"),this.h()},l(s){a=n(s,"HEADER",{});var e=c(a);r=n(e,"H1",{});var t=c(r);p=h(t,"Welcome"),t.forEach(l),E=f(e),d=n(e,"NAV",{});var o=c(d);v=n(o,"A",{href:!0});var u=c(v);g=h(u,"Home"),u.forEach(l),A=f(o),b=n(o,"A",{href:!0});var $=c(b);H=h($,"About Us"),$.forEach(l),o.forEach(l),e.forEach(l),this.h()},h(){u(v,"href","/"),u(b,"href","/about")},m(s,e){$(s,a,e),i(a,r),i(r,p),i(a,E),i(a,d),i(d,v),i(v,g),i(d,A),i(d,b),i(b,H)},p:m,i:m,o:m,d(s){s&&l(a)}}}class j extends s{constructor(s){super(),a(this,s,null,x,r,{})}}function k(s){let a,r,m,x,k,w,y;a=new j({});const C=s[1].default,D=p(C,s,s[0],null);return{c(){E(a.$$.fragment),r=o(),m=e("main"),D&&D.c(),x=o(),k=e("footer"),w=t("Copyright 2021"),this.h()},l(s){d(a.$$.fragment,s),r=f(s),m=n(s,"MAIN",{class:!0});var e=c(m);D&&D.l(e),e.forEach(l),x=f(s),k=n(s,"FOOTER",{});var t=c(k);w=h(t,"Copyright 2021"),t.forEach(l),this.h()},h(){u(m,"class","bg-blue-400")},m(s,e){v(a,s,e),$(s,r,e),$(s,m,e),D&&D.m(m,null),$(s,x,e),$(s,k,e),i(k,w),y=!0},p(s,[a]){D&&D.p&&(!y||1&a)&&g(D,C,s,s[0],a,null,null)},i(s){y||(A(a.$$.fragment,s),A(D,s),y=!0)},o(s){b(a.$$.fragment,s),b(D,s),y=!1},d(s){H(a,s),s&&l(r),s&&l(m),D&&D.d(s),s&&l(x),s&&l(k)}}}function w(s,a,r){let{$$slots:e={},$$scope:t}=a;return s.$$set=s=>{"$$scope"in s&&r(0,t=s.$$scope)},[t,e]}export default class extends s{constructor(s){super(),a(this,s,w,k,r,{})}} diff --git a/build/_app/pages/about.svelte-38b2fb12.js b/build/_app/pages/about.svelte-38b2fb12.js new file mode 100644 index 0000000..7df497a --- /dev/null +++ b/build/_app/pages/about.svelte-38b2fb12.js @@ -0,0 +1 @@ +import{S as e,i as a,s as i,e as s,t,k as u,c as n,a as o,g as l,d as m,n as r,f as c,D as d,E as p}from"../chunks/vendor-55eff8e9.js";function f(e){let a,i,f,v,b;return{c(){a=s("h1"),i=t("About Us"),f=u(),v=s("p"),b=t("Lorem ipsum dolor sit amet consectetur adipisicing elit. Deleniti in natus, at laboriosam\n laudantium amet eum aliquid repellat minima exercitationem officiis quibusdam voluptates eaque\n assumenda vero consectetur repellendus, illum cum.")},l(e){a=n(e,"H1",{});var s=o(a);i=l(s,"About Us"),s.forEach(m),f=r(e),v=n(e,"P",{});var t=o(v);b=l(t,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Deleniti in natus, at laboriosam\n laudantium amet eum aliquid repellat minima exercitationem officiis quibusdam voluptates eaque\n assumenda vero consectetur repellendus, illum cum."),t.forEach(m)},m(e,s){c(e,a,s),d(a,i),c(e,f,s),c(e,v,s),d(v,b)},p:p,i:p,o:p,d(e){e&&m(a),e&&m(f),e&&m(v)}}}export default class extends e{constructor(e){super(),a(this,e,null,f,i,{})}} diff --git a/build/_app/pages/index.svelte-1cf09077.js b/build/_app/pages/index.svelte-1cf09077.js new file mode 100644 index 0000000..df24b39 --- /dev/null +++ b/build/_app/pages/index.svelte-1cf09077.js @@ -0,0 +1 @@ +import{S as e,i as a,s as t,e as s,t as o,k as r,c as h,a as i,g as l,d as c,n,b as v,f as d,D as f,E as u}from"../chunks/vendor-55eff8e9.js";function p(e){let a,t,p,m,k,E,H,x,y,L,U;return{c(){a=s("h1"),t=o("Welcome to Level Up"),p=r(),m=s("h2"),k=o("Hi y'all"),E=r(),H=s("p"),x=o("Visit "),y=s("a"),L=o("kit.svelte.dev"),U=o(" to read the documentation"),this.h()},l(e){a=h(e,"H1",{});var s=i(a);t=l(s,"Welcome to Level Up"),s.forEach(c),p=n(e),m=h(e,"H2",{});var o=i(m);k=l(o,"Hi y'all"),o.forEach(c),E=n(e),H=h(e,"P",{});var r=i(H);x=l(r,"Visit "),y=h(r,"A",{href:!0});var v=i(y);L=l(v,"kit.svelte.dev"),v.forEach(c),U=l(r," to read the documentation"),r.forEach(c),this.h()},h(){v(y,"href","https://kit.svelte.dev")},m(e,s){d(e,a,s),f(a,t),d(e,p,s),d(e,m,s),f(m,k),d(e,E,s),d(e,H,s),f(H,x),f(H,y),f(y,L),f(H,U)},p:u,i:u,o:u,d(e){e&&c(a),e&&c(p),e&&c(m),e&&c(E),e&&c(H)}}}export default class extends e{constructor(e){super(),a(this,e,null,p,t,{})}} diff --git a/build/_app/pages/posts/[slug].svelte-bf81e842.js b/build/_app/pages/posts/[slug].svelte-bf81e842.js new file mode 100644 index 0000000..08415ab --- /dev/null +++ b/build/_app/pages/posts/[slug].svelte-bf81e842.js @@ -0,0 +1 @@ +import{_ as t}from"../../chunks/preload-helper-9f12a5fd.js";import{S as r,i as s,s as e,j as n,m as o,o as a,E as u,v as c,r as f,w as i}from"../../chunks/vendor-55eff8e9.js";function m(t){let r,s;return r=new t[0]({}),{c(){n(r.$$.fragment)},l(t){o(r.$$.fragment,t)},m(t,e){a(r,t,e),s=!0},p:u,i(t){s||(c(r.$$.fragment,t),s=!0)},o(t){f(r.$$.fragment,t),s=!1},d(t){i(r,t)}}}async function p({page:r}){try{return{props:{Post:(await function(r){switch(r){case"../../posts/goodbye.md":return t((()=>import("../../chunks/goodbye-62de47d1.js").then((function(t){return t._}))),["/_app/chunks/goodbye-62de47d1.js","/_app/chunks/vendor-55eff8e9.js"]);case"../../posts/hello.md":return t((()=>import("../../chunks/hello-750c14bf.js").then((function(t){return t._}))),["/_app/chunks/hello-750c14bf.js","/_app/chunks/vendor-55eff8e9.js"]);default:return Promise.reject(new Error("Unknown variable dynamic import: "+r))}}(`../../posts/${r.params.slug}.md`)).default}}}catch(s){return{status:404,error:"Post not found"}}}function d(t,r,s){let{Post:e}=r;return t.$$set=t=>{"Post"in t&&s(0,e=t.Post)},[e]}export default class extends r{constructor(t){super(),s(this,t,d,m,e,{Post:0})}}export{p as load}; diff --git a/build/_app/pages/posts/__layout.svelte-9b5e845d.js b/build/_app/pages/posts/__layout.svelte-9b5e845d.js new file mode 100644 index 0000000..79a0c67 --- /dev/null +++ b/build/_app/pages/posts/__layout.svelte-9b5e845d.js @@ -0,0 +1 @@ +import{_ as s}from"../../chunks/goodbye-62de47d1.js";import{_ as t}from"../../chunks/hello-750c14bf.js";import{S as e,i as o,s as l,F as r,e as a,t as h,c as n,a as c,g as f,d as p,b as i,f as u,D as v,h as d,k as m,n as g,G as $,v as E,r as k,H as b}from"../../chunks/vendor-55eff8e9.js";function A(s,t,e){const o=s.slice();return o[3]=t[e],o}function I(s){let t,e,o,l,r=s[3].title+"";return{c(){t=a("li"),e=a("a"),o=h(r),this.h()},l(s){t=n(s,"LI",{});var l=c(t);e=n(l,"A",{"sveltekit:prefetch":!0,href:!0});var a=c(e);o=f(a,r),a.forEach(p),l.forEach(p),this.h()},h(){i(e,"sveltekit:prefetch",""),i(e,"href",l=`/posts/${s[3].slug}`)},m(s,l){u(s,t,l),v(t,e),v(e,o)},p(s,t){1&t&&r!==(r=s[3].title+"")&&d(o,r),1&t&&l!==(l=`/posts/${s[3].slug}`)&&i(e,"href",l)},d(s){s&&p(t)}}}function j(s){let t,e,o,l,d,j,x,L,y,D,U,H;const S=s[2].default,_=r(S,s,s[1],null);let F=s[0],G=[];for(let r=0;rs.metadata));return console.log("postsMeta",o),{props:{posts:o}}}function L(s,t,e){let{$$slots:o={},$$scope:l}=t,{posts:r}=t;return s.$$set=s=>{"posts"in s&&e(0,r=s.posts),"$$scope"in s&&e(1,l=s.$$scope)},[r,l,o]}export default class extends e{constructor(s){super(),o(this,s,L,j,l,{posts:0})}}export{x as load}; diff --git a/build/_app/pages/posts/about.svelte-80837ddb.js b/build/_app/pages/posts/about.svelte-80837ddb.js new file mode 100644 index 0000000..7da0523 --- /dev/null +++ b/build/_app/pages/posts/about.svelte-80837ddb.js @@ -0,0 +1 @@ +import{S as s,i as a,s as t,e as o,t as e,c as r,a as u,g as c,d as l,f as n,D as f,E as i}from"../../chunks/vendor-55eff8e9.js";function h(s){let a,t;return{c(){a=o("h3"),t=e("About this blog")},l(s){a=r(s,"H3",{});var o=u(a);t=c(o,"About this blog"),o.forEach(l)},m(s,o){n(s,a,o),f(a,t)},p:i,i:i,o:i,d(s){s&&l(a)}}}export default class extends s{constructor(s){super(),a(this,s,null,h,t,{})}} diff --git a/build/_app/pages/posts/index.svelte-2b52bcc1.js b/build/_app/pages/posts/index.svelte-2b52bcc1.js new file mode 100644 index 0000000..76fb274 --- /dev/null +++ b/build/_app/pages/posts/index.svelte-2b52bcc1.js @@ -0,0 +1 @@ +import{S as s,i as a,s as r,e as t,t as o,k as e,c,a as f,g as n,d as h,n as l,f as u,D as i,E as d}from"../../chunks/vendor-55eff8e9.js";function E(s){let a,r,E,p,v,P;return{c(){a=t("h1"),r=o("Posts"),E=e(),p=t("article"),v=t("h3"),P=o("New Post")},l(s){a=c(s,"H1",{});var t=f(a);r=n(t,"Posts"),t.forEach(h),E=l(s),p=c(s,"ARTICLE",{});var o=f(p);v=c(o,"H3",{});var e=f(v);P=n(e,"New Post"),e.forEach(h),o.forEach(h)},m(s,t){u(s,a,t),i(a,r),u(s,E,t),u(s,p,t),i(p,v),i(v,P)},p:d,i:d,o:d,d(s){s&&h(a),s&&h(E),s&&h(p)}}}export default class extends s{constructor(s){super(),a(this,s,null,E,r,{})}} diff --git a/build/_app/start-042b987c.js b/build/_app/start-042b987c.js new file mode 100644 index 0000000..e2ae263 --- /dev/null +++ b/build/_app/start-042b987c.js @@ -0,0 +1 @@ +var t=Object.defineProperty,e=Object.defineProperties,r=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,n=(e,r,s)=>r in e?t(e,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[r]=s,i=(t,e)=>{for(var r in e||(e={}))o.call(e,r)&&n(t,r,e[r]);if(s)for(var r of s(e))a.call(e,r)&&n(t,r,e[r]);return t};import{S as l,i as c,s as u,e as h,c as d,a as p,d as f,b as g,f as m,t as _,g as y,h as $,j as b,k as v,l as w,m as E,n as x,o as R,p as q,q as L,r as S,u as O,v as j,w as k,x as A,y as P,z as U,A as T,B as I,C as N}from"./chunks/vendor-55eff8e9.js";import{_ as D}from"./chunks/preload-helper-9f12a5fd.js";function V(t){let e,r,s;const o=[t[2]||{}];var a=t[0][1];function n(t){let e={$$slots:{default:[z]},$$scope:{ctx:t}};for(let r=0;r{k(t,1)})),O()}a?(e=new a(n(t)),b(e.$$.fragment),j(e.$$.fragment,1),R(e,r.parentNode,r)):e=null}else a&&e.$set(i)},i(t){s||(e&&j(e.$$.fragment,t),s=!0)},o(t){e&&S(e.$$.fragment,t),s=!1},d(t){t&&f(r),e&&k(e,t)}}}function C(t){let e,r,s;const o=[t[3]||{}];var a=t[0][2];function n(t){let e={$$slots:{default:[K]},$$scope:{ctx:t}};for(let r=0;r{k(t,1)})),O()}a?(e=new a(n(t)),b(e.$$.fragment),j(e.$$.fragment,1),R(e,r.parentNode,r)):e=null}else a&&e.$set(i)},i(t){s||(e&&j(e.$$.fragment,t),s=!0)},o(t){e&&S(e.$$.fragment,t),s=!1},d(t){t&&f(r),e&&k(e,t)}}}function B(t){let e,r,s;const o=[t[4]||{}];var a=t[0][3];function n(t){let e={};for(let r=0;r{k(t,1)})),O()}a?(e=new a(n()),b(e.$$.fragment),j(e.$$.fragment,1),R(e,r.parentNode,r)):e=null}else a&&e.$set(i)},i(t){s||(e&&j(e.$$.fragment,t),s=!0)},o(t){e&&S(e.$$.fragment,t),s=!1},d(t){t&&f(r),e&&k(e,t)}}}function K(t){let e,r,s=t[0][3]&&B(t);return{c(){s&&s.c(),e=w()},l(t){s&&s.l(t),e=w()},m(t,o){s&&s.m(t,o),m(t,e,o),r=!0},p(t,r){t[0][3]?s?(s.p(t,r),1&r&&j(s,1)):(s=B(t),s.c(),j(s,1),s.m(e.parentNode,e)):s&&(I(),S(s,1,1,(()=>{s=null})),O())},i(t){r||(j(s),r=!0)},o(t){S(s),r=!1},d(t){s&&s.d(t),t&&f(e)}}}function z(t){let e,r,s=t[0][2]&&C(t);return{c(){s&&s.c(),e=w()},l(t){s&&s.l(t),e=w()},m(t,o){s&&s.m(t,o),m(t,e,o),r=!0},p(t,r){t[0][2]?s?(s.p(t,r),1&r&&j(s,1)):(s=C(t),s.c(),j(s,1),s.m(e.parentNode,e)):s&&(I(),S(s,1,1,(()=>{s=null})),O())},i(t){r||(j(s),r=!0)},o(t){S(s),r=!1},d(t){s&&s.d(t),t&&f(e)}}}function M(t){let e,r,s=t[0][1]&&V(t);return{c(){s&&s.c(),e=w()},l(t){s&&s.l(t),e=w()},m(t,o){s&&s.m(t,o),m(t,e,o),r=!0},p(t,r){t[0][1]?s?(s.p(t,r),1&r&&j(s,1)):(s=V(t),s.c(),j(s,1),s.m(e.parentNode,e)):s&&(I(),S(s,1,1,(()=>{s=null})),O())},i(t){r||(j(s),r=!0)},o(t){S(s),r=!1},d(t){s&&s.d(t),t&&f(e)}}}function W(t){let e,r=t[6]&&Y(t);return{c(){e=h("div"),r&&r.c(),this.h()},l(t){e=d(t,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,class:!0});var s=p(e);r&&r.l(s),s.forEach(f),this.h()},h(){g(e,"id","svelte-announcer"),g(e,"aria-live","assertive"),g(e,"aria-atomic","true"),g(e,"class","svelte-1j55zn5")},m(t,s){m(t,e,s),r&&r.m(e,null)},p(t,s){t[6]?r?r.p(t,s):(r=Y(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null)},d(t){t&&f(e),r&&r.d()}}}function Y(t){let e;return{c(){e=_(t[7])},l(r){e=y(r,t[7])},m(t,r){m(t,e,r)},p(t,r){128&r&&$(e,t[7])},d(t){t&&f(e)}}}function G(t){let e,r,s,o;const a=[t[1]||{}];var n=t[0][0];function i(t){let e={$$slots:{default:[M]},$$scope:{ctx:t}};for(let r=0;r{k(t,1)})),O()}n?(e=new n(i(t)),b(e.$$.fragment),j(e.$$.fragment,1),R(e,r.parentNode,r)):e=null}else n&&e.$set(c);t[5]?l?l.p(t,o):(l=W(t),l.c(),l.m(s.parentNode,s)):l&&(l.d(1),l=null)},i(t){o||(e&&j(e.$$.fragment,t),o=!0)},o(t){e&&S(e.$$.fragment,t),o=!1},d(t){e&&k(e,t),t&&f(r),l&&l.d(t),t&&f(s)}}}function J(t,e,r){let{stores:s}=e,{page:o}=e,{components:a}=e,{props_0:n=null}=e,{props_1:i=null}=e,{props_2:l=null}=e,{props_3:c=null}=e;A("__svelte__",s),P(s.page.notify);let u=!1,h=!1,d=null;return U((()=>{const t=s.page.subscribe((()=>{u&&(r(6,h=!0),r(7,d=document.title||"untitled page"))}));return r(5,u=!0),t})),t.$$set=t=>{"stores"in t&&r(8,s=t.stores),"page"in t&&r(9,o=t.page),"components"in t&&r(0,a=t.components),"props_0"in t&&r(1,n=t.props_0),"props_1"in t&&r(2,i=t.props_1),"props_2"in t&&r(3,l=t.props_2),"props_3"in t&&r(4,c=t.props_3)},t.$$.update=()=>{768&t.$$.dirty&&s.page.set(o)},[a,n,i,l,c,u,h,d,s,o]}class X extends l{constructor(t){super(),c(this,t,J,G,u,{stores:8,page:9,components:0,props_0:1,props_1:2,props_2:3,props_3:4})}}const F=[()=>D((()=>import("./pages/__layout.svelte-d83a74e6.js")),["/_app/pages/__layout.svelte-d83a74e6.js","/_app/assets/pages/__layout.svelte-b325a427.css","/_app/chunks/vendor-55eff8e9.js"]),()=>D((()=>import("./pages/__error.svelte-92c74c38.js")),["/_app/pages/__error.svelte-92c74c38.js","/_app/chunks/vendor-55eff8e9.js"]),()=>D((()=>import("./pages/index.svelte-1cf09077.js")),["/_app/pages/index.svelte-1cf09077.js","/_app/chunks/vendor-55eff8e9.js"]),()=>D((()=>import("./pages/about.svelte-38b2fb12.js")),["/_app/pages/about.svelte-38b2fb12.js","/_app/chunks/vendor-55eff8e9.js"]),()=>D((()=>import("./pages/posts/__layout.svelte-9b5e845d.js")),["/_app/pages/posts/__layout.svelte-9b5e845d.js","/_app/chunks/goodbye-62de47d1.js","/_app/chunks/vendor-55eff8e9.js","/_app/chunks/hello-750c14bf.js"]),()=>D((()=>import("./pages/posts/index.svelte-2b52bcc1.js")),["/_app/pages/posts/index.svelte-2b52bcc1.js","/_app/chunks/vendor-55eff8e9.js"]),()=>D((()=>import("./pages/posts/about.svelte-80837ddb.js")),["/_app/pages/posts/about.svelte-80837ddb.js","/_app/chunks/vendor-55eff8e9.js"]),()=>D((()=>import("./pages/posts/[slug].svelte-bf81e842.js")),["/_app/pages/posts/[slug].svelte-bf81e842.js","/_app/chunks/preload-helper-9f12a5fd.js","/_app/chunks/vendor-55eff8e9.js"])],H=decodeURIComponent,Q=[[/^\/$/,[F[0],F[2]],[F[1]]],[/^\/about\/?$/,[F[0],F[3]],[F[1]]],[/^\/posts\/?$/,[F[0],F[4],F[5]],[F[1]]],[/^\/posts\/post\.json$/],[/^\/posts\/about\/?$/,[F[0],F[4],F[6]],[F[1]]],[/^\/posts\/([^/]+?)\/?$/,[F[0],F[4],F[7]],[F[1]],t=>({slug:H(t[1])})]],Z=[F[0](),F[1]()];function tt(){return{x:pageXOffset,y:pageYOffset}}function et(t){for(;t&&"A"!==t.nodeName.toUpperCase();)t=t.parentNode;return t}class rt{constructor({base:t,routes:e,trailing_slash:r}){this.base=t,this.routes=e,this.trailing_slash=r}init(t){let s;this.renderer=t,t.router=this,this.enabled=!0,"scrollRestoration"in history&&(history.scrollRestoration="manual"),addEventListener("beforeunload",(()=>{history.scrollRestoration="auto"})),addEventListener("load",(()=>{history.scrollRestoration="manual"})),addEventListener("scroll",(()=>{clearTimeout(s),s=setTimeout((()=>{const t=(s=i({},history.state||{}),o={"sveltekit:scroll":tt()},e(s,r(o)));var s,o;history.replaceState(t,document.title,window.location.href)}),50)}));const o=t=>{const e=et(t.target);e&&e.href&&e.hasAttribute("sveltekit:prefetch")&&this.prefetch(new URL(e.href))};let a;addEventListener("touchstart",o),addEventListener("mousemove",(t=>{clearTimeout(a),a=setTimeout((()=>{o(t)}),20)})),addEventListener("click",(t=>{var e;if(!this.enabled)return;if(t.button||1!==t.which)return;if(t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return;if(t.defaultPrevented)return;const r=et(t.target);if(!r)return;if(!r.href)return;const s="object"==typeof r.href&&"SVGAnimatedString"===r.href.constructor.name,o=String(s?r.href.baseVal:r.href);if(o===location.href)return void(location.hash||t.preventDefault());const a=null==(e=r.getAttribute("rel"))?void 0:e.split(/\s+/);if(r.hasAttribute("download")||a&&a.includes("external"))return;if(s?r.target.baseVal:r.target)return;const n=new URL(o);if(!this.owns(n))return;const i=r.hasAttribute("sveltekit:noscroll");history.pushState({},"",n.href),this._navigate(n,i?tt():null,[],n.hash),t.preventDefault()})),addEventListener("popstate",(t=>{if(t.state&&this.enabled){const e=new URL(location.href);this._navigate(e,t.state["sveltekit:scroll"],[])}})),document.body.setAttribute("tabindex","-1"),history.replaceState(history.state||{},"",location.href)}owns(t){return t.origin===location.origin&&t.pathname.startsWith(this.base)}parse(t){if(this.owns(t)){const e=decodeURIComponent(t.pathname.slice(this.base.length)||"/"),r=this.routes.filter((([t])=>t.test(e))),s=new URLSearchParams(t.search);return{id:`${e}?${s}`,routes:r,path:e,query:s}}}async goto(t,{noscroll:e=!1,replaceState:r=!1}={},s){const o=new URL(t,function(t){let e=t.baseURI;if(!e){const r=t.getElementsByTagName("base");e=r.length?r[0].href:t.URL}return e}(document));return this.enabled&&this.owns(o)?(history[r?"replaceState":"pushState"]({},"",t),this._navigate(o,e?tt():null,s,o.hash)):(location.href=o.href,new Promise((()=>{})))}enable(){this.enabled=!0}disable(){this.enabled=!1}async prefetch(t){const e=this.parse(t);if(!e)throw new Error("Attempted to prefetch a URL that does not belong to this app");return this.renderer.load(e)}async _navigate(t,e,r,s){const o=this.parse(t);if(!o)throw new Error("Attempted to navigate to a URL that does not belong to this app");if("/"!==o.path){const t=o.path.endsWith("/");(t&&"never"===this.trailing_slash||!t&&"always"===this.trailing_slash&&!o.path.split("/").pop().includes("."))&&(o.path=t?o.path.slice(0,-1):o.path+"/",history.replaceState({},"",`${o.path}${location.search}`))}this.renderer.notify({path:o.path,query:o.query}),await this.renderer.update(o,r,!1),document.body.focus();const a=s&&document.getElementById(s.slice(1));e?scrollTo(e.x,e.y):a?scrollTo(0,a.getBoundingClientRect().top+scrollY):scrollTo(0,0)}}function st(t){const e=N(t);let r=!0;return{notify:function(){r=!0,e.update((t=>t))},set:function(t){r=!1,e.set(t)},subscribe:function(t){let s;return e.subscribe((e=>{(void 0===s||r&&e!==s)&&t(s=e)}))}}}function ot(t,e){let r=`script[type="svelte-data"][url="${"string"==typeof t?t:t.url}"]`;e&&"string"==typeof e.body&&(r+=`[body="${function(t){let e=5381,r=t.length;if("string"==typeof t)for(;r;)e=33*e^t.charCodeAt(--r);else for(;r;)e=33*e^t[--r];return(e>>>0).toString(36)}(e.body)}"]`);const n=document.querySelector(r);if(n){const t=JSON.parse(n.textContent),{body:e}=t,r=((t,e)=>{var r={};for(var n in t)o.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&s)for(var n of s(t))e.indexOf(n)<0&&a.call(t,n)&&(r[n]=t[n]);return r})(t,["body"]);return Promise.resolve(new Response(e,r))}return fetch(t,e)}class at{constructor({Root:t,fallback:e,target:r,session:s,host:o}){this.Root=t,this.fallback=e,this.host=o,this.router=null,this.target=r,this.started=!1,this.session_id=1,this.invalid=new Set,this.invalidating=null,this.current={page:null,session_id:null,branch:[]},this.cache=new Map,this.loading={id:null,promise:null},this.stores={page:st({}),navigating:N(null),session:N(s)},this.$session=null,this.root=null;let a=!1;this.stores.session.subscribe((async t=>{if(this.$session=t,!a)return;this.session_id+=1;const e=this.router.parse(new URL(location.href));this.update(e,[],!0)})),a=!0}async start({status:t,error:e,nodes:r,page:s}){const o=[];let a,n,l,c={};try{for(let a=0;a10||e.includes(t.path)))return void(this.router?this.router.goto(o.redirect,{replaceState:!0},[...e,t.path]):location.href=new URL(o.redirect,location.href).href);o=await this._load_error({status:500,error:new Error("Redirect loop"),path:t.path,query:t.query})}o.reload?location.reload():this.started?(this.current=o.state,this.root.$set(o.props),this.stores.navigating.set(null),await 0):this._init(o),dispatchEvent(new CustomEvent("sveltekit:navigation-end")),this.loading.promise=null,this.loading.id=null;const a=o.state.branch[o.state.branch.length-1];a&&!1===a.module.router?this.router.disable():this.router.enable()}load(t){return this.loading.promise=this._get_navigation_result(t,!1),this.loading.id=t.id,this.loading.promise}invalidate(t){return this.invalid.add(t),this.invalidating||(this.invalidating=Promise.resolve().then((async()=>{const t=this.router.parse(new URL(location.href));await this.update(t,[],!0),this.invalidating=null}))),this.invalidating}_init(t){this.current=t.state;const e=document.querySelector("style[data-svelte]");e&&e.remove(),this.root=new this.Root({target:this.target,props:i({stores:this.stores},t.props),hydrate:!0}),this.started=!0}async _get_navigation_result(t,e){if(this.loading.id===t.id)return this.loading.promise;for(let r=0;rt())),o+=1}const a=await this._load({route:s,path:t.path,query:t.query},e);if(a)return a}return await this._load_error({status:404,error:new Error(`Not found: ${t.path}`),path:t.path,query:t.query})}async _get_navigation_result_from_branch({page:t,branch:e}){const r=e.filter(Boolean),s={state:{page:t,branch:e,session_id:this.session_id},props:{components:r.map((t=>t.module.default))}};for(let n=0;n{this.cache.get(e)===s&&this.cache.delete(e),i(),clearTimeout(n)},n=setTimeout(o,1e3*a),i=this.stores.session.subscribe((()=>{r&&o()}));r=!0,this.cache.set(e,s)}return s}async _load_node({status:t,error:e,module:r,page:s,context:o}){const a={module:r,uses:{params:new Set,path:!1,query:!1,session:!1,context:!1,dependencies:[]},loaded:null,context:o},n={};for(const i in s.params)Object.defineProperty(n,i,{get:()=>(a.uses.params.add(i),s.params[i]),enumerable:!0});const l=this.$session;if(r.load){const{started:c}=this,u={page:{host:s.host,params:n,get path(){return a.uses.path=!0,s.path},get query(){return a.uses.query=!0,s.query}},get session(){return a.uses.session=!0,l},get context(){return a.uses.context=!0,i({},o)},fetch(t,e){const r="string"==typeof t?t:t.url,{href:o}=new URL(r,new URL(s.path,document.baseURI));return a.uses.dependencies.push(o),c?fetch(t,e):ot(t,e)}};e&&(u.status=t,u.error=e);const h=await r.load.call(null,u);if(!h)return;a.loaded=function(t){if(t.error){const e="string"==typeof t.error?new Error(t.error):t.error,r=t.status;return e instanceof Error?!r||r<400||r>599?(console.warn('"error" returned from load() without a valid status code — defaulting to 500'),{status:500,error:e}):{status:r,error:e}:{status:500,error:new Error(`"error" property returned from load() must be a string or instance of Error, received type "${typeof e}"`)}}if(t.redirect){if(!t.status||3!==Math.floor(t.status/100))return{status:500,error:new Error('"redirect" property returned from load() must be accompanied by a 3xx status code')};if("string"!=typeof t.redirect)return{status:500,error:new Error('"redirect" property returned from load() must be a string')}}return t}(h),a.loaded.context&&(a.context=a.loaded.context)}return a}async _load({route:t,path:e,query:r},s){const o=`${e}?${r}`;if(!s&&this.cache.has(o))return this.cache.get(o);const[a,n,l,c]=t,u=c?c(a.exec(e)):{},h=this.current.page&&{path:e!==this.current.page.path,params:Object.keys(u).filter((t=>this.current.page.params[t]!==u[t])),query:r.toString()!==this.current.page.query.toString(),session:this.session_id!==this.current.session_id},d={host:this.host,path:e,query:r,params:u},p=[];let f={},g=!1,m=200,_=null;n.forEach((t=>t()));t:for(let $=0;$r.uses.params.has(t)))||h.query&&r.uses.query||h.session&&r.uses.session||r.uses.dependencies.some((t=>this.invalid.has(t)))||g&&r.uses.context){t=await this._load_node({module:e,page:d,context:f});const r=$===n.length-1;if(t&&t.loaded){if(t.loaded.error&&(m=t.loaded.status,_=t.loaded.error),t.loaded.redirect)return{redirect:t.loaded.redirect};t.loaded.context&&(g=!0)}else if(r&&e.load)return}else t=r}catch(y){m=500,_=y}if(_){for(;$--;)if(l[$]){let t,e,r=$;for(;!(e=p[r]);)r-=1;try{if(t=await this._load_node({status:m,error:_,module:await l[$](),page:d,context:e.context}),t.loaded.error)continue;p.push(t);break t}catch(y){continue}}return await this._load_error({status:m,error:_,path:e,query:r})}t&&t.loaded&&t.loaded.context&&(f=i(i({},f),t.loaded.context)),p.push(t)}return await this._get_navigation_result_from_branch({page:d,branch:p})}async _load_error({status:t,error:e,path:r,query:s}){const o={host:this.host,path:r,query:s,params:{}},a=await this._load_node({module:await this.fallback[0],page:o,context:{}}),n=[a,await this._load_node({status:t,error:e,module:await this.fallback[1],page:o,context:a&&a.loaded&&a.loaded.context})];return await this._get_navigation_result_from_branch({page:o,branch:n})}}async function nt({paths:t,target:e,session:r,host:s,route:o,spa:a,trailing_slash:n,hydrate:i}){const l=o&&new rt({base:t.base,routes:Q,trailing_slash:n}),c=new at({Root:X,fallback:Z,target:e,session:r,host:s});i&&await c.start(i),o&&l.init(c),a&&l.goto(location.href,{replaceState:!0},[]),dispatchEvent(new CustomEvent("sveltekit:start"))}export{nt as start}; diff --git a/build/about/index.html b/build/about/index.html new file mode 100644 index 0000000..e9953da --- /dev/null +++ b/build/about/index.html @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + +
+ + +

Welcome

+
+ + + + +

About Us

+

Lorem ipsum dolor sit amet consectetur adipisicing elit. Deleniti in natus, at laboriosam + laudantium amet eum aliquid repellat minima exercitationem officiis quibusdam voluptates eaque + assumenda vero consectetur repellendus, illum cum. +

+ +
Copyright 2021
+ + + + + + + +
+ + diff --git a/build/favicon.png b/build/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..825b9e65af7c104cfb07089bb28659393b4f2097 GIT binary patch literal 1571 zcmV+;2Hg3HP)Px)-AP12RCwC$UE6KzI1p6{F2N z1VK2vi|pOpn{~#djwYcWXTI_im_u^TJgMZ4JMOsSj!0ma>B?-(Hr@X&W@|R-$}W@Z zgj#$x=!~7LGqHW?IO8+*oE1MyDp!G=L0#^lUx?;!fXv@l^6SvTnf^ac{5OurzC#ZMYc20lI%HhX816AYVs1T3heS1*WaWH z%;x>)-J}YB5#CLzU@GBR6sXYrD>Vw(Fmt#|JP;+}<#6b63Ike{Fuo!?M{yEffez;| zp!PfsuaC)>h>-AdbnwN13g*1LowNjT5?+lFVd#9$!8Z9HA|$*6dQ8EHLu}U|obW6f z2%uGv?vr=KNq7YYa2Roj;|zooo<)lf=&2yxM@e`kM$CmCR#x>gI>I|*Ubr({5Y^rb zghxQU22N}F51}^yfDSt786oMTc!W&V;d?76)9KXX1 z+6Okem(d}YXmmOiZq$!IPk5t8nnS{%?+vDFz3BevmFNgpIod~R{>@#@5x9zJKEHLHv!gHeK~n)Ld!M8DB|Kfe%~123&Hz1Z(86nU7*G5chmyDe ziV7$pB7pJ=96hpxHv9rCR29%bLOXlKU<_13_M8x)6;P8E1Kz6G<&P?$P^%c!M5`2` zfY2zg;VK5~^>TJGQzc+33-n~gKt{{of8GzUkWmU110IgI0DLxRIM>0US|TsM=L|@F z0Bun8U!cRB7-2apz=y-7*UxOxz@Z0)@QM)9wSGki1AZ38ceG7Q72z5`i;i=J`ILzL z@iUO?SBBG-0cQuo+an4TsLy-g-x;8P4UVwk|D8{W@U1Zi z!M)+jqy@nQ$p?5tsHp-6J304Q={v-B>66$P0IDx&YT(`IcZ~bZfmn11#rXd7<5s}y zBi9eim&zQc0Dk|2>$bs0PnLmDfMP5lcXRY&cvJ=zKxI^f0%-d$tD!`LBf9^jMSYUA zI8U?CWdY@}cRq6{5~y+)#h1!*-HcGW@+gZ4B};0OnC~`xQOyH19z*TA!!BJ%9s0V3F?CAJ{hTd#*tf+ur-W9MOURF-@B77_-OshsY}6 zOXRY=5%C^*26z?l)1=$bz30!so5tfABdSYzO+H=CpV~aaUefmjvfZ3Ttu9W&W3Iu6 zROlh0MFA5h;my}8lB0tAV-Rvc2Zs_CCSJnx@d`**$idgy-iMob4dJWWw|21b4NB=LfsYp0Aeh{Ov)yztQi;eL4y5 zMi>8^SzKqk8~k?UiQK^^-5d8c%bV?$F8%X~czyiaKCI2=UH + + + + + + + + + + + + + + + + + + + + +
+ + +

Welcome

+
+ + + + +

Welcome to Level Up

+

Hi y'all

+

Visit kit.svelte.dev to read the documentation

+ +
Copyright 2021
+ + + + + + + +
+ + diff --git a/build/posts/about/index.html b/build/posts/about/index.html new file mode 100644 index 0000000..43378fc --- /dev/null +++ b/build/posts/about/index.html @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +

Welcome

+
+ + + + +

About this blog

+
+ +
Copyright 2021
+ + + + + + + +
+ + diff --git a/build/posts/goodbye/index.html b/build/posts/goodbye/index.html new file mode 100644 index 0000000..1b137cd --- /dev/null +++ b/build/posts/goodbye/index.html @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +

Welcome

+
+ + + + +
+ +
Copyright 2021
+ + + + + + + +
+ + diff --git a/build/posts/hello/index.html b/build/posts/hello/index.html new file mode 100644 index 0000000..27b1376 --- /dev/null +++ b/build/posts/hello/index.html @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +

Welcome

+
+ + + + +

Hello World

+

lorem ipsum

+
  • Hello
  • +
  • World
+
+ +
Copyright 2021
+ + + + + + + +
+ + diff --git a/build/posts/index.html b/build/posts/index.html new file mode 100644 index 0000000..7f02c9c --- /dev/null +++ b/build/posts/index.html @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +

Welcome

+
+ + + + +

Posts

+

New Post

+
+ +
Copyright 2021
+ + + + + + + +
+ + diff --git a/package-lock.json b/package-lock.json index 0cfbe14..679a803 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,20 +12,21 @@ "svelte-preprocess": "^4.7.3" }, "devDependencies": { + "@sveltejs/adapter-static": "^1.0.0-next.13", "@sveltejs/kit": "next", "autoprefixer": "^10.2.6", - "eslint": "^7.22.0", - "eslint-config-prettier": "^8.1.0", + "eslint": "^7.27.0", + "eslint-config-prettier": "^8.3.0", "eslint-plugin-svelte3": "^3.2.0", - "mdsvex": "^0.9.0", - "prettier": "~2.2.1", - "prettier-plugin-svelte": "^2.2.0", - "rehype-autolink-headings": "^5.0.1", + "mdsvex": "^0.9.6", + "prettier": "~2.3.0", + "prettier-plugin-svelte": "^2.3.0", + "rehype-autolink-headings": "^5.1.0", "rehype-slug": "^4.0.1", "remark-abbr": "^1.4.1", - "remark-github": "^10.0.1", - "svelte": "^3.34.0", - "tailwindcss": "^2.1.3" + "remark-github": "^10.1.0", + "svelte": "^3.38.2", + "tailwindcss": "^2.1.4" } }, "node_modules/@babel/code-frame": { @@ -229,6 +230,12 @@ "rollup": "^1.20.0||^2.0.0" } }, + "node_modules/@sveltejs/adapter-static": { + "version": "1.0.0-next.13", + "resolved": "https://registry.npmjs.org/@sveltejs/adapter-static/-/adapter-static-1.0.0-next.13.tgz", + "integrity": "sha512-zaXJlWK9JfrjrE6nG5etB8kf4DSkbE3H8Ql6gmCk3WjdvpY85a60TMYBU9OK2iunkqpHnPYiMUGEnOGYmWlLYA==", + "dev": true + }, "node_modules/@sveltejs/kit": { "version": "1.0.0-next.111", "resolved": "https://registry.npmjs.org/@sveltejs/kit/-/kit-1.0.0-next.111.tgz", @@ -3095,9 +3102,9 @@ } }, "node_modules/prettier": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.2.1.tgz", - "integrity": "sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.3.0.tgz", + "integrity": "sha512-kXtO4s0Lz/DW/IJ9QdWhAf7/NmPWQXkFr/r/WkR3vyI+0v8amTDxiaQSLzs8NBlytfLWX/7uQUMIW677yLKl4w==", "dev": true, "bin": { "prettier": "bin-prettier.js" @@ -3971,9 +3978,9 @@ "dev": true }, "node_modules/tailwindcss": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-2.1.3.tgz", - "integrity": "sha512-434rlH/gVSm0Qhc2pQjvsQeasrcmPWEWSxyDcF66Y+CavOURsdqx3hymqqXlozs+CVWN3z+VpFV/PE9b2wx/GA==", + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-2.1.4.tgz", + "integrity": "sha512-fh1KImDLg6se/Suaelju/5oFbqq1b0ntagmGLu0aG9LlnNPGHgO1n/4E57CbKcCtyz/VYnvVXUiWmfyfBBZQ6g==", "dev": true, "dependencies": { "@fullhuman/postcss-purgecss": "^3.1.3", @@ -4718,6 +4725,12 @@ "picomatch": "^2.2.2" } }, + "@sveltejs/adapter-static": { + "version": "1.0.0-next.13", + "resolved": "https://registry.npmjs.org/@sveltejs/adapter-static/-/adapter-static-1.0.0-next.13.tgz", + "integrity": "sha512-zaXJlWK9JfrjrE6nG5etB8kf4DSkbE3H8Ql6gmCk3WjdvpY85a60TMYBU9OK2iunkqpHnPYiMUGEnOGYmWlLYA==", + "dev": true + }, "@sveltejs/kit": { "version": "1.0.0-next.111", "resolved": "https://registry.npmjs.org/@sveltejs/kit/-/kit-1.0.0-next.111.tgz", @@ -6909,9 +6922,9 @@ "dev": true }, "prettier": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.2.1.tgz", - "integrity": "sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.3.0.tgz", + "integrity": "sha512-kXtO4s0Lz/DW/IJ9QdWhAf7/NmPWQXkFr/r/WkR3vyI+0v8amTDxiaQSLzs8NBlytfLWX/7uQUMIW677yLKl4w==", "dev": true }, "prettier-plugin-svelte": { @@ -7534,9 +7547,9 @@ } }, "tailwindcss": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-2.1.3.tgz", - "integrity": "sha512-434rlH/gVSm0Qhc2pQjvsQeasrcmPWEWSxyDcF66Y+CavOURsdqx3hymqqXlozs+CVWN3z+VpFV/PE9b2wx/GA==", + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-2.1.4.tgz", + "integrity": "sha512-fh1KImDLg6se/Suaelju/5oFbqq1b0ntagmGLu0aG9LlnNPGHgO1n/4E57CbKcCtyz/VYnvVXUiWmfyfBBZQ6g==", "dev": true, "requires": { "@fullhuman/postcss-purgecss": "^3.1.3", diff --git a/package.json b/package.json index 3bc6ddf..f543da7 100644 --- a/package.json +++ b/package.json @@ -9,20 +9,21 @@ "format": "prettier --write --plugin-search-dir=. ." }, "devDependencies": { + "@sveltejs/adapter-static": "^1.0.0-next.13", "@sveltejs/kit": "next", "autoprefixer": "^10.2.6", - "eslint": "^7.22.0", - "eslint-config-prettier": "^8.1.0", + "eslint": "^7.27.0", + "eslint-config-prettier": "^8.3.0", "eslint-plugin-svelte3": "^3.2.0", - "mdsvex": "^0.9.0", - "prettier": "~2.2.1", - "prettier-plugin-svelte": "^2.2.0", - "rehype-autolink-headings": "^5.0.1", + "mdsvex": "^0.9.6", + "prettier": "~2.3.0", + "prettier-plugin-svelte": "^2.3.0", + "rehype-autolink-headings": "^5.1.0", "rehype-slug": "^4.0.1", "remark-abbr": "^1.4.1", - "remark-github": "^10.0.1", - "svelte": "^3.34.0", - "tailwindcss": "^2.1.3" + "remark-github": "^10.1.0", + "svelte": "^3.38.2", + "tailwindcss": "^2.1.4" }, "type": "module", "dependencies": { diff --git a/src/routes/__error.svelte b/src/routes/__error.svelte new file mode 100644 index 0000000..dc05a08 --- /dev/null +++ b/src/routes/__error.svelte @@ -0,0 +1,20 @@ + + + + +

SOMETHING HAPPENED!

+ +

{status}

+

{error.message}

diff --git a/src/routes/posts/[slug].svelte b/src/routes/posts/[slug].svelte index f98505e..5fdcddf 100644 --- a/src/routes/posts/[slug].svelte +++ b/src/routes/posts/[slug].svelte @@ -1,20 +1,32 @@ -

{title}

- - + diff --git a/src/routes/posts/__layout.svelte b/src/routes/posts/__layout.svelte index e964a9f..67ddce1 100644 --- a/src/routes/posts/__layout.svelte +++ b/src/routes/posts/__layout.svelte @@ -24,8 +24,9 @@
Archive
{#each posts as post} -
  • {post.title}
  • +
  • {post.title}
  • {/each} +
  • Level Up
  • diff --git a/svelte.config.js b/svelte.config.js index 57c7c88..6842a71 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -2,6 +2,7 @@ import { mdsvex } from "mdsvex"; import { mdsvexConfig } from "./mdsvex.config.js"; /** @type {import('@sveltejs/kit').Config} */ import sveltePreprocess from 'svelte-preprocess'; +import adapter from '@sveltejs/adapter-static'; const config = { extensions: [".svelte", ...mdsvexConfig.extensions], @@ -11,7 +12,8 @@ const config = { ], kit: { // hydrate the
    element in src/app.html - target: '#svelte' + target: '#svelte', + adapter: adapter(), }, };