Add static directory, useful for testing

main
Brian Picciano 10 months ago
parent 795817f99d
commit 24e4dc42b1
  1. 1
      .env.dev
  2. 7
      config.yml.tpl
  3. 3
      static/foo.gmi
  4. 7
      static/foo.html
  5. 9
      static/index.gmi
  6. 9
      static/index.html
  7. BIN
      static/penguin.jpg
  8. 3
      static/subdir/bar.gmi
  9. 7
      static/subdir/bar.html
  10. 3
      static/subdir/index.gmi
  11. 6
      static/subdir/index.html

@ -1 +0,0 @@
export DOMANI_CONFIG_PATH=./.dev-config.yml

@ -4,6 +4,13 @@ origin:
store_dir_path: /tmp/domani_dev_env/origin
domain:
store_dir_path: /tmp/domani_dev_env/domain
builtins:
domani-test.localhost:
kind: git
url: https://code.betamike.com/micropelago/domani.git
branch_name: main
add_path_prefix: static
public: true
service:
passphrase: foobar
primary_domain: localhost

@ -0,0 +1,3 @@
# FOO
This is foo

@ -0,0 +1,7 @@
<html>
<body>
<h1>FOO</h1>
<p>This is the foo page</p>
</body>
</html>

@ -0,0 +1,9 @@
# INDEX
This is the gemini index.
=> foo /foo.gmi
=> bar /subdir/bar.gmi
=> penguin /penguin.jpg

@ -0,0 +1,9 @@
<html>
<body>
<h1>INDEX</h1>
<p>This is the index page.</p>
<p>Check out <a href="/foo.html">foo</a>.</p>
<p>Check out <a href="/subdir/bar.html">bar</a>.</p>
<img src="/penguin.jpg" />
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

@ -0,0 +1,3 @@
# BAR
This is bar

@ -0,0 +1,7 @@
<html>
<body>
<h1>BAR</h1>
<p>This is the bar page</p>
</body>
</html>

@ -0,0 +1,3 @@
# INDEX
This is the gemini index of the subdir.

@ -0,0 +1,6 @@
<html>
<body>
<h1>INDEX</h1>
<p>This is the index page of the subdir</p>
</body>
</html>
Loading…
Cancel
Save