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/pages | |
| download | blog-ad8f9f55ea79a4d587aecc69698808da82de3d62.tar.gz | |
二〇二六年四月二十一日
Diffstat (limited to 'themes/theme/layout/pages')
| -rw-r--r-- | themes/theme/layout/pages/page_head.ejs | 14 | ||||
| -rw-r--r-- | themes/theme/layout/pages/profile.ejs | 21 |
2 files changed, 35 insertions, 0 deletions
diff --git a/themes/theme/layout/pages/page_head.ejs b/themes/theme/layout/pages/page_head.ejs new file mode 100644 index 00000000..709fd55c --- /dev/null +++ b/themes/theme/layout/pages/page_head.ejs @@ -0,0 +1,14 @@ +<div class="post-head"> + <div class="post-info"> + <div class="post-title"> + + <% if (page.title) {%> + <%= page.title %> + <% } else {%> + *Untitled + <% } %> + + </div> + </div> + <div class="h-line-primary"></div> +</div>
\ No newline at end of file diff --git a/themes/theme/layout/pages/profile.ejs b/themes/theme/layout/pages/profile.ejs new file mode 100644 index 00000000..19f38a05 --- /dev/null +++ b/themes/theme/layout/pages/profile.ejs @@ -0,0 +1,21 @@ +<div class="profile"> + <div class="profile-image"> + <% if (theme.profile.image) {%> + <img src="<%= url_for(theme.profile.image)%>" alt="featured_image"> + <% } %> + </div> + <div class="post-content profile-content"> + <div class="profile-title"> + <%=theme.profile.title%> + </div> + <div class="profile-body"> + <%=theme.profile.body%> + </div> + <% Object.keys(theme.profile.links).forEach(key => { %> + <div class="profile-link"> + <a href="<%= url_for(theme.profile.links[key])%>"><%=key%></a> + </div> + <% }); %> + </div> + +</div>
\ No newline at end of file |
