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