Skip to content

Commit

Permalink
chore: remobe subtitle support for posts
Browse files Browse the repository at this point in the history
not very useful, and may also break styles, just use a simple title
  • Loading branch information
Candinya committed Jun 20, 2024
1 parent c2e331b commit b6cb6df
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion layout/_index_style/card.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
style: 'none',
separator: ' '
}) %>
<h2 class="kratos-entry-title"><a href="<%- url_for(post.path) %>" itemprop="mainEntityOfPage"><span itemprop="name headline"><%- post.title %><% if (post.subtitle) { %><sub><%- post.subtitle %></sub><% } %></span></a>
<h2 class="kratos-entry-title"><a href="<%- url_for(post.path) %>" itemprop="mainEntityOfPage"><span itemprop="name headline"><%- post.title %></span></a>
</header>
<div class="kratos-entry-content">
<p itemProp="description">
Expand Down
3 changes: 0 additions & 3 deletions layout/_index_style/half.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
<% } %>
<header class="kratos-page-header">
<h1 class="text-center"><a class="kratos-page-title" href="<%- url_for(post.path) %>" itemprop="mainEntityOfPage"><span itemprop="name headline"><%- post.title %></span></a></h1>
<% if (post.subtitle) { %>
<h2 class="text-center"><%- post.subtitle %></h2>
<% } %>
<ul class="kratos-page-meta text-center">
<li>
<time datetime="<%= date_xml(post.date) %>" itemprop="datePublished">
Expand Down
3 changes: 0 additions & 3 deletions layout/post.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
<% if (page.title) { %>
<h1 class="kratos-page-title text-center" itemprop="name headline"><%- page.title %></h1>
<% } %>
<% if (page.subtitle) { %>
<h2 class="text-center"><%- page.subtitle %></h2>
<% } %>
<ul class="kratos-page-meta text-center">
<li><time datetime="<%= date_xml(page.date) %>" itemprop="datePublished"><i class="fa fa-calendar"></i> <%- date(page.date, null) %></time></li>
<li itemprop="author" itemscope itemtype="https://schema.org/Person">
Expand Down
4 changes: 0 additions & 4 deletions src/scss/kr-core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1603,10 +1603,6 @@ ul.kratos-page-meta {
strong {
margin-left: 0.5em;
}

sub {
display: inline-block;
}
}

.kratos-entry-post-main {
Expand Down

0 comments on commit b6cb6df

Please sign in to comment.