Skip to content

Commit

Permalink
Support _styles in page layout as in post and distill (#2694)
Browse files Browse the repository at this point in the history
As desribed in the title.
  • Loading branch information
Charlie-XIAO authored Sep 13, 2024
1 parent 92dbc39 commit 8e9cf03
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions _layouts/page.liquid
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
---
layout: default
---
{% if page._styles %}
<!-- Page/Post style -->
<style type="text/css">
{{ page._styles }}
</style>
{% endif %}

<div class="post">
<header class="post-header">
<h1 class="post-title">{{ page.title }}</h1>
Expand Down

0 comments on commit 8e9cf03

Please sign in to comment.