summaryrefslogtreecommitdiff
path: root/docs/MANAGE.md
blob: e061837ba3575c085a83be29d8aa038517a01338 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Site Management (No Generator)

This site is intentionally hand-edited HTML/CSS.

## Shared assets

- Global CSS: `/assets/css/site.css`
- Shared JS (menu + language + blog list): `/assets/js/site.js`

## Optional includes (header/footer)

If you want to stop copy/pasting the header/footer without using a static site generator:

1) Add include placeholders:

```html
<div data-include="header"></div>
...
<div data-include="footer"></div>
```

2) Add this script:

```html
<script defer src="/assets/js/includes.js"></script>
```

3) Header/footer live here:

- `/partials/header.html`
- `/partials/footer.html`

Notes:

- This is a "no build" approach.
- It requires JavaScript to render header/footer.
- If includes fail (offline, blocked fetch), the page still loads (just without injected header/footer).

## SEO / crawl basics

- `robots.txt` points to `sitemap.xml`.
- Update `sitemap.xml` when you add/remove top-level pages.