Skip to content

Commit

Permalink
Change property name
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrlpld committed Oct 3, 2023
1 parent c163037 commit 11ff296
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lpld/home/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_introduction_without_tags(self):
return html_utils.strip_tags(self.introduction)

@property
def page_title(self):
def title_templex(self):
return heading.Heading(level=1, text=self.title)

@property
Expand Down
4 changes: 2 additions & 2 deletions lpld/templates/pages/home/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<section class="mt-44">
<div class="wrapper flex justify-between items-center">
{% #heading level="1" extra_class="inline-block" %}{{ page.title }}{% /heading %}
{% templex page.page_title extra_class="inline-block" %}
{% templex page.title_templex extra_class="inline-block" %}

<div class="relative w-24 sm:w-32 md:w-48 lg:w-64 aspect-square rounded-full overflow-hidden bg-neutral-200 isolate">
<picture>
{% image page.profile_image fill-96x96 as profile_fallback %}
{% image_url page.profile_image "fill-96x96|format-webp" as profile_96 %}
{% image_url page.profile_image "fill-128x128|format-webp" as profile_128 %}
{% image_url page.profile_image "fill-127x128|format-webp" as profile_128 %}
{% image_url page.profile_image "fill-192x192|format-webp" as profile_192 %}
{% image_url page.profile_image "fill-256x256|format-webp" as profile_256 %}
{% image_url page.profile_image "fill-384x384|format-webp" as profile_384 %}
Expand Down

0 comments on commit 11ff296

Please sign in to comment.