Skip to content

Commit

Permalink
chore: updates
Browse files Browse the repository at this point in the history
  • Loading branch information
johnfraney committed Jan 2, 2025
1 parent 2da1436 commit 25f8fd0
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 28 deletions.
3 changes: 2 additions & 1 deletion docs/content/assets/pico.yellow.min.css

Large diffs are not rendered by default.

30 changes: 7 additions & 23 deletions docs/content/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,18 @@ abstract = "A Python-powered static site generator with a focus on page speed an
datePublished = 2023-04-09
+++

# Blurry: A Python-powered static site generator

```shell
$ blurry build
. .
|-.| . ..-..-.. .
`-''-'-'' ' '-|
`-'
┏━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Markdown Plugins ┃ HTML Plugins ┃ Jinja Plugins ┃
┡━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ blur_blurry_name │ minify_html │ body_to_cards │
│ container │ │ headings │
│ punctuation │ │ url_path │
│ python_code │ │ blurry_image │
│ python_code_in_list │ │ │
└─────────────────────┴──────────────┴───────────────┘
Blurring 21 Markdown files and 5 other files
Markdown ━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━━━━━━━━━━ 67%
Other ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100%
```
# Blurry: A static site generator for SEO and page speed

<p style="text-align: center;">
<a href="/getting-started/quick-start/" class="right-arrow" role="button" rel="noreferrer">Get Started</a>
</p>

## What is Blurry?

Blurry is a static site generator with a terrible pun of a name: if you're generating static sight, you're making things Blurry.
Blurry is a static site generator, like [Hugo](https://gohugo.io) or [Pelican](https://getpelican.com/), with a terrible pun of a name: if you're generating static sight, you're making things Blurry.

Blurry brings the concept of schema-first development to static site generators.
Specifically, Blurry uses [Schema.org](https://schema.org/) schema type names as the names for its template files, and schema type properties as Markdown front matter to populate those templates.
Specifically, Blurry uses [Schema.org](https://schema.org/) schema type names as the names for its [template files](./templates/syntax.md), and schema type properties as [Markdown front matter](./content/markdown.md) to populate those templates.

## Goals

Expand Down
6 changes: 4 additions & 2 deletions docs/templates/WebSite.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ body main.container {
}
}
body main.container h1,
body main.container p {
body main.container h1 {
text-wrap:balance
}
body main.container h1 {
margin-bottom:calc(var(--pico-spacing) * 2)
}
main.container a[role="button"] {
font-size: 1.4em;
}
h1 {
max-width: 900px;
font-size: 3rem;
Expand Down
12 changes: 10 additions & 2 deletions docs/templates/base.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<html lang="en">

<head>
<link rel="preload" href="/assets/pico.yellow.min.css" as="style" />
<title>{% block title %}{% endblock %} | {{ sourceOrganization.name }}</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand All @@ -23,6 +24,12 @@
text-decoration: none;
}
.right-arrow::after {
content: "";
display: inline-block;
margin-left: 0.25em;
}
body>header>div.container>a {
align-self: center;
Expand Down Expand Up @@ -111,19 +118,20 @@ pre {
<script>
const documentationMenu = document.getElementById('documentation-menu')
const showMenuButton = document.getElementById('mobile-show-menu-button')
const openMenuClassName = 'is-open-on-mobile'
if (showMenuButton && documentationMenu) {
showMenuButton.addEventListener('click', (e) => {
e.preventDefault()
documentationMenu.classList.add('is-open-on-mobile')
documentationMenu.classList.add(openMenuClassName)
})
}
const closeMenuButton = document.getElementById('menu-close-button')
if (closeMenuButton) {
closeMenuButton.addEventListener('click', (e) => {
e.preventDefault()
documentationMenu.classList.remove('is-open-on-mobile')
documentationMenu.classList.remove(openMenuClassName)
})
}
</script>
Expand Down

0 comments on commit 25f8fd0

Please sign in to comment.