|
1 | | -<div style="display: flex; align-items: center; justify-content: space-between;"> |
2 | | - <div style="flex: 1;"> |
3 | | - <h1>fssg</h1> |
4 | | - <p><strong>fssg</strong> is a portable, dependency-free static site generator written entirely |
5 | | - in POSIX shell and AWK. It recursively processes Markdown (.md) and .html |
6 | | - files in <code>src/</code> and outputs a minified, deployable website in <code>dist/</code>.</p> |
7 | | - </div> |
8 | | - <div> |
9 | | - <a href="https://github.com/xlc-dev/fssg"> |
10 | | - <img src="./src/static/img/logo.png" alt="fssg Logo" width="150"> |
11 | | - </a> |
12 | | - </div> |
13 | | -</div> |
| 1 | +<img src="./src/static/img/logo.png" alt="fssg Logo" width="150" align="right"> |
| 2 | + |
| 3 | +# fssg |
| 4 | + |
| 5 | +**fssg** is a portable, dependency-free static site generator written entirely |
| 6 | +in POSIX shell and AWK. It recursively processes markdown and html |
| 7 | +files in `src/` and outputs a minified, deployable website in `dist/`. |
14 | 8 |
|
15 | 9 | ## Table of Contents |
16 | 10 |
|
@@ -80,9 +74,9 @@ chmod +x ./my-site/fssg |
80 | 74 | 2. **Write content** in `src/` as `.md` or `.html`. |
81 | 75 | 3. **Run the generator**: |
82 | 76 |
|
83 | | - ```sh |
84 | | - ./fssg |
85 | | - ``` |
| 77 | +```sh |
| 78 | +./fssg |
| 79 | +``` |
86 | 80 |
|
87 | 81 | 4. **Browse output** in `dist/`. |
88 | 82 |
|
@@ -138,7 +132,7 @@ your-project/ |
138 | 132 |
|
139 | 133 | `src/index.md`: |
140 | 134 |
|
141 | | -````markdown |
| 135 | +```markdown |
142 | 136 | {{title: Home}} |
143 | 137 |
|
144 | 138 | # Welcome to My Site |
@@ -197,20 +191,18 @@ Usage in a page: |
197 | 191 | Usage in a page: |
198 | 192 |
|
199 | 193 | ```html |
200 | | -{{ include-block:alert.html type="warning" alert_title="Attention" markdown="true" }} |
201 | | - This is **Markdown** content inside the block. |
202 | | -{{ endinclude }} |
| 194 | +{{ include-block:alert.html type="warning" alert_title="Attention" |
| 195 | +markdown="true" }} This is **Markdown** content inside the block. {{ endinclude |
| 196 | +}} |
203 | 197 | ``` |
204 | 198 |
|
205 | 199 | ### Conditional Content |
206 | 200 |
|
207 | 201 | ```html |
208 | 202 | {{ IF_EXT:md }} |
209 | | - <p>This only appears in Markdown-converted pages.</p> |
210 | | -{{ ENDIF_EXT }} |
211 | | - |
212 | | -{{ IF_PAGE:about.html }} |
213 | | - <p>This only appears in Markdown-converted pages.</p> |
| 203 | +<p>This only appears in Markdown-converted pages.</p> |
| 204 | +{{ ENDIF_EXT }} {{ IF_PAGE:about.html }} |
| 205 | +<p>This only appears in Markdown-converted pages.</p> |
214 | 206 | {{ ENDIF_PAGE }} |
215 | 207 | ``` |
216 | 208 |
|
@@ -248,4 +240,8 @@ For full details, see the [fssg Documentation Website](https://xlc-dev.github.io |
248 | 240 |
|
249 | 241 | ## License |
250 | 242 |
|
251 | | -This project is licensed under the MIT License. See [LICENSE](LICENSE) for details. |
| 243 | +This project is licensed under the MIT License. See [LICENSE](LICENSE) for details. |
| 244 | + |
| 245 | +``` |
| 246 | +
|
| 247 | +``` |
0 commit comments