Skip to content

Commit

Permalink
Remove unused context variable from block
Browse files Browse the repository at this point in the history
The `heading.html` template does not use a `size` variable anymore. Thus, it is now
removed from the context to avoid confusion.
  • Loading branch information
tbrlpld committed Jul 26, 2024
1 parent 8105180 commit da54ff3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lpld/core/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class Meta:
def get_context(self, value, parent_context=None):
return {
"level": 2,
"size": "md",
"children": value.get("text"),
}

Expand All @@ -32,7 +31,6 @@ class Meta:
def get_context(self, value, parent_context=None):
return {
"level": 3,
"size": "sm",
"children": value.get("text"),
}

Expand Down

0 comments on commit da54ff3

Please sign in to comment.