~xj9/bbnet

9e1fccd4621f2ded9b9e741227b21384bcc6955b — xj9 a month ago be787fb
use git version
2 files changed, 7 insertions(+), 5 deletions(-)

M bbweb.py
M bbweb.tmpl
M bbweb.py => bbweb.py +7 -2
@@ 29,11 29,17 @@ from flask import (

app = Flask(__name__)

__version__ = '0.1.0-alpha.10'
__version__ = '0.1.0-alpha'
BBWEB_HOME = 'gemini://sunshinegardens.org'
BBWEB_DOMAIN = 'sunshinegardens.org'
app.secret_key = os.environ.get('BBWEB_SECRET_KEY', 'CHANGE ME').encode()

if os.path.isdir('.git'):
    with open('.git/refs/heads/master') as fd:
        __version__ += '.{0}'.format(
            fd.read().strip()[:7]
        )

av98_config_path = os.environ.get('AV98_CONFIG_PATH', None)
config_path = os.environ.get('BBWEB_CONFIG', 'bbnet.ndtl')
config = formats.indental.parse_file(config_path)


@@ 109,7 115,6 @@ def stream_render(gmi_file, **kwargs):
        page_title=page_title,
        themes=themes(),
        source_link='https://git.sunshinegardens.org/~xj9/bbnet',
        fonts_link='https://int10h.org/oldschool-pc-fonts/download/',
        styles=dict(
            reset='minireset.min.css?v={0}'.format(__version__),
            main='spirit.css?v={0}'.format(__version__),

M bbweb.tmpl => bbweb.tmpl +0 -3
@@ 37,9 37,6 @@
  <div class="meta">
    <a href="{{ config['source_link'] }}" target="_blank">bbweb</a>
    <span>{{ config['version'] }}</span>
    <a href="{{ config['fonts_link'] }}" target="_blank">
      get fonts
    </a>
  </div>
  <script>
  /**