Skip to content

Commit 118d813

Browse files
authored
Merge pull request #19 from osmus/jlow/fix-content-trimming
Fix accidental newline trimming in people and project page contents
2 parents 1869c2d + dc668c1 commit 118d813

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

_layouts/person.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
<a href="https://www.openstreetmap.org/user/{{page.osm}}">@{{page.osm}}</a>
1919
{%- endif -%}
2020
</div>
21-
{%- assign content = page.content | strip_newlines -%}
22-
{%- if content != '' -%}
21+
{%- assign trimmed_content = page.content | strip_newlines -%}
22+
{%- if trimmed_content != '' -%}
2323
<div class="section-body prose">
24-
{{content}}
24+
{{ page.content }}
2525
</div>
2626
{%- endif -%}
2727
{%- include person_roles.html person=page-%}
@@ -64,4 +64,4 @@ <h3></h3>
6464
{% endif %}
6565
</div>
6666
</div>
67-
</div>
67+
</div>

_layouts/project.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@
4949
{%- endif -%}
5050
<div class="content">
5151
<div class="container">
52-
{%- assign content = page.content | strip_newlines -%}
53-
{%- if content != '' -%}
52+
{%- assign trimmed_content = page.content | strip_newlines -%}
53+
{%- if trimmed_content != '' -%}
5454
<div class="prose">
55-
{{- content -}}
55+
{{ page.content }}
5656
</div>
5757
{%- endif -%}
5858
{%- include posts_section.html tag=page.title max_posts=page.max_posts -%}

0 commit comments

Comments
 (0)