-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Website updates: main page (still draft) (#11)
* unleash the robots * Rework header and menus * better main page text
- Loading branch information
Showing
62 changed files
with
1,423 additions
and
535 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,8 @@ import resolveUrls from "lume/plugins/resolve_urls.ts"; | |
import sass from "lume/plugins/sass.ts"; | ||
import sitemap from "lume/plugins/sitemap.ts"; | ||
import slugify_urls from "lume/plugins/slugify_urls.ts"; | ||
import svgo from "lume/plugins/svgo.ts"; | ||
|
||
import toc from "https://deno.land/x/[email protected]/toc.ts"; | ||
|
||
import anchor from "npm:markdown-it-anchor"; | ||
|
@@ -61,6 +63,7 @@ site | |
})) | ||
.use(toc()) | ||
.use(slugify_urls({ | ||
extensions: [".html"], | ||
replace: { | ||
"&": "and", | ||
"@": "", | ||
|
@@ -152,6 +155,19 @@ function ignorePages(structure: Record<string, unknown>, path: string) { | |
}); | ||
} | ||
|
||
// Fixup attributes at build time if necessary | ||
site.preprocess(['.md'], (pages) => { | ||
for (const page of pages) { | ||
if (typeof page.data.content !== "string") { | ||
continue; | ||
} | ||
if (/^\/activity\/\d/.test(page.src.path)) { | ||
page.data.cssclasses = page.data.cssclasses || []; | ||
page.data.cssclasses.push('activity', 'has-aside'); | ||
} | ||
} | ||
}); | ||
|
||
site.preprocess([".html"], (filteredPages, allPages) => { | ||
for (const page of filteredPages) { | ||
// For foundation pages: | ||
|
@@ -177,7 +193,7 @@ site.preprocess([".html"], (filteredPages, allPages) => { | |
page.data.tags.push(keys[0]); | ||
} | ||
} else { | ||
console.error(`No metadata for ${page.src.path}`); | ||
// Skip any pages that don't have a corresponding entry in the foundation.yml file | ||
allPages.splice(allPages.indexOf(page), 1); | ||
} | ||
|
||
|
@@ -233,7 +249,7 @@ site.filter("postLock", (data: Record<string, unknown>) => { | |
if (data.lockReason) { | ||
result += `<span aria-label="locked">${svg.lock}</span> `; | ||
} | ||
return result ? `<span class="act-status-icon">${result}</span>` : '<span class="act-status-icon"></span>'; | ||
return result ? `<span class="act-status-icon">${result}</span>` : `<span class="act-status-icon">${svg.blank}</span>`; | ||
}); | ||
site.filter("testLock", (page: Page) => { | ||
return `<span class="act-status-icon"> | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
[ | ||
{ | ||
"draft": true, | ||
"name": "Hibernate", | ||
"logo": "https://raw.githubusercontent.com/hibernate/hibernate.org/production/images/hibernate-logo.svg", | ||
"wordmark": true, | ||
"description": "A powerful ORM framework for Java. Hibernate abstracts complex database interactions, simplifying data management and persistence in enterprise Java applications.", | ||
"link": "https://hibernate.org/" | ||
}, | ||
{ | ||
"name": "Jackson", | ||
"logo": "https://avatars.githubusercontent.com/u/382692?s=200&v=4", | ||
"wordmark": false, | ||
"description": "The go-to library for JSON processing in Java. Jackson offers fast and flexible parsing/generation of JSON for Java applications, enabling seamless data interchange.", | ||
"link": "https://github.com/FasterXML/jackson" | ||
}, | ||
{ | ||
"name": "J'Bang", | ||
"logo": "https://www.jbang.dev/assets/images/logo.png", | ||
"wordmark": true, | ||
"description": "Unlock Java's scripting potential. JBang makes it easy to run Java applications as scripts without the need for a project setup or build configuration. Ideal for quick experiments, prototypes, or utility scripts.", | ||
"link": "https://www.jbang.dev/" | ||
}, | ||
{ | ||
"name": "JReleaser", | ||
"logo": "https://jreleaser.org/images/jreleaser-duke.png", | ||
"wordmark": false, | ||
"description": "Automate your Java project releases with ease. JReleaser streamlines packaging and distribution to multiple platforms, integrating with Maven, Gradle, and more. Simplify your release process, from changelogs to deployment.", | ||
"link": "https://jreleaser.org/" | ||
}, | ||
{ | ||
"name": "Morphia", | ||
"logo": "https://github.com/MorphiaOrg/morphia-docs/blob/229de82b949a8bc21fa4ecc17a617f2726eb6f33/supplemental-ui/img/logo.png?raw=true", | ||
"wordmark": false, | ||
"description": "Bridge the gap between Java and MongoDB. Morphia provides a lightweight type-safe mapping library to simplify working with MongoDB documents using Java.", | ||
"link": "https://morphia.dev/" | ||
}, | ||
{ | ||
"draft": true, | ||
"name": "OpenRewrite", | ||
"logo": "https://avatars.githubusercontent.com/u/61478321?s=200&v=4", | ||
"wordmark": false, | ||
"description": "Automate the refactoring of your Java codebase. OpenRewrite offers scalable, safe, and idempotent code transformations to modernize and maintain your applications.", | ||
"link": "https://www.openrewrite.org/" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.