Compare commits

...

5 Commits

Author SHA1 Message Date
202c7014a1 remove log line 2025-12-28 12:42:43 -08:00
42dbf5e31d fix canonical links 2025-12-28 12:41:43 -08:00
5ec64cfda7 auto populate nav and footer 2025-12-28 12:41:27 -08:00
09b1d2975b rename css/ -> styles/ 2025-12-28 12:40:51 -08:00
59b14a842c more consistent nav structure 2025-12-28 11:56:30 -08:00
8 changed files with 89 additions and 72 deletions

View File

@ -6,26 +6,28 @@
<meta charset="utf-8"> <meta charset="utf-8">
<!-- Meta --> <!-- Meta -->
<link rel="icon" type="image/x-icon" href="/favicon.ico"> <link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="canonical" href="/" /> <link rel="canonical" href="/2025/solstice/" />
<meta name="description" content="Solstice Market at the Beall Greenhouses" /> <meta name="description" content="Solstice Market at the Beall Greenhouses" />
<meta name="robots" content="index,follow" /> <meta name="robots" content="index,follow" />
<meta property="og:title" content="Solstice Market at the Beall Greenhouses" /> <meta property="og:title" content="Solstice Market at the Beall Greenhouses" />
<meta property="og:type" content="article" /> <meta property="og:type" content="article" />
<meta property="og:url" content="/" /> <meta property="og:url" content="/2025/solstice/" />
<meta property="og:description" content="Solstice Market at the Beall Greenhouses" /> <meta property="og:description" content="Solstice Market at the Beall Greenhouses" />
<meta property="og:image" content="/img/logo-light.png" /> <meta property="og:image" content="/img/logo-light.png" />
<meta property="og:image:alt" content="Linework icon depicting a sunrise or sunset with two clouds, in a blue and orange color scheme" /> <meta property="og:image:alt" content="Linework icon depicting a sunrise or sunset with two clouds, in a blue and orange color scheme" />
<!-- JS -->
<script src="/scripts/nav.js" defer></script>
<!-- CSS --> <!-- CSS -->
<link rel="stylesheet" href="/css/main.css"> <link rel="stylesheet" href="/styles/main.css">
<link rel="stylesheet" href="/css/nav.css"> <link rel="stylesheet" href="/styles/nav.css">
<link rel="stylesheet" href="/css/artist.css"> <link rel="stylesheet" href="/styles/artist.css">
</head> </head>
<body> <body>
<div id="content"> <div id="content">
<header> <header>
<nav> <nav id="top-nav"><!-- auto-populated by nav.js --></nav>
<a href="/">↩ back home</a>
</nav>
<img id="logo-dark" src="/img/logo-dark.png" alt="Linework icon depicting a sunrise or sunset with two clouds, in a blue and orange color scheme"> <img id="logo-dark" src="/img/logo-dark.png" alt="Linework icon depicting a sunrise or sunset with two clouds, in a blue and orange color scheme">
<img id="logo-light" src="/img/logo-light.png" alt="Linework icon depicting a sunrise or sunset with two clouds, in a blue and orange color scheme"> <img id="logo-light" src="/img/logo-light.png" alt="Linework icon depicting a sunrise or sunset with two clouds, in a blue and orange color scheme">
@ -121,21 +123,6 @@
</div> </div>
</main> </main>
</div> </div>
<footer> <footer id="footer"><!-- auto-populated by nav.js --></footer>
<div id="contacts">
<p>
Website questions or feedback?
<a href="mailto:lee.cattarin@gmail.com?cc=montanahawke@gmail.com&subject=Beall%20Greenhouses%20Market">
email Lee
</a>
</p>
<p>Market questions?
<a href="mailto:montanahawke@gmail.com?subject=Beall%20Greenhouses%20Market">
email Hawke
</a>
</p>
</div>
<p>brought to you in 2025</p>
</footer>
</body> </body>
</html> </html>

View File

@ -6,27 +6,29 @@
<meta charset="utf-8"> <meta charset="utf-8">
<!-- Meta --> <!-- Meta -->
<link rel="icon" type="image/x-icon" href="/favicon.ico"> <link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="canonical" href="/" /> <link rel="canonical" href="/directory/" />
<meta name="description" content="Directory | Markets at the Beall Greenhouses" /> <meta name="description" content="Directory | Markets at the Beall Greenhouses" />
<meta name="robots" content="index,follow" /> <meta name="robots" content="index,follow" />
<meta property="og:title" content="Directory | Markets at the Beall Greenhouses" /> <meta property="og:title" content="Directory | Markets at the Beall Greenhouses" />
<meta property="og:type" content="article" /> <meta property="og:type" content="article" />
<meta property="og:url" content="/" /> <meta property="og:url" content="/directory/" />
<meta property="og:description" content="Directory | Markets at the Beall Greenhouses" /> <meta property="og:description" content="Directory | Markets at the Beall Greenhouses" />
<meta property="og:image" content="/img/logo-light.png" /> <meta property="og:image" content="/img/logo-light.png" />
<meta property="og:image:alt" content="Linework icon depicting a sunrise or sunset with two clouds, in a blue and orange color scheme" /> <meta property="og:image:alt" content="Linework icon depicting a sunrise or sunset with two clouds, in a blue and orange color scheme" />
<!-- JS -->
<script src="/scripts/nav.js" defer></script>
<!-- CSS --> <!-- CSS -->
<link rel="stylesheet" href="/css/main.css"> <link rel="stylesheet" href="/styles/main.css">
<link rel="stylesheet" href="/css/nav.css"> <link rel="stylesheet" href="/styles/nav.css">
<link rel="stylesheet" href="/css/directory.css"> <link rel="stylesheet" href="/styles/directory.css">
<link rel="stylesheet" href="/css/artist.css"> <link rel="stylesheet" href="/styles/artist.css">
</head> </head>
<body> <body>
<div id="content"> <div id="content">
<header> <header>
<nav> <nav id="top-nav"><!-- auto-populated by nav.js --></nav>
<a href="/">↩ back home</a>
</nav>
<img id="logo-dark" src="/img/logo-dark.png" alt="Linework icon depicting a sunrise or sunset with two clouds, in a blue and orange color scheme"> <img id="logo-dark" src="/img/logo-dark.png" alt="Linework icon depicting a sunrise or sunset with two clouds, in a blue and orange color scheme">
<img id="logo-light" src="/img/logo-light.png" alt="Linework icon depicting a sunrise or sunset with two clouds, in a blue and orange color scheme"> <img id="logo-light" src="/img/logo-light.png" alt="Linework icon depicting a sunrise or sunset with two clouds, in a blue and orange color scheme">
@ -45,21 +47,6 @@
</main> </main>
</div> </div>
<footer> <footer id="footer"><!-- auto-populated by nav.js --></footer>
<div id="contacts">
<p>
Website questions or feedback?
<a href="mailto:lee.cattarin@gmail.com?cc=montanahawke@gmail.com&subject=Beall%20Greenhouses%20Market">
email Lee
</a>
</p>
<p>Market questions?
<a href="mailto:montanahawke@gmail.com?subject=Beall%20Greenhouses%20Market">
email Hawke
</a>
</p>
</div>
<p>brought to you in 2026</p>
</footer>
</body> </body>
</html> </html>

View File

@ -15,16 +15,19 @@
<meta property="og:description" content="Markets at the Beall Greenhouses" /> <meta property="og:description" content="Markets at the Beall Greenhouses" />
<meta property="og:image" content="/img/logo-light.png" /> <meta property="og:image" content="/img/logo-light.png" />
<meta property="og:image:alt" content="Linework icon depicting a sunrise or sunset with two clouds, in a blue and orange color scheme" /> <meta property="og:image:alt" content="Linework icon depicting a sunrise or sunset with two clouds, in a blue and orange color scheme" />
<!-- JS -->
<script src="/scripts/nav.js" defer></script>
<!-- CSS --> <!-- CSS -->
<link rel="stylesheet" href="/css/main.css"> <link rel="stylesheet" href="/styles/main.css">
<link rel="stylesheet" href="/css/nav.css"> <link rel="stylesheet" href="/styles/nav.css">
<link rel="stylesheet" href="/css/artist.css"> <link rel="stylesheet" href="/styles/artist.css">
</head> </head>
<body> <body>
<div id="content"> <div id="content">
<header> <header>
<nav> <nav id="top-nav">
<a id="directory-link" href="/directory">🧺 past markets</a>
</nav> </nav>
<img id="logo-dark" src="/img/logo-dark.png" alt="Linework icon depicting a sunrise or sunset with two clouds, in a blue and orange color scheme"> <img id="logo-dark" src="/img/logo-dark.png" alt="Linework icon depicting a sunrise or sunset with two clouds, in a blue and orange color scheme">
@ -37,21 +40,6 @@
<p>We've just completed a successful <a href="/2025/solstice">Solstice 2025</a> market. Stay tuned for more!</p> <p>We've just completed a successful <a href="/2025/solstice">Solstice 2025</a> market. Stay tuned for more!</p>
</main> </main>
</div> </div>
<footer> <footer id="footer"><!-- auto-populated by nav.js --></footer>
<div id="contacts">
<p>
Website questions or feedback?
<a href="mailto:lee.cattarin@gmail.com?cc=montanahawke@gmail.com&subject=Beall%20Greenhouses%20Market">
email Lee
</a>
</p>
<p>Market questions?
<a href="mailto:montanahawke@gmail.com?subject=Beall%20Greenhouses%20Market">
email Hawke
</a>
</p>
</div>
<p>brought to you in 2026</p>
</footer>
</body> </body>
</html> </html>

53
scripts/nav.js Normal file
View File

@ -0,0 +1,53 @@
/* Top nav */
const navItems = [
{
href: "/",
name: "↩ back home"
},
{
href: "/directory/",
name: "🧺 all markets"
}
];
const populateNav = function() {
let nav = document.getElementById("top-nav");
let path = window.location.pathname;
for (const item of navItems) {
let a = document.createElement("a");
a.href = item.href;
a.innerHTML = item.name;
if (item.href === path) a.id = "current-page";
nav.append(a);
}
}
populateNav();
/* Footer */
const footerHTML = `
<div id="contacts">
<p>
Website questions or feedback?
<a href="mailto:lee.cattarin@gmail.com?cc=montanahawke@gmail.com&subject=Beall%20Greenhouses%20Market">
email Lee
</a>
</p>
<p>Market questions?
<a href="mailto:montanahawke@gmail.com?subject=Beall%20Greenhouses%20Market">
email Hawke
</a>
</p>
</div>
<p>brought to you in 2025</p>
`
const populateFooter = function() {
let footer = document.getElementById("footer");
footer.innerHTML = footerHTML;
}
populateFooter();

View File

@ -1,6 +1,8 @@
/* top nav */ /* top nav */
nav { nav {
margin: 0 auto 1.5rem; margin: 0 auto 1.5rem;
display: flex;
justify-content: space-between;
} }
nav a { nav a {
@ -17,8 +19,8 @@ nav a {
} }
} }
nav:has(#directory-link) { #current-page {
text-align: right; visibility: hidden;
} }
header img { header img {