From dd6cbae506c21b8bccb6086eec117f52f5256bde Mon Sep 17 00:00:00 2001 From: Lucas McCullum Date: Wed, 9 Sep 2020 08:07:31 -0400 Subject: [PATCH] People Page: change photo alt and id #60 Changes the photos on the People Page to include a more descriptive alt tag: Roger Mark to photo of Roger Mark. Also changes photo id to be more descriptive: Roger_Mark to photo_of_Roger_Mark. Fixes part of #60. Changes photo alt tag Returns old style Fixes People Page header ordering #60. Fixes the h2 tag of the lab members name to an h3 tag to stay consistent with the rest of the header tags. Fixes part of #60. --- main.py | 6 +++--- templates/people.html | 11 ++++++++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/main.py b/main.py index f159ef5..28b381f 100755 --- a/main.py +++ b/main.py @@ -399,11 +399,11 @@ def people(): """ data = _data() - path = "sitedata" - fn = "people.yml" + path = 'sitedata' + fn = 'people.yml' with open(os.path.join(path, fn), 'r') as f: - data["people"] = yaml.safe_load(f) + data['people'] = yaml.safe_load(f) return render_template('people.html', **data) diff --git a/templates/people.html b/templates/people.html index 03c6a38..5aa6e6b 100644 --- a/templates/people.html +++ b/templates/people.html @@ -24,14 +24,19 @@

People

Current members

{% for person in people.current_members %} -
+<<<<<<< HEAD +
+======= +
+ +>>>>>>> a5b61e0... Fixes People Page header ordering #60.
{% if person.image %} - {{ person.name }} + Photo of {{ person.name }} {% else %} - {{ person.name }} + Photo of {{ person.name }} {% endif %}