Skip to content

Commit

Permalink
Support _styles in page layout as in post and distill
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie-XIAO committed Sep 12, 2024
1 parent b30b3f4 commit 416ff71
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 416ff71

Please sign in to comment.