main
HerrHase 1 year ago
parent 4045ce5e28
commit 0e7da0ba39

119
.gitignore vendored

@ -0,0 +1,119 @@
# ---> Node
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# Snowpack dependency directory (https://snowpack.dev/)
web_modules/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
.env.test
.env.production
# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache
# Next.js build output
.next
out
# Nuxt.js build / generate output
.nuxt
dist
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# TernJS port file
.tern-port
# Stores VSCode versions used for testing VSCode extensions
.vscode-test
# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

@ -1,6 +1,6 @@
MIT License
Copyright (c) <year> <copyright holders>
Copyright (c) 2022 Björn Hase <me@herr-hase.wtf>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

@ -0,0 +1,6 @@
---
title: Farin Frin
view: post.njk
date_published: 2022-12-08 12:12
excerpt: "Fingerstache vegan artisan, disrupt tbh sus salvia iceland lo-fi. Man braid hot chicken schlitz coloring book, snackwave biodiesel wolf chillwave bodega boys literally bitters."
---

@ -0,0 +1,6 @@
---
title: Hipaa Mofa Cold
view: post.njk
date_published: 2022-12-02 19:22
excerpt: " Same cliche sustainable migas, copper mug polaroid cloud bread franzen JOMO microdosing sriracha. Vinyl tilde cred, blue bottle humblebrag offal pop-up pinterest photo booth bespoke bodega boys four dollar toast wayfarers."
---

@ -0,0 +1,4 @@
---
title: Imprint
view: page.njk
---

@ -0,0 +1,4 @@
---
title: A blog
view: blog.njk
---

@ -0,0 +1,4 @@
title: "test"
language: "en"
domain: "test.lan"
https: true

17326
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -0,0 +1,15 @@
{
"private": true,
"devDependencies": {
"@helpers/siteomat-webpack-plugin": "^0.2.0",
"cross-env": "^7.0.3",
"laravel-mix": "^6.0.34",
"laravel-mix-purgecss": "^6.0.0",
"sass": "^1.42.1",
"sass-loader": "^12.2.0",
"svg-spritemap-webpack-plugin": "^4.3.3"
},
"dependencies": {
"@tiny-components/plain-ui": "^0.5.0"
}
}

@ -0,0 +1,83 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>
test | Farin Frin
</title>
<meta name="robots" content="index" />
<link href="true://test.lan/faridn-frin.html" rel="canonical">
<link rel="alternate" href="true://test.lan/faridn-frin.html" hreflang="en">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="/css/styles.css" rel="stylesheet" type="text/css">
</head>
<body class="site-body">
<header class="site-header">
<div class="bar">
<div class="bar__start">
<h1 class="site-header__title">
Farin Frin
</h1>
</div>
</div>
</header>
<main class="site-main">
<div class="container">
<div class="grid">
<div class="col-12">
</div>
</div>
</div>
</main>
<footer class="site-footer">
<div class="container">
<div class="grid">
<div class="col-12">
MIT License
</div>
</div>
</div>
</footer>
<script src="/js/app.js"></script>
</body>
</html>

@ -0,0 +1,83 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>
test | Hipaa Mofa Cold
</title>
<meta name="robots" content="index" />
<link href="true://test.lan/hipaa-mofa-cold.html" rel="canonical">
<link rel="alternate" href="true://test.lan/hipaa-mofa-cold.html" hreflang="en">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="/css/styles.css" rel="stylesheet" type="text/css">
</head>
<body class="site-body">
<header class="site-header">
<div class="bar">
<div class="bar__start">
<h1 class="site-header__title">
Hipaa Mofa Cold
</h1>
</div>
</div>
</header>
<main class="site-main">
<div class="container">
<div class="grid">
<div class="col-12">
</div>
</div>
</div>
</main>
<footer class="site-footer">
<div class="container">
<div class="grid">
<div class="col-12">
MIT License
</div>
</div>
</div>
</footer>
<script src="/js/app.js"></script>
</body>
</html>

@ -0,0 +1,83 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>
test | Imprint
</title>
<meta name="robots" content="index" />
<link href="true://test.lan/imprint.html" rel="canonical">
<link rel="alternate" href="true://test.lan/imprint.html" hreflang="en">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="/css/styles.css" rel="stylesheet" type="text/css">
</head>
<body class="site-body">
<header class="site-header">
<div class="bar">
<div class="bar__start">
<h1 class="site-header__title">
Imprint
</h1>
</div>
</div>
</header>
<main class="site-main">
<div class="container">
<div class="grid">
<div class="col-12">
</div>
</div>
</div>
</main>
<footer class="site-footer">
<div class="container">
<div class="grid">
<div class="col-12">
MIT License
</div>
</div>
</div>
</footer>
<script src="/js/app.js"></script>
</body>
</html>

@ -0,0 +1,119 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>
test | A blog
</title>
<meta name="robots" content="index" />
<link href="true://test.lan/index.html" rel="canonical">
<link rel="alternate" href="true://test.lan/index.html" hreflang="en">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="/css/styles.css" rel="stylesheet" type="text/css">
</head>
<body class="site-body">
<header class="site-header">
<div class="bar">
<div class="bar__start">
<h1 class="site-header__title">
A blog
</h1>
</div>
</div>
</header>
<main class="site-main">
<div class="container">
<div class="grid">
<div class="col-12">
<a class="post" href="/faridn-frin.html">
<h2 class="post__title">
Farin Frin
</h2>
<time>
2022-12-08 12:12
</time>
<div class="post__excerpt">
Fingerstache vegan artisan, disrupt tbh sus salvia iceland lo-fi. Man braid hot chicken schlitz coloring book, snackwave biodiesel wolf chillwave bodega boys literally bitters.
</div>
</a>
<a class="post" href="/hipaa-mofa-cold.html">
<h2 class="post__title">
Hipaa Mofa Cold
</h2>
<time>
2022-12-02 19:22
</time>
<div class="post__excerpt">
Same cliche sustainable migas, copper mug polaroid cloud bread franzen JOMO microdosing sriracha. Vinyl tilde cred, blue bottle humblebrag offal pop-up pinterest photo booth bespoke bodega boys four dollar toast wayfarers.
</div>
</a>
</div>
</div>
</div>
</main>
<footer class="site-footer">
<div class="container">
<div class="grid">
<div class="col-12">
MIT License
</div>
</div>
</div>
</footer>
<script src="/js/app.js"></script>
</body>
</html>

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://test.lan/faridn-frin.html</loc>
<lastmod>2023-01-02T12:18:38+01:00</lastmod>
</url>
<url>
<loc>https://test.lan/hipaa-mofa-cold.html</loc>
<lastmod>2023-01-02T12:18:38+01:00</lastmod>
</url>
<url>
<loc>https://test.lan/imprint.html</loc>
<lastmod>2023-01-02T12:18:38+01:00</lastmod>
</url>
<url>
<loc>https://test.lan/index.html</loc>
<lastmod>2023-01-02T12:18:38+01:00</lastmod>
</url>
</urlset>

@ -0,0 +1,37 @@
{% extends('layout.njk') %}
{% block main %}
{% set posts = pageQuery.find({ parent: '/', deep: 0, orderBy: [ '-date_published' ], limit: 50, filter: { view: { _eq: 'post.njk' } } }) %}
<div class="">
<blog-posts></blog-posts>
</div>
<noscript>
{% for post in posts %}
<a class="post" href="{{ post.path }}">
<h2 class="post__title">
{{ post.title }}
</h2>
<time>
{{ post.date_published }}
</time>
{% if post.excerpt %}
<div class="post__excerpt">
{{ post.excerpt }}
</div>
{% endif %}
</a>
{% endfor %}
</noscript>
{% endblock %}
{% block addFooter %}
<script>
</script>
{% endblock %}

@ -0,0 +1,30 @@
{# handle meta in templates #}
{% macro meta(page, site) %}
{% if (page.meta) %}
{% set hasCannocial = false %}
{% for key, content in page.meta %}
<meta name="{{ key }}" content="{{ content }}" />
{# check for index in robots if set page has canonical #}
{% if (key === 'robots' and content.indexOf('index') !== -1 and content.indexOf('noindex') === -1) %}
{% set hasCannocial = true %}
{% endif %}
{% endfor %}
{# check if page has canonical #}
{% if (hasCannocial) %}
{% set http = 'http' %}
{% if (site.https) %}
{% set http = site.https %}
{% endif %}
<link href="{{ http }}://{{ site.domain }}{{ page.path }}" rel="canonical">
<link rel="alternate" href="{{ http }}://{{ site.domain }}{{ page.path }}" hreflang="{{ site.language }}">
{% endif %}
{% endif %}
{% endmacro %}

@ -0,0 +1,54 @@
{% import "helpers/meta.njk" as helpers %}
<!doctype html>
<html lang="{{ site.language }}">
<head>
<meta charset="utf-8">
<title>
{{ site.title }} | {{ page.title }}
</title>
{{ helpers.meta(page, site) }}
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="{{ asset('/css/styles.css') }}" rel="stylesheet" type="text/css">
{% block addHead %}{% endblock %}
</head>
<body class="site-body">
<header class="site-header">
<div class="bar">
<div class="bar__start">
<h1 class="site-header__title">
{{ page.title }}
</h1>
</div>
</div>
</header>
<main class="site-main">
<div class="container">
<div class="grid">
<div class="col-12">
{% block main %}{% endblock %}
</div>
</div>
</div>
</main>
<footer class="site-footer">
<div class="container">
<div class="grid">
<div class="col-12">
MIT License
</div>
</div>
</div>
</footer>
<script src="{{ asset('/js/app.js') }}"></script>
{% block addFooter %}{% endblock %}
</body>
</html>

@ -0,0 +1,5 @@
{% extends('layout.njk') %}
{% block main %}
{% endblock %}

@ -0,0 +1,5 @@
{% extends('layout.njk') %}
{% block main %}
{{ page.content | safe }}
{% endblock %}

@ -0,0 +1,27 @@
const mix = require('laravel-mix')
const SiteomatWebpackPlugin = require('@helpers/siteomat-webpack-plugin')
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass
| file for the application as well as bundling up all the JS files.
|
*/
mix.webpackConfig({
plugins: [
new SiteomatWebpackPlugin(
'./data',
'./views',
{
'minifyHtml': false
}
)
]
})
mix.setPublicPath('./public')
Loading…
Cancel
Save