summary refs log tree commit diff stats
path: root/assets/tmpl/index.html
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-05-24 02:00:30 -0400
committerBen Morrison <ben@gbmor.dev>2019-05-24 02:11:55 -0400
commit6cf0e264b121b754bf8006914c23d3e45f9d0415 (patch)
tree671fda879e6e172faf25e01068a7be15540dec24 /assets/tmpl/index.html
parent2053db46882ec55000def76814fdea6f0b58e6bb (diff)
downloadgetwtxt-6cf0e264b121b754bf8006914c23d3e45f9d0415.tar.gz
style changes for index.html template
Diffstat (limited to 'assets/tmpl/index.html')
-rw-r--r--assets/tmpl/index.html24
1 files changed, 13 insertions, 11 deletions
diff --git a/assets/tmpl/index.html b/assets/tmpl/index.html
index 56fdf96..9827646 100644
--- a/assets/tmpl/index.html
+++ b/assets/tmpl/index.html
@@ -22,39 +22,41 @@
       <span style="padding-left:1em">{{.Mail}}</span><br />
     </div>
     <div id="body">
-      <p>{{.Desc}}</p>
+      <div id="desc">
+        <p>{{.Desc}}</p>
+      </div>
       <p>API base URL:</p>
-      <pre><code>/api</code></pre>
-          <p>Formats available:</p>
+        <pre><code>/api</code></pre>
+      <p>Formats available:</p>
         <pre><code>/api/plain</code></pre>
       <p>Endpoints:</p>
-<pre><code>/api/plain/users
+        <pre><code>/api/plain/users
 /api/plain/mentions
 /api/plain/tweets
 /api/plain/tags</code></pre>
-  <p>Query by user:</p>
+      <p>Query by user:</p>
         <pre><code>$ curl '{{.URL}}/api/plain/users?q=foo'
 foo               https://example.com/twtxt.txt     2019-05-09T08:42:23.000Z
 foobar            https://example2.com/twtxt.txt    2019-03-14T19:23:00.000Z
 foo_barrington    https://example3.com/twtxt.txt    2019-05-01T15:59:39.000Z</code></pre>
-          <p>Query by tweet content:</p>
+      <p>Query by tweet content:</p>
         <pre><code>$ curl '{{.URL}}/api/plain/tweets?q=getwtxt'
 foo_barrington    https://example3.com/twtxt.txt    2019-04-30T06:00:09.000Z    I just built getwtxt, time to set it up!</code></pre>
-          <p>Query by mention:</p>
+      <p>Query by mention:</p>
         <pre><code>$ curl '{{.URL}}/api/plain/mentions?url=https://foobarrington.co.uk/twtxt.txt'
 foo    https://example.com/twtxt.txt    2019-02-26T11:06:44.000Z    @&lt;foo_barrington https://example3.com/twtxt.txt&gt; Hey!! Are you still working on that project?</code></pre>
-          <p>Query by tag:</p>
+      <p>Query by tag:</p>
         <pre><code>$ curl '{{.URL}}/api/plain/tags/programming'
 foo    https://example.com/twtxt.txt    2019-03-01T09:31:02.000Z    I love #programming!</code></pre>
-          <p>Get latest 20 tweets:</p>
+      <p>Get latest 20 tweets:</p>
         <pre><code>$ curl '{{.URL}}/api/plain/tweets'
 foobar    https://example2.com/twtxt.txt    2019-05-13T12:46:20.000Z    It's been a busy day at work!
 ...</code></pre>
-          <p>Get all users:</p>
+      <p>Get all users:</p>
         <pre><code>$ curl '{{.URL}}/api/plain/users'
 foo_barrington    https://example3.com/twtxt.txt    2018-11-21T18:31:00.000Z
 ...</code></pre>
-        <p>Add new user by submitting a <code>POST</code> request. If both variables are not used, or the user already exists in this registry, the server will respond with <code>400 Bad Request</code></p>
+      <p>Add new user by submitting a <code>POST</code> request. If both variables are not used, or the user already exists in this registry, the server will respond with <code>400 Bad Request</code></p>
         <pre><code>$ curl -X POST '{{.URL}}/api/plain/users?url=https://example3.com/twtxt.txt&amp;nickname=foo_barrington'
 200 OK</code></pre>
     </div>
#n270'>270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456