diff options
| author | somhairle <[email protected]> | 2026-04-21 20:40:27 +0800 |
|---|---|---|
| committer | Somhairle H. Marisol <[email protected]> | 2026-05-24 17:24:57 +0800 |
| commit | ad8f9f55ea79a4d587aecc69698808da82de3d62 (patch) | |
| tree | d25c0db712e6f015d850627ff957edea44c64f94 /themes/theme/layout/post/post_head.ejs | |
| download | blog-ad8f9f55ea79a4d587aecc69698808da82de3d62.tar.gz | |
二〇二六年四月二十一日
Diffstat (limited to 'themes/theme/layout/post/post_head.ejs')
| -rw-r--r-- | themes/theme/layout/post/post_head.ejs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/themes/theme/layout/post/post_head.ejs b/themes/theme/layout/post/post_head.ejs new file mode 100644 index 00000000..ad821406 --- /dev/null +++ b/themes/theme/layout/post/post_head.ejs @@ -0,0 +1,34 @@ +<div class="post-head"> + <div class="post-info"> + <div class="tag-list"> + <% if (page.tags && page.tags.data && page.tags.data.length > 0) {%> + <% page.tags.data.forEach(function(tag) { %> + <span class="post-tag"> + <a href="<%-url_for(tag.path)%>"> + <%=tag.name%> + </a> + </span> + <% }) %> + <% } %> + </div> + <div class="post-title"> + + <% if (page.title) {%> + <%= page.title %> + <% } else {%> + *Untitled + <% } %> + + </div> + <span class="post-date"> + <%- date(page.date, theme.date_format) %> + </span> + </div> + <div class="post-img"> + <% if (page.featured_image) {%> + <img src="<%= url_for(page.featured_image)%>" alt="featured_image"> + <% } else { %> + <div class="h-line-primary"></div> + <% } %> + </div> +</div>
\ No newline at end of file |
