Added icons for RSS and ATOM to make it look nicer

This commit is contained in:
deadvey
2025-10-24 13:59:41 +01:00
parent 9f0eb13bb4
commit ddf9fcae13
9 changed files with 20 additions and 11 deletions

View File

@@ -1,11 +1,14 @@
<a id='home-page-link' href="/"><%= locale.home_page %></a> <a id='home-page-link' href="/"><%= locale.home_page %></a>
/ /
<% if (config.rss == true) { %> <% if (config.rss == true) { %>
<a id='global-rss-link' href="/rss"><%= locale.rss_feed %></a> <a id='rss-link' href="/rss">
<img class='icon' src='/icons/rss.png' alt="<%= locale.rss_feed %>" title='<%= locale.rss_feed %>'>
</a>
<% } %> <% } %>
/
<% if (config.atom == true) { %> <% if (config.atom == true) { %>
<a id='global-atom-link' href="/atom"><%= locale.atom_feed %></a> <a id='atom-link' href="/atom">
<img class='icon' src='/icons/atom.png' alt='<%= locale.atom_feed %>' title='<%= locale.atom_feed %>'>
</a>
<% } %> <% } %>
/ /
<a id='new-post-link' href="<%= config.new_post_url %>"><%= locale.new_post %></a> <a id='new-post-link' href="<%= config.new_post_url %>"><%= locale.new_post %></a>

View File

@@ -4,7 +4,13 @@
</h1> </h1>
</div> </div>
<p><%- func.render_md(user.description) %></p> <p><%- func.render_md(user.description) %></p>
<a id='edit-account-link' href="<%= config.edit_account_base_url %>/<%= userID %>"><%= locale.edit_account %></a><br/> <a if='edit-account-link' href="<%= config.edit_account_base_url %>/<%= userID %>">
<a id='rss-link' href="/user/<%= user.username %>/rss"><%= locale.rss_feed %></a><br/> <img class='icon' src='/icons/edit.png' alt='<%= locale.edit_account %>' title='<%= locale.edit_account %>'>
<a id='atom-link' href="/user/<%= user.username %>/atom"><%= locale.atom_feed %></a> </a>
<a id='rss-link' href="/user/<%= user.username %>/rss">
<img class='icon' src='/icons/rss.png' alt="<%= locale.rss_feed %>" title='<%= locale.rss_feed %>'>
</a>
<a id='atom-link' href="/user/<%= user.username %>/atom">
<img class='icon' src='/icons/atom.png' alt='<%= locale.atom_feed %>' title='<%= locale.atom_feed %>'>
</a>
<%- config.seperator %> <%- config.seperator %>

View File

@@ -26,7 +26,7 @@
</div> </div>
<div id="post-edit"> <div id="post-edit">
<a href="<%= config.edit_post_base_url %>/<%= post["id"] %>"> <a href="<%= config.edit_post_base_url %>/<%= post["id"] %>">
<img src='/icons/edit.png'> <img class='icon' src='/icons/edit.png' alt='<%= locale.edit_post %>' title='<%= locale.edit_post %>'>
</a><br/> </a><br/>
</div> </div>
<% if (config.enable_hitcount == true) { %> <% if (config.enable_hitcount == true) { %>

View File

@@ -24,7 +24,7 @@
<br/> <br/>
<div id="post-edit"> <div id="post-edit">
<a href="<%= config.edit_post_base_url %>/<%= post["id"] %>"> <a href="<%= config.edit_post_base_url %>/<%= post["id"] %>">
<img src='/icons/edit.png'> <img class='icon' src='/icons/edit.png' alt='<%= locale.edit_post %>' title='<%= locale.edit_post %>'>
</a><br/> </a><br/>
</div> </div>
</div> </div>

View File

@@ -24,7 +24,7 @@
<br/> <br/>
<div id="post-edit"> <div id="post-edit">
<a href="<%= config.edit_post_base_url %>/<%= post["id"] %>"> <a href="<%= config.edit_post_base_url %>/<%= post["id"] %>">
<img src='/icons/edit.png'> <img class='icon' src='/icons/edit.png' alt='<%= locale.edit_post %>' title='<%= locale.edit_post %>'>
</a><br/> </a><br/>
</div> </div>
</div> </div>

View File

@@ -24,7 +24,7 @@
<br/> <br/>
<div id="post-edit"> <div id="post-edit">
<a href="<%= config.edit_post_base_url %>/<%= post["id"] %>"> <a href="<%= config.edit_post_base_url %>/<%= post["id"] %>">
<img src='/icons/edit.png'> <img class='icon' src='/icons/edit.png' alt='<%= locale.edit_post %>' title='<%= locale.edit_post %>'>
</a><br/> </a><br/>
</div> </div>
</div> </div>

View File

@@ -5,7 +5,7 @@ body {
#header { #header {
text-align: center; text-align: center;
} }
#post-edit img { .icon {
width: 20px; width: 20px;
} }
input, textarea, button { input, textarea, button {

BIN
webroot/icons/atom.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 429 B

BIN
webroot/icons/rss.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 421 B