def show_practice(practice_id): | def show_practice(practice_id): | ||||
practice = get_full_resource(practice_id) | practice = get_full_resource(practice_id) | ||||
# render Markdown as HTML | # render Markdown as HTML | ||||
practice.description = markdown.markdown(practice.description) | |||||
practice.longDescription = markdown.markdown(practice.longDescription) | practice.longDescription = markdown.markdown(practice.longDescription) | ||||
practice.experimental = markdown.markdown(practice.experimental) | practice.experimental = markdown.markdown(practice.experimental) | ||||
practice.considerations = markdown.markdown(practice.considerations) | practice.considerations = markdown.markdown(practice.considerations) |
else: | else: | ||||
resource.__dict__['tools'].append(relationship) | resource.__dict__['tools'].append(relationship) | ||||
elif relationship.type == 'practice': | elif relationship.type == 'practice': | ||||
# render Markdown as HTML | |||||
relationship.description = markdown.markdown(relationship.description) | |||||
if 'practices' not in resource.__dict__.keys(): | if 'practices' not in resource.__dict__.keys(): | ||||
resource.__dict__['practices'] = [] | resource.__dict__['practices'] = [] | ||||
resource.__dict__['practices'].append(relationship) | resource.__dict__['practices'].append(relationship) |
@media (min-width: 1024px) { | @media (min-width: 1024px) { | ||||
.huge-title { | .huge-title { | ||||
font-size: 4.2rem; | |||||
word-break: break-word; | |||||
font-size: 3.8rem; | |||||
line-height: 0.9; | line-height: 0.9; | ||||
} | } | ||||
} | } |
{% endif %} | {% endif %} | ||||
</div> --> | </div> --> | ||||
<form action="{{ url_for('search.basic_search') }}" class="hidden lg:block"> | |||||
<form action="{{ url_for('search.basic_search') }}" class="{% if type=='top' %} hidden lg:block {% else %} block {% endif %}"> | |||||
<label id="search-label" for="siteSearch" class="sr-only">Search</label> | <label id="search-label" for="siteSearch" class="sr-only">Search</label> | ||||
<input type="text" name="query" class="text-center h-full text-base border-l-2 border-black pl-1" | <input type="text" name="query" class="text-center h-full text-base border-l-2 border-black pl-1" | ||||
aria-labelledby="search-label" placeholder="Search" hx-get="{{ url_for('search.basic_search') }}" | aria-labelledby="search-label" placeholder="Search" hx-get="{{ url_for('search.basic_search') }}" |
{% endif %} | {% endif %} | ||||
{% if resource['author'] %} | {% if resource['author'] %} | ||||
<div class=""> | <div class=""> | ||||
<h3>Author</h3> | |||||
<h3>Author(s)</h3> | |||||
<div class="">{{ resource['author'] }}</div> | <div class="">{{ resource['author'] }}</div> | ||||
</div> | </div> | ||||
{% endif %} | {% endif %} |
{% if resource['description'] %} | {% if resource['description'] %} | ||||
<div class=""> | <div class=""> | ||||
<h3>Description</h3> | <h3>Description</h3> | ||||
{{ resource['description'] }} | |||||
{{ resource['description']|safe }} | |||||
</div> | </div> | ||||
{% endif %} | {% endif %} | ||||
<!-- fields for tools --> | <!-- fields for tools --> |