Created
April 16, 2023 19:03
-
-
Save apexdodge/01a06f7d3600af46cc166658ec028031 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign contentType = get_content_type_by_developer_name('posts') %} | |
{% assign categoriesField = contentType.ContentTypeFields | where: "DeveloperName", "category" | first %} | |
{% macro label_for_choice(choices, val) %} | |
{% assign choice = choices | where: "DeveloperName", val | first %} | |
{{ choice.Label }} | |
{% endmacro %} | |
<div class="row justify-content-center"> | |
<div class="col-md-8"> | |
<a href="/">← Back to list</a> | |
<div class="card my-4"> | |
<div class="card-body"> | |
<h3 class="card-title">{{ Target.PrimaryField }}</h3> | |
<h6 class="card-subtitle mb-2 text-muted">{{ Target.PublishedContent.company }}, {{ label_for_choice(categoriesField.Choices, Target.PublishedContent.category.Value) }}</h6> | |
<h6 class="card-subtitle mb-2 text-muted">{{ Target.PublishedContent.location }}</h6> | |
{% if Target.PublishedContent.salary_range.Value != '' %} | |
<p class="mt-1">{{ Target.PublishedContent.salary_range.Value }}</p> | |
{% endif %} | |
<p class="card-text">{{ Target.PublishedContent.content }}</p> | |
<hr/> | |
<p class="card-text">Posted: {{ Target.CreationTime | date: '%B %d, %Y' }}</p> | |
</div> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment