generated from inherentlee/11ty
Compare commits
43 Commits
88c2378284
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 6cda4aad5f | |||
| d9300d47ce | |||
| 9a8ba2107b | |||
| 47b812fa98 | |||
| 63895e0ac4 | |||
| beafa18c20 | |||
| d0d9725807 | |||
| 71eec20b60 | |||
| 8d25ac3bb2 | |||
| 864a427107 | |||
| 285ce4d0f9 | |||
| 9e79d40d73 | |||
| 6fc188282e | |||
| ad0c7fc881 | |||
| 1e9c3c037d | |||
| 52dedcb615 | |||
| 55bf306a4a | |||
| 115a92024c | |||
| 64a386c8da | |||
| 98589550e3 | |||
| 857f282740 | |||
| 116565af6b | |||
| 29cff6f7ae | |||
| 60f41e1899 | |||
| 67cbd08d80 | |||
| 0e9e479f9b | |||
| b58de8afa8 | |||
| 1f124d71a1 | |||
| 95dbf3158c | |||
| 0a16519645 | |||
| 1ded73bef9 | |||
| e742442f10 | |||
| 725ff3b000 | |||
| f0c9c354c1 | |||
| 9095f5b0e2 | |||
| b3bd4b7fc0 | |||
| 2eb7ddf050 | |||
| 101aa3e785 | |||
| fb70be6fd1 | |||
| d3b3cc1628 | |||
| 68dad89eb8 | |||
| 06ced1e8c8 | |||
| 2dca1a6410 |
18
.drone.yml
18
.drone.yml
@ -3,19 +3,23 @@ type: docker
|
|||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: build
|
||||||
image: node:current
|
image: node:current
|
||||||
environment:
|
environment:
|
||||||
|
REPOSITORY: mattrbld-site
|
||||||
|
GIT_USER: inherentlee
|
||||||
GIT_TOKEN:
|
GIT_TOKEN:
|
||||||
from_secret: GIT_TOKEN
|
from_secret: GIT_TOKEN
|
||||||
commands:
|
commands:
|
||||||
|
- git config credential.helper '!f() { echo username=$GIT_USER; echo "password=$GIT_TOKEN"; };f'
|
||||||
|
- git submodule update --remote --init --merge
|
||||||
- npm install
|
- npm install
|
||||||
- npm run build
|
- npm run build
|
||||||
- apt-get update && apt-get install -y rsync
|
- apt-get update && apt-get install -y rsync
|
||||||
- rsync -uav _site/ mattrbld-site
|
- rsync -uavh _site/ $REPOSITORY --delete --exclude .git
|
||||||
- cd mattrbld-site
|
- cd $REPOSITORY
|
||||||
- git config --global --add safe.directory /drone/src/mattrbld-site
|
- git checkout main
|
||||||
- git commit -am "update site at $(date '+%Y-%m-%d %H:%M:%S')"
|
- git config --global --add safe.directory /drone/src/$REPOSITORY
|
||||||
- git remote set-url origin https://heckin.technology/inherentlee/mattrbld-site.git
|
- git add -A
|
||||||
- git config credential.helper '!f() { echo username=inherentlee; echo "password=$GIT_TOKEN"; };f'
|
- git commit -m "drone build $(TZ=':America/Los_Angeles' date)"
|
||||||
- git push
|
- git push
|
||||||
|
|||||||
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -1,3 +1,4 @@
|
|||||||
[submodule "mattrbld-site"]
|
[submodule "mattrbld-site"]
|
||||||
path = mattrbld-site
|
path = mattrbld-site
|
||||||
url = ssh://git@heckin.technology:2222/inherentlee/mattrbld-site.git
|
url = https://heckin.technology/inherentlee/mattrbld-site.git
|
||||||
|
update = merge
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
"autoquotes": null,
|
"autoquotes": null,
|
||||||
"brandColors": [],
|
"brandColors": [],
|
||||||
"corsProxy": "/corsprox",
|
"corsProxy": "/corsprox",
|
||||||
"name": "mattrbld-test",
|
"name": "mattrbld",
|
||||||
"sidebar": [
|
"sidebar": [
|
||||||
{
|
{
|
||||||
"label": "Dashboard",
|
"label": "Dashboard",
|
||||||
|
|||||||
BIN
.mattrbld/users/lee-cattarin-gmail-com.jpg
Normal file
BIN
.mattrbld/users/lee-cattarin-gmail-com.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.6 KiB |
2
LICENSE
2
LICENSE
@ -1,4 +1,4 @@
|
|||||||
<name of project>
|
mattrbld test
|
||||||
Copyright (C) 2026 Lee Cattarin
|
Copyright (C) 2026 Lee Cattarin
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@ -1,3 +1 @@
|
|||||||
# 11ty Template
|
# mattrbld test
|
||||||
|
|
||||||
Template repository for my 11ty projects.
|
|
||||||
|
|||||||
@ -27,6 +27,8 @@
|
|||||||
|
|
||||||
<!-- CSS -->
|
<!-- CSS -->
|
||||||
<style>{% include "css/main.css" %}</style>
|
<style>{% include "css/main.css" %}</style>
|
||||||
|
<style>{% include "css/print.css" %}</style>
|
||||||
|
<style>{% include "css/nav.css" %}</style>
|
||||||
<style>{% getBundle "css" %}</style>
|
<style>{% getBundle "css" %}</style>
|
||||||
|
|
||||||
{#
|
{#
|
||||||
|
|||||||
@ -2,13 +2,11 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
{% include "head.njk" %}
|
{% include "head.njk" %}
|
||||||
<body>
|
<body>
|
||||||
<div id="content">
|
|
||||||
{% include "header.njk" %}
|
{% include "header.njk" %}
|
||||||
|
|
||||||
<main id="main">
|
<main id="main">
|
||||||
{{ content | safe }}
|
{{ content | safe }}
|
||||||
</main>
|
</main>
|
||||||
</div>
|
|
||||||
|
|
||||||
{% include "footer.njk" %}
|
{% include "footer.njk" %}
|
||||||
<!-- This page `{{ page.url }}` was built on {% currentBuildDate %} -->
|
<!-- This page `{{ page.url }}` was built on {% currentBuildDate %} -->
|
||||||
|
|||||||
@ -2,10 +2,12 @@
|
|||||||
layout: base.njk
|
layout: base.njk
|
||||||
---
|
---
|
||||||
|
|
||||||
<h1>{{ title }}</h1>
|
|
||||||
|
|
||||||
{% if hero %}
|
{% if hero %}
|
||||||
<img src="{{ hero.src }}" alt="{{ hero.alt }}">
|
<img class="hero" src="{{ hero.src }}" alt="{{ hero.alt }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{{ content | safe }}
|
<div id="content">
|
||||||
|
<h1>{{ title }}</h1>
|
||||||
|
|
||||||
|
{{ content | safe }}
|
||||||
|
</div>
|
||||||
|
|||||||
55
css/main.css
55
css/main.css
@ -1,5 +1,14 @@
|
|||||||
:root {
|
:root {
|
||||||
color-scheme: light dark;
|
color-scheme: light dark;
|
||||||
|
|
||||||
|
--color-light: #ddd;
|
||||||
|
--color-dark: #222;
|
||||||
|
--color-teal: #014d4e;
|
||||||
|
--color-pink: #ffb2d0;
|
||||||
|
|
||||||
|
--color-bg: light-dark(var(--color-light), var(--color-dark));
|
||||||
|
--color-text: light-dark(var(--color-dark), var(--color-light));
|
||||||
|
--color-accent: light-dark(var(--color-teal), var(--color-pink));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* numbered components are from https://www.joshwcomeau.com/css/custom-css-reset/ */
|
/* numbered components are from https://www.joshwcomeau.com/css/custom-css-reset/ */
|
||||||
@ -25,6 +34,27 @@ body {
|
|||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
/* 5. Improve text rendering */
|
/* 5. Improve text rendering */
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
|
color: var(--color-text);
|
||||||
|
background-color: var(--color-bg);
|
||||||
|
font-family: sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
#content {
|
||||||
|
width: 65%;
|
||||||
|
max-width: 1800px;
|
||||||
|
margin: 1rem auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 1100px) {
|
||||||
|
#content {
|
||||||
|
width: 85%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 650px) {
|
||||||
|
#content {
|
||||||
|
width: 92%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 6. Improve media defaults */
|
/* 6. Improve media defaults */
|
||||||
@ -32,6 +62,7 @@ img, picture, video, canvas, svg {
|
|||||||
display: block;
|
display: block;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 7. Inherit fonts for form controls */
|
/* 7. Inherit fonts for form controls */
|
||||||
@ -58,3 +89,27 @@ h1, h2, h3, h4, h5, h6 {
|
|||||||
#root, #__next {
|
#root, #__next {
|
||||||
isolation: isolate;
|
isolation: isolate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Basic elements */
|
||||||
|
h1, h2, h3, h4, h5, h6 {
|
||||||
|
font-family: serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1, h2, h3, h4, h5, h6,
|
||||||
|
a {
|
||||||
|
color: var(--color-accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
padding: .1rem;
|
||||||
|
border-radius: .05rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:focus-visible {
|
||||||
|
outline: solid var(--color-accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero {
|
||||||
|
aspect-ratio: 32 / 9;
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
|||||||
34
css/nav.css
Normal file
34
css/nav.css
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
/* Header, footer, nav */
|
||||||
|
#skip {
|
||||||
|
background-color: var(--color-bg);
|
||||||
|
position: absolute;
|
||||||
|
left: -999px;
|
||||||
|
top: -999px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#skip:focus-visible {
|
||||||
|
left: 10%;
|
||||||
|
top: 5%;
|
||||||
|
}
|
||||||
|
|
||||||
|
header a[aria-current="page"]::before,
|
||||||
|
footer a[aria-current="page"]::before {
|
||||||
|
content: "> " / "";
|
||||||
|
}
|
||||||
|
|
||||||
|
header a[aria-current="page"]::after,
|
||||||
|
footer a[aria-current="page"]::after {
|
||||||
|
content: " <" / "";
|
||||||
|
}
|
||||||
|
|
||||||
|
header h2 a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav ul {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
flex-flow: row wrap;
|
||||||
|
list-style: none;
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
23
css/print.css
Normal file
23
css/print.css
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
/* Print media */
|
||||||
|
@media print {
|
||||||
|
header,
|
||||||
|
footer,
|
||||||
|
nav {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: #fff;
|
||||||
|
width: 95vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
body,
|
||||||
|
h1, h2, h3, h4, h5,
|
||||||
|
a {
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
a::after {
|
||||||
|
content: " (" attr(href) ")";
|
||||||
|
}
|
||||||
|
}
|
||||||
Submodule mattrbld-site updated: 78650f17aa...591de23a22
9
src/thankyou.md
Normal file
9
src/thankyou.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
title: Thanks for contacting us!
|
||||||
|
hero:
|
||||||
|
src: /images/dscf-3866.JPG
|
||||||
|
alt: chickadee
|
||||||
|
title: null
|
||||||
|
___mb_schema: /.mattrbld/schemas/page.json
|
||||||
|
---
|
||||||
|
Thanks for filling out the contact form. We’ll be in touch in the next few days.
|
||||||
Reference in New Issue
Block a user