chore(fmt): add html formatting

This commit is contained in:
Timothy DeHerrera
2026-01-31 15:13:24 -07:00
parent e200e94583
commit 0d2c460f52
9 changed files with 101 additions and 125 deletions

View File

@@ -1,13 +1,17 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{{ title }} | {{ config.title }}</title>
<link rel="canonical" href="{{ base_url }}{{ page_path }}">
<link rel="alternate" type="application/atom+xml" title="Atom Feed" href="{{ base_url }}/feed.xml">
<link rel="stylesheet" href="{{ prefix }}/style.css">
<link rel="canonical" href="{{ base_url }}{{ page_path }}" />
<link
rel="alternate"
type="application/atom+xml"
title="Atom Feed"
href="{{ base_url }}/feed.xml"
/>
<link rel="stylesheet" href="{{ prefix }}/style.css" />
</head>
<body>
@@ -17,12 +21,9 @@
<a href="{{ prefix }}{{ item.path }}">{{ item.label }}</a>
{% endfor %}
</nav>
<main>
{% block content %}{% endblock content %}
</main>
<main>{% block content %}{% endblock content %}</main>
<footer>
<p>© {{ config.author }}</p>
</footer>
</body>
</html>

View File

@@ -1,13 +1,9 @@
{% extends "base.html" %}
{% block content %}
{% extends "base.html" %} {% block content %}
<article>
<h1>{{ page.title }}</h1>
{% if page.description %}
<p class="description">{{ page.description }}</p>
{% endif %}
<section class="content">
{{ content | safe }}
</section>
<section class="content">{{ content | safe }}</section>
</article>
{% endblock content %}

View File

@@ -1,16 +1,12 @@
{% extends "base.html" %}
{% block content %}
{% extends "base.html" %} {% block content %}
<article class="post">
<header>
<h1>{{ page.title }}</h1>
{% if page.date %}
<time class="date">{{ page.date }}</time>
{% endif %}
{% if page.description %}
{% endif %} {% if page.description %}
<p class="description">{{ page.description }}</p>
{% endif %}
{% if page.tags %}
{% endif %} {% if page.tags %}
<ul class="tags">
{% for tag in page.tags %}
<li><a href="{{ prefix }}/tags/{{ tag }}.html">{{ tag }}</a></li>
@@ -18,8 +14,6 @@
</ul>
{% endif %}
</header>
<section class="content">
{{ content | safe }}
</section>
<section class="content">{{ content | safe }}</section>
</article>
{% endblock content %}

View File

@@ -1,13 +1,9 @@
{% extends "base.html" %}
{% block content %}
{% extends "base.html" %} {% block content %}
<section class="hero">
<h1>{{ page.title }}</h1>
{% if page.description %}
<p class="tagline">{{ page.description }}</p>
{% endif %}
</section>
<section class="content">
{{ content | safe }}
</section>
<section class="content">{{ content | safe }}</section>
{% endblock content %}

View File

@@ -1,10 +1,6 @@
{% extends "base.html" %}
{% block content %}
{% extends "base.html" %} {% block content %}
<article class="page">
<h1>{{ page.title }}</h1>
<section class="content">
{{ content | safe }}
</section>
<section class="content">{{ content | safe }}</section>
</article>
{% endblock content %}

View File

@@ -1,6 +1,4 @@
{% extends "base.html" %}
{% block content %}
{% extends "base.html" %} {% block content %}
<h1>{{ section.title }}</h1>
<ul class="post-list">
{% for item in items %}

View File

@@ -1,6 +1,4 @@
{% extends "base.html" %}
{% block content %}
{% extends "base.html" %} {% block content %}
<h1>{{ section.title }}</h1>
<ul class="item-list">
{% for item in items %}

View File

@@ -1,6 +1,4 @@
{% extends "base.html" %}
{% block content %}
{% extends "base.html" %} {% block content %}
<h1>{{ section.title }}</h1>
<ul class="project-cards">
{% for item in items %}
@@ -16,8 +14,7 @@
<h2>{{ item.frontmatter.title }}</h2>
{% if item.frontmatter.description %}
<p>{{ item.frontmatter.description }}</p>
{% endif %}
{% endif %}
{% endif %} {% endif %}
</li>
{% endfor %}
</ul>

View File

@@ -19,7 +19,7 @@ options = ["fmt", "-o", "align_entries=true", "-o", "reorder_keys=true"]
[formatter.prettier]
command = "prettier"
excludes = ["*/sources.json"]
includes = ["*.json", "*.md", "*.yaml", "*.yml"]
includes = ["*.json", "*.md", "*.yaml", "*.yml", "*.html"]
options = ["--write"]
[formatter.rustfmt]