Delete old styles
@@ -1 +0,0 @@
|
|||||||
node_modules
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
<!DOCTYPE html ><html lang="en"><head><title>Ben Ramey's Blog</title><script defer src="/styles.js"></script><link href="/styles.css" rel="stylesheet"></head><body> <header><div class="container"><div class="d-flex justify-content-between align-item-center"><a class="d-flex justify-content-start align-items-center me-2 text-decoration-none" href="/" title="Home"><img src="https://en.gravatar.com/userimage/738990/32d8e61848233a67f5e02dcc43be0ff8.jpeg" alt="Gravatar" width="40px" height="40px"><span class="ms-2">Ben Ramey's Blog</span></a><div class="d-none d-sm-flex flex-column justify-content-around ms-2"><small>Scripture, programming problems, solutions and stories.</small></div></div></div></header><nav class="main"><div class="container d-flex justify-content-center"><a href="/archive">archive</a><a href="/tags">tags </a><a href="/categories">categories</a></div></nav><main><div class="container"><article class="page"><h1 class="page-title">404 : Page not found </h1><p>Sorry, we've misplaced that URL or it's pointing to something that doesn't exist.</p><p> <a href="/">Head back home</a><span> to try finding it again.</span></p></article></div></main><footer class="footer"><div class="container"><hr><small>© <time dateTime="2023-01-01T00:00:00Z">2023</time>. All rights reserved.</small></div></footer></body></html>
|
|
||||||
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 15 KiB |
@@ -1 +0,0 @@
|
|||||||
<!DOCTYPE html ><html lang="en"><head><title>Ben Ramey's Blog</title><link rel="icon" href="/favicon.ico"><script defer src="/styles.js"></script><link href="/styles.css" rel="stylesheet"></head><body> <header><div class="container"><div class="d-flex justify-content-between align-item-center"><a class="d-flex justify-content-start align-items-center me-2 text-decoration-none" href="/" title="Home"><img src="https://en.gravatar.com/userimage/738990/32d8e61848233a67f5e02dcc43be0ff8.jpeg" alt="Gravatar" width="40px" height="40px"><span class="ms-2">Ben Ramey's Blog</span></a><div class="d-none d-sm-flex flex-column justify-content-around ms-2"><small>Scripture, programming problems, solutions and stories.</small></div></div></div></header><nav class="main"><div class="container d-flex justify-content-center"><a href="/archive">archive</a><a href="/tags">tags </a><a href="/categories">categories</a></div></nav><main><div class="container"><article class="page"><h1 class="page-title">This is a page title </h1></article></div></main><footer class="footer"><div class="container"><hr><small>© <time dateTime="2023-01-01T00:00:00Z">2023</time>. All rights reserved.</small></div></footer></body></html>
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
<!DOCTYPE html ><html lang="en"><head><title>Ben Ramey's Blog</title><script defer src="/styles.js"></script><link href="/styles.css" rel="stylesheet"></head><body> <header><div class="container"><div class="d-flex justify-content-between align-item-center"><a class="d-flex justify-content-start align-items-center me-2 text-decoration-none" href="/" title="Home"><img src="https://en.gravatar.com/userimage/738990/32d8e61848233a67f5e02dcc43be0ff8.jpeg" alt="Gravatar" width="40px" height="40px"><span class="ms-2">Ben Ramey's Blog</span></a><div class="d-none d-sm-flex flex-column justify-content-around ms-2"><small>Scripture, programming problems, solutions and stories.</small></div></div></div></header><nav class="main"><div class="container d-flex justify-content-center"><a href="/archive">archive</a><a href="/tags">tags </a><a href="/categories">categories</a></div></nav><main><div class="container"><article class="post"> <h1 class="post-title">Sample post title </h1><div class="post-info d-flex justify-content-start"><time class="post-date" datetime="2022/02/10">Thu Feb 10th, 2022, about 1 year ago</time><nav class="post-tags"><a href="/tags/tag1">#tag1</a><a href="/tags/tag2">#tag2</a><a href="/tags/tag3">#tag3</a></nav><nav class="post-categories"> <span>posted in: </span><a href="/categories/category1">category1</a><a href="/categories/category2">category2</a><a href="/categories/category3">category3</a></nav></div><div><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Pellentesque elit eget gravida cum sociis natoque penatibus et magnis. Fames ac turpis egestas integer eget aliquet nibh praesent. At imperdiet dui accumsan sit amet nulla facilisi morbi. Sed viverra tellus in hac. Faucibus vitae aliquet nec ullamcorper sit amet. Pretium viverra suspendisse potenti nullam</p><p>ac tortor vitae. Arcu non sodales neque sodales ut etiam sit amet nisl. In iaculis nunc sed augue lacus. Ultrices vitae auctor eu augue ut. Nibh ipsum consequat nisl vel pretium lectus quam id. Eget gravida cum sociis natoque penatibus et magnis dis parturient. A iaculis at erat pellentesque. Lectus nulla at volutpat diam ut venenatis. Nisl vel pretium lectus quam. Etiam dignissim diam quis enim lobortis scelerisque. Non sodales neque sodales ut etiam sit amet nisl. Feugiat nibh sed pulvinar proin gravida. Nam at lectus urna duis convallis convallis.</p><h1>This is a header 1</h1><h2>This is a header 2</h2><h3>This is a header 3</h3><h4>This is a header 4</h4><h5>This is a header 5</h5><blockquote>this is a very important quote from someone</blockquote><div class="remark-highlight"><pre class="language-csharp"><code class="language-csharp">> become -a "hacker" --with "this code block"</code></pre></div></div></article><section class="comments"> <a id="comments-section"><h2>Comments</h2></a></section></div></main><footer class="footer"><div class="container"><hr><small>© <time dateTime="2023-01-01T00:00:00Z">2023</time>. All rights reserved.</small></div></footer></body></html>
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
/******/ (() => { // webpackBootstrap
|
|
||||||
/******/ "use strict";
|
|
||||||
/******/ // The require scope
|
|
||||||
/******/ var __webpack_require__ = {};
|
|
||||||
/******/
|
|
||||||
/************************************************************************/
|
|
||||||
/******/ /* webpack/runtime/make namespace object */
|
|
||||||
/******/ (() => {
|
|
||||||
/******/ // define __esModule on exports
|
|
||||||
/******/ __webpack_require__.r = (exports) => {
|
|
||||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
||||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
||||||
/******/ }
|
|
||||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
||||||
/******/ };
|
|
||||||
/******/ })();
|
|
||||||
/******/
|
|
||||||
/************************************************************************/
|
|
||||||
var __webpack_exports__ = {};
|
|
||||||
/*!******************************!*\
|
|
||||||
!*** ./src/scss/styles.scss ***!
|
|
||||||
\******************************/
|
|
||||||
__webpack_require__.r(__webpack_exports__);
|
|
||||||
// extracted by mini-css-extract-plugin
|
|
||||||
|
|
||||||
/******/ })()
|
|
||||||
;
|
|
||||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3R5bGVzLmpzIiwibWFwcGluZ3MiOiI7O1VBQUE7VUFDQTs7Ozs7V0NEQTtXQUNBO1dBQ0E7V0FDQSx1REFBdUQsaUJBQWlCO1dBQ3hFO1dBQ0EsZ0RBQWdELGFBQWE7V0FDN0Q7Ozs7Ozs7OztBQ05BIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vb3JjaGFyZGNvcmUuYmVucmFtZXl0aGVtZS93ZWJwYWNrL2Jvb3RzdHJhcCIsIndlYnBhY2s6Ly9vcmNoYXJkY29yZS5iZW5yYW1leXRoZW1lL3dlYnBhY2svcnVudGltZS9tYWtlIG5hbWVzcGFjZSBvYmplY3QiLCJ3ZWJwYWNrOi8vb3JjaGFyZGNvcmUuYmVucmFtZXl0aGVtZS8uL3NyYy9zY3NzL3N0eWxlcy5zY3NzPzU3ZWEiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gVGhlIHJlcXVpcmUgc2NvcGVcbnZhciBfX3dlYnBhY2tfcmVxdWlyZV9fID0ge307XG5cbiIsIi8vIGRlZmluZSBfX2VzTW9kdWxlIG9uIGV4cG9ydHNcbl9fd2VicGFja19yZXF1aXJlX18uciA9IChleHBvcnRzKSA9PiB7XG5cdGlmKHR5cGVvZiBTeW1ib2wgIT09ICd1bmRlZmluZWQnICYmIFN5bWJvbC50b1N0cmluZ1RhZykge1xuXHRcdE9iamVjdC5kZWZpbmVQcm9wZXJ0eShleHBvcnRzLCBTeW1ib2wudG9TdHJpbmdUYWcsIHsgdmFsdWU6ICdNb2R1bGUnIH0pO1xuXHR9XG5cdE9iamVjdC5kZWZpbmVQcm9wZXJ0eShleHBvcnRzLCAnX19lc01vZHVsZScsIHsgdmFsdWU6IHRydWUgfSk7XG59OyIsIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IHt9OyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==
|
|
||||||
4791
src/Themes/BenRameyTheme/benrameytheme/package-lock.json
generated
@@ -1,36 +0,0 @@
|
|||||||
{
|
|
||||||
"title": "BenRamey Theme",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"name": "orchardcore.benrameytheme",
|
|
||||||
"private": true,
|
|
||||||
"homepage": "https://www.benramey.com",
|
|
||||||
"author": "Ben Ramey",
|
|
||||||
"scripts": {
|
|
||||||
"format": "prettier --write \"**/*.{js,json}\"",
|
|
||||||
"watch": "webpack --watch",
|
|
||||||
"start": "webpack serve --open",
|
|
||||||
"build": "webpack --env production"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"copy-webpack-plugin": "^11.0.0",
|
|
||||||
"css-loader": "^6.7.3",
|
|
||||||
"css-minimizer-webpack-plugin": "^4.2.2",
|
|
||||||
"eslint": "^8.35.0",
|
|
||||||
"html-webpack-plugin": "^5.5.0",
|
|
||||||
"mini-css-extract-plugin": "^2.7.3",
|
|
||||||
"prettier": "^2.8.4",
|
|
||||||
"pug": "^3.0.2",
|
|
||||||
"pug-loader": "^2.4.0",
|
|
||||||
"sass": "^1.58.3",
|
|
||||||
"sass-loader": "^13.2.0",
|
|
||||||
"style-loader": "^3.3.1",
|
|
||||||
"webpack": "^5.76.0",
|
|
||||||
"webpack-cli": "^5.0.1",
|
|
||||||
"webpack-dev-middleware": "^6.0.1",
|
|
||||||
"webpack-dev-server": "^4.11.1"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"bootstrap": "^5.2.3",
|
|
||||||
"prismjs": "^1.29.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
doctype html
|
|
||||||
html(lang='en')
|
|
||||||
|
|
||||||
head
|
|
||||||
title Ben Ramey's Blog
|
|
||||||
|
|
||||||
body
|
|
||||||
include components/header.pug
|
|
||||||
include components/nav.pug
|
|
||||||
main
|
|
||||||
div(class='container')
|
|
||||||
article(class='page')
|
|
||||||
h1(class='page-title') 404 : Page not found
|
|
||||||
p Sorry, we've misplaced that URL or it's pointing to something that doesn't exist.
|
|
||||||
p
|
|
||||||
a(href='/') Head back home
|
|
||||||
span to try finding it again.
|
|
||||||
|
|
||||||
include components/footer.pug
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
doctype html
|
|
||||||
html(lang='en')
|
|
||||||
|
|
||||||
head
|
|
||||||
title Ben Ramey's Blog
|
|
||||||
|
|
||||||
body
|
|
||||||
include components/header.pug
|
|
||||||
include components/nav.pug
|
|
||||||
main
|
|
||||||
div(class='container')
|
|
||||||
article(class='page')
|
|
||||||
h1(class='page-title') Posts Archive
|
|
||||||
p Find any post by year, by category or by tag.
|
|
||||||
.row
|
|
||||||
.col
|
|
||||||
h2 By year
|
|
||||||
p Browse all posts year.
|
|
||||||
div
|
|
||||||
h2 2020
|
|
||||||
ul
|
|
||||||
li
|
|
||||||
a(href='/post.html') Post
|
|
||||||
li
|
|
||||||
a(href='/post.html') Post 2
|
|
||||||
li
|
|
||||||
a(href='/post.html') Post 3
|
|
||||||
div
|
|
||||||
h2 2019
|
|
||||||
ul
|
|
||||||
li
|
|
||||||
a(href='/post.html') Post
|
|
||||||
.col
|
|
||||||
h2 By tag
|
|
||||||
p Browse all posts by tag.
|
|
||||||
ul
|
|
||||||
li
|
|
||||||
a(href='/tags/test.html') Test
|
|
||||||
.col
|
|
||||||
h2 By category
|
|
||||||
p Browse all posts by category.
|
|
||||||
ul
|
|
||||||
li
|
|
||||||
a(href='/categories/test.html') Test
|
|
||||||
|
|
||||||
include components/footer.pug
|
|
||||||
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 198 KiB |
|
Before Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 826 B |
|
Before Width: | Height: | Size: 2.3 KiB |
@@ -1,9 +0,0 @@
|
|||||||
footer(class='footer')
|
|
||||||
div(class='container')
|
|
||||||
hr
|
|
||||||
small
|
|
||||||
.
|
|
||||||
©
|
|
||||||
time(dateTime='2023-01-01T00:00:00Z') 2023
|
|
||||||
.
|
|
||||||
. All rights reserved.
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
header.primary
|
|
||||||
div(class='container')
|
|
||||||
div(class='d-flex justify-content-between align-item-center')
|
|
||||||
a(class='d-flex justify-content-start align-items-center me-2 text-decoration-none', href='/', title='Home')
|
|
||||||
img(src='https://en.gravatar.com/userimage/738990/32d8e61848233a67f5e02dcc43be0ff8.jpeg', alt='Gravatar', width='40px', height='40px')
|
|
||||||
span(class='ms-2') Ben Ramey's Blog
|
|
||||||
div(class='d-none d-sm-flex flex-column justify-content-around ms-2')
|
|
||||||
small Scripture, programming problems, solutions and stories.
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
nav(class='main')
|
|
||||||
div(class='container d-flex justify-content-center')
|
|
||||||
a(href='/archive.html') archive
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
article.post
|
|
||||||
h1.post-title Sample post title
|
|
||||||
div(class='post-info d-flex justify-content-start')
|
|
||||||
time(class='post-date', datetime='2022/02/10') Thu Feb 10th, 2022, about 1 year ago
|
|
||||||
nav.post-tags
|
|
||||||
a(href='/tags/tag1') #tag1
|
|
||||||
a(href='/tags/tag2') #tag2
|
|
||||||
a(href='/tags/tag3') #tag3
|
|
||||||
nav.post-categories
|
|
||||||
span posted in:
|
|
||||||
a(href='/categories/category1') category1
|
|
||||||
a(href='/categories/category2') category2
|
|
||||||
a(href='/categories/category3') category3
|
|
||||||
div
|
|
||||||
p Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Pellentesque elit eget gravida cum sociis natoque penatibus et magnis. Fames ac turpis egestas integer eget aliquet nibh praesent. At imperdiet dui accumsan sit amet nulla facilisi morbi. Sed viverra tellus in hac. Faucibus vitae aliquet nec ullamcorper sit amet. Pretium viverra suspendisse potenti nullam
|
|
||||||
p ac tortor vitae. Arcu non sodales neque sodales ut etiam sit amet nisl. In iaculis nunc sed augue lacus. Ultrices vitae auctor eu augue ut. Nibh ipsum consequat nisl vel pretium lectus quam id. Eget gravida cum sociis natoque penatibus et magnis dis parturient. A iaculis at erat pellentesque. Lectus nulla at volutpat diam ut venenatis. Nisl vel pretium lectus quam. Etiam dignissim diam quis enim lobortis scelerisque. Non sodales neque sodales ut etiam sit amet nisl. Feugiat nibh sed pulvinar proin gravida. Nam at lectus urna duis convallis convallis.
|
|
||||||
h1 This is a header 1
|
|
||||||
h2 This is a header 2
|
|
||||||
h3 This is a header 3
|
|
||||||
h4 This is a header 4
|
|
||||||
h5 This is a header 5
|
|
||||||
blockquote this is a very important quote from someone
|
|
||||||
.remark-highlight
|
|
||||||
pre.language-csharp
|
|
||||||
code.language-csharp > become -a "hacker" --with "this code block"
|
|
||||||
|
|
||||||
section.comments
|
|
||||||
a#comments-section
|
|
||||||
h2 Comments
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
doctype html
|
|
||||||
html(lang='en')
|
|
||||||
|
|
||||||
head
|
|
||||||
title Ben Ramey's Blog
|
|
||||||
|
|
||||||
body
|
|
||||||
include components/header.pug
|
|
||||||
include components/nav.pug
|
|
||||||
main
|
|
||||||
div(class='container')
|
|
||||||
article(class='page')
|
|
||||||
h1(class='page-title') This is a page title
|
|
||||||
|
|
||||||
include components/footer.pug
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
doctype html
|
|
||||||
html(lang='en')
|
|
||||||
|
|
||||||
head
|
|
||||||
title Ben Ramey's Blog
|
|
||||||
|
|
||||||
body
|
|
||||||
include components/header.pug
|
|
||||||
include components/nav.pug
|
|
||||||
main
|
|
||||||
div(class='container')
|
|
||||||
include components/post.pug
|
|
||||||
|
|
||||||
include components/footer.pug
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
$body-bg: #26282d;
|
|
||||||
$body-color: #ced5e2;
|
|
||||||
|
|
||||||
$link-color: lighten($body-color, 50%);
|
|
||||||
|
|
||||||
$font-size-base: 1rem;
|
|
||||||
$h1-font-size: $font-size-base * 2;
|
|
||||||
$h2-font-size: $font-size-base * 1.75;
|
|
||||||
$h3-font-size: $font-size-base * 1.5;
|
|
||||||
$h4-font-size: $font-size-base * 1.25;
|
|
||||||
$h5-font-size: $font-size-base * 1.15;
|
|
||||||
$h6-font-size: $font-size-base;
|
|
||||||
|
|
||||||
$pre-color: $body-color;
|
|
||||||
|
|
||||||
$border-color: lighten($body-bg, 20%);
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
@import "bootstrap-variables";
|
|
||||||
@import "bootstrap/scss/bootstrap";
|
|
||||||
@import "variables";
|
|
||||||
@import "prismjs/themes/prism-tomorrow.css";
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
color: lighten($body-color, 35%);
|
|
||||||
}
|
|
||||||
|
|
||||||
h2,
|
|
||||||
h3,
|
|
||||||
h4,
|
|
||||||
h5,
|
|
||||||
h6 {
|
|
||||||
color: lighten($body-color, 25%);
|
|
||||||
}
|
|
||||||
|
|
||||||
h1,
|
|
||||||
h2,
|
|
||||||
h3 {
|
|
||||||
a {
|
|
||||||
color: inherit;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
header.primary {
|
|
||||||
padding: 10px 0;
|
|
||||||
margin-top: 20px;
|
|
||||||
background-color: lighten($body-bg, 10%);
|
|
||||||
border-width: 1px 0;
|
|
||||||
border-style: solid;
|
|
||||||
border-color: $border-color;
|
|
||||||
|
|
||||||
img {
|
|
||||||
@include border-radius(50%);
|
|
||||||
width: 40px;
|
|
||||||
height: 40px;
|
|
||||||
}
|
|
||||||
small {
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
nav.main {
|
|
||||||
margin-bottom: 20px;
|
|
||||||
|
|
||||||
a {
|
|
||||||
display: block;
|
|
||||||
padding: 5px;
|
|
||||||
margin: 0 10px;
|
|
||||||
text-transform: lowercase;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
nav.pagination {
|
|
||||||
a,
|
|
||||||
span {
|
|
||||||
display: block;
|
|
||||||
margin: 0 20px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
section {
|
|
||||||
margin: 40px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
article {
|
|
||||||
&.post {
|
|
||||||
img {
|
|
||||||
display: block;
|
|
||||||
margin: 5px 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
div.post-info {
|
|
||||||
nav {
|
|
||||||
display: flex;
|
|
||||||
justify-content: flex-start;
|
|
||||||
}
|
|
||||||
time,
|
|
||||||
nav a {
|
|
||||||
display: block;
|
|
||||||
margin: 10px 20px 10px 0;
|
|
||||||
}
|
|
||||||
nav span {
|
|
||||||
display: block;
|
|
||||||
margin: 10px 5px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.remark-highlight {
|
|
||||||
@include border-radius();
|
|
||||||
padding: 10px;
|
|
||||||
border: 1px solid $border-color;
|
|
||||||
background-color: lighten($body-bg, 5%);
|
|
||||||
color: lighten($body-color, 5%);
|
|
||||||
margin: 10px 0;
|
|
||||||
|
|
||||||
pre {
|
|
||||||
margin: 0;
|
|
||||||
background-color: inherit;
|
|
||||||
padding: 0;
|
|
||||||
font-size: 87.5%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
code {
|
|
||||||
color: $code-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
blockquote {
|
|
||||||
display: block;
|
|
||||||
@include border-radius();
|
|
||||||
padding: 10px 20px;
|
|
||||||
background-color: lighten($body-bg, 5%);
|
|
||||||
color: lighten($body-color, 5%);
|
|
||||||
|
|
||||||
p {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
section.comments {
|
|
||||||
min-height: 500px;
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
$code-color: #f8c555;
|
|
||||||
@@ -1,70 +0,0 @@
|
|||||||
const path = require("path");
|
|
||||||
const HtmlWebpackPlugin = require("html-webpack-plugin");
|
|
||||||
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
|
||||||
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");
|
|
||||||
const CopyPlugin = require("copy-webpack-plugin");
|
|
||||||
|
|
||||||
module.exports = (env) => {
|
|
||||||
const outputDir = path.resolve(__dirname, "build");
|
|
||||||
return {
|
|
||||||
mode: env.production ? "production" : "development",
|
|
||||||
entry: {
|
|
||||||
styles: "./src/scss/styles.scss",
|
|
||||||
},
|
|
||||||
output: {
|
|
||||||
path: outputDir,
|
|
||||||
clean: true,
|
|
||||||
publicPath: "/",
|
|
||||||
},
|
|
||||||
module: {
|
|
||||||
rules: [
|
|
||||||
{
|
|
||||||
test: /.pug$/i,
|
|
||||||
loader: "pug-loader",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
test: /.scss$/i,
|
|
||||||
use: [
|
|
||||||
MiniCssExtractPlugin.loader,
|
|
||||||
"css-loader",
|
|
||||||
"sass-loader",
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
plugins: [
|
|
||||||
new HtmlWebpackPlugin({
|
|
||||||
template: "src/index.pug",
|
|
||||||
favicon: "src/assets/favicon.ico",
|
|
||||||
}),
|
|
||||||
new HtmlWebpackPlugin({
|
|
||||||
template: "src/post.pug",
|
|
||||||
filename: "post.html",
|
|
||||||
}),
|
|
||||||
new HtmlWebpackPlugin({
|
|
||||||
template: "src/404.pug",
|
|
||||||
filename: "404.html",
|
|
||||||
}),
|
|
||||||
new HtmlWebpackPlugin({
|
|
||||||
template: "src/archive.pug",
|
|
||||||
filename: "archive.html",
|
|
||||||
}),
|
|
||||||
new MiniCssExtractPlugin(),
|
|
||||||
new CopyPlugin({
|
|
||||||
patterns: [
|
|
||||||
{ from: "src/assets/*", to: `${outputDir}/assets` },
|
|
||||||
],
|
|
||||||
}),
|
|
||||||
...(env.production ? [] : []),
|
|
||||||
],
|
|
||||||
optimization: {
|
|
||||||
minimizer: [new CssMinimizerPlugin()],
|
|
||||||
},
|
|
||||||
devtool: "inline-source-map",
|
|
||||||
devServer: {
|
|
||||||
static: {
|
|
||||||
directory: outputDir,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
Before Width: | Height: | Size: 15 KiB |
@@ -1,8 +0,0 @@
|
|||||||
/******/ (() => { // webpackBootstrap
|
|
||||||
/******/ "use strict";
|
|
||||||
var __webpack_exports__ = {};
|
|
||||||
// extracted by mini-css-extract-plugin
|
|
||||||
|
|
||||||
/******/ })()
|
|
||||||
;
|
|
||||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3R5bGVzLmpzIiwibWFwcGluZ3MiOiI7OztBQUFBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vb3JjaGFyZGNvcmUuYmVucmFtZXl0aGVtZS8uL3NyYy9zY3NzL3N0eWxlcy5zY3NzPzU3ZWEiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luXG5leHBvcnQge307Il0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9
|
|
||||||