Merge pull request #38 from uniqueNullptr2/uniqueNullptr2-fix-title-in-template

fix usage of title arg in template
This commit is contained in:
Dániel Szabó 2022-07-31 18:59:37 +01:00 committed by GitHub
commit cc09d1b529
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
{% if args.footer_text.as_ref().is_none() %}
{% if args.title.as_ref().is_none() %}
<title>MicroBin</title>
{%- else %}
<title>{{ args.title.as_ref().unwrap() }}</title>
@ -42,7 +42,7 @@
<i><span style="font-size:2.2rem; margin-right:1rem">μ</span></i>
{%- endif %}
{% if args.footer_text.as_ref().is_none() %}
{% if args.title.as_ref().is_none() %}
MicroBin
{%- else %}
{{ args.title.as_ref().unwrap() }}