feat: Update Link Titles and SEO Optimization

- Added title attributes to links in multiple layout files to improve accessibility and SEO.
- Updated the configuration file to add new excluded domains.
- Improved the readability and user experience of various sections on the page.
This commit is contained in:
Fechin committed 2025-06-23 05:23:50 -07:00
1 parent 1cc1a5d37f
commit 2f7bfa586c
20 files changed
+80 -58

No files matched your search

+5 -1
View File
@@ -97,7 +97,11 @@ nofollow:
enable: true
field: site
exclude:
- "exclude1.com"
- "tableconvert.com"
- "dorefer.com"
- "fionaai.com"
- "github.com"
- "x.com"
excerpt:
depth: 2
@@ -51,7 +51,7 @@ const spacing = {
}[variant];
%>
<a href="/support/"
<a href="/support/" title="Buy Me a Coffee - Support cheatsheets.zip"
class="<%= buttonBaseClass %> <%= coffeeClass %> <%= className %>">
<div class="<%= iconClass %> <%= spacing %>">
<svg width="<%= svgSize %>" height="<%= svgSize %>" viewBox="0 0 25 35" fill="currentColor">
@@ -50,7 +50,7 @@ const spacing = {
%>
<% if (variant === 'request') { %>
<a href="https://x.com/FechinLi" target="_blank"
<a href="https://x.com/FechinLi" target="_blank" rel="noopener noreferrer" title="Follow @FechinLi on X (Twitter)"
class="<%= buttonBaseClass %> <%= xClass %> <%= className %>">
<div class="<%= iconClass %> <%= spacing %> group-hover:scale-110 transition-transform">
<%- icon("x") %>
@@ -65,7 +65,7 @@ const spacing = {
<% } %>
</a>
<% } else { %>
<a href="https://x.com/FechinLi" target="_blank"
<a href="https://x.com/FechinLi" target="_blank" rel="noopener noreferrer" title="Follow @FechinLi on X (Twitter)"
class="<%= buttonBaseClass %> <%= xClass %> <%= className %>">
<div class="<%= iconClass %> <%= spacing %> <% if (variant === 'hero') { %>group-hover:scale-110 transition-transform<% } %>">
<%- icon("x") %>
@@ -49,7 +49,7 @@ const spacing = {
}[variant];
%>
<a href="<%- contributing() %>" target="_blank"
<a href="<%- contributing() %>" target="_blank" rel="noopener noreferrer" title="Contribute on GitHub"
class="<%= className %>">
<button type="button" class="<%= buttonBaseClass %> <%= githubClass %>">
<div class="<%= iconClass %> <%= spacing %>">
@@ -44,7 +44,7 @@ const spacing = {
}[variant];
%>
<a href="<%- edit_page() %>" target="_blank"
<a href="<%- edit_page() %>" target="_blank" rel="noopener noreferrer" title="Star cheatsheets.zip on GitHub"
class="<%= buttonBaseClass %> <%= githubClass %> <%= className %>">
<div class="<%= iconClass %> <%= spacing %>">
<%- icon("github") %>
+1 -1
View File
@@ -21,7 +21,7 @@ var pageTitle = page.title;
})();
</script>
<noscript>Please enable JavaScript to view the
<a href="https://disqus.com/?ref_noscript" rel="external nofollow">comments powered by Disqus.</a>
<a href="https://disqus.com/?ref_noscript" rel="external nofollow" title="Disqus - comments powered by Disqus">comments powered by Disqus.</a>
</noscript>
</section>
<% } %>
+34 -16
View File
@@ -12,7 +12,7 @@
const topPostsData = topPosts(3);
topPostsData.forEach(function(post, index) {
%>
<a href="<%- url_for(post.path) %>" class="group flex items-center p-3 bg-white dark:bg-slate-700 rounded-lg border border-slate-200 dark:border-slate-600 hover:border-indigo-300 dark:hover:border-indigo-500 transition-all duration-200 hover:shadow-md">
<a href="<%- url_for(post.path) %>" title="<%= post.title %> Cheatsheet - Popular Quick Reference" class="group flex items-center p-3 bg-white dark:bg-slate-700 rounded-lg border border-slate-200 dark:border-slate-600 hover:border-indigo-300 dark:hover:border-indigo-500 transition-all duration-200 hover:shadow-md">
<div class="w-8 h-8 flex items-center justify-center flex-shrink-0 mr-3 text-indigo-600">
<%- icon(post.slug) %>
</div>
@@ -37,7 +37,7 @@
const recentPosts = site.posts.sort('date', -1).filter(post => post.layout !== "note").data.slice(0, 3);
recentPosts.forEach(function(post, index) {
%>
<a href="<%- url_for(post.path) %>" class="group flex items-center p-3 bg-white dark:bg-slate-700 rounded-lg border border-slate-200 dark:border-slate-600 hover:border-blue-300 dark:hover:border-blue-500 transition-all duration-200 hover:shadow-md">
<a href="<%- url_for(post.path) %>" title="<%= post.title %> Cheatsheet - Latest Quick Reference" class="group flex items-center p-3 bg-white dark:bg-slate-700 rounded-lg border border-slate-200 dark:border-slate-600 hover:border-blue-300 dark:hover:border-blue-500 transition-all duration-200 hover:shadow-md">
<div class="w-8 h-8 flex items-center justify-center flex-shrink-0 mr-3 text-blue-600">
<%- icon(post.slug) %>
</div>
@@ -52,39 +52,57 @@
</div>
</div>
<!-- Our Products -->
<!-- Developer Tools -->
<div>
<h3 class="text-lg font-semibold text-slate-900 dark:text-slate-100 mb-4 flex items-center">
Our <span class="text-slate-500">&nbsp;Products</span>
<svg class="w-5 h-5 mr-2 text-purple-600" fill="currentColor" viewBox="0 0 20 20">
<path d="M3 4a1 1 0 011-1h12a1 1 0 011 1v2a1 1 0 01-1 1H4a1 1 0 01-1-1V4zM3 10a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H4a1 1 0 01-1-1v-6zM14 9a1 1 0 00-1 1v6a1 1 0 001 1h2a1 1 0 001-1v-6a1 1 0 00-1-1h-2z"/>
</svg>
Developer <span class="text-slate-500">&nbsp;Tools</span>
</h3>
<div class="space-y-3">
<a href="https://tableconvert.com" target="_blank" class="group flex items-center p-3 bg-white dark:bg-slate-700 rounded-lg border border-slate-200 dark:border-slate-600 hover:border-purple-300 dark:hover:border-purple-500 transition-all duration-200 hover:shadow-md">
<a href="https://tableconvert.com?ref=cheatsheets" target="_blank" data-no-nofollow="true" title="TableConvert - Convert tables between formats instantly for developers" class="group flex items-center p-3 bg-white dark:bg-slate-700 rounded-lg border border-slate-200 dark:border-slate-600 hover:border-purple-300 dark:hover:border-purple-500 transition-all duration-200 hover:shadow-md">
<div class="w-8 h-8 flex items-center justify-center flex-shrink-0 mr-3">
<img src="/assets/icon/tableconvert.png" alt="TableConvert" class="w-6 h-6 rounded">
<img src="/assets/icon/tableconvert.png" alt="TableConvert logo" class="w-6 h-6 rounded">
</div>
<div class="min-w-0 flex-1">
<h4 class="font-medium text-sm text-slate-900 dark:text-slate-100 group-hover:text-purple-600 dark:group-hover:text-purple-400">TableConvert</h4>
<p class="text-xs text-slate-500 dark:text-slate-400 truncate">Convert tables between formats instantly</p>
<p class="text-xs text-slate-500 dark:text-slate-400 truncate">Convert tables between formats</p>
</div>
<div class="opacity-0 group-hover:opacity-100 transition-opacity">
<svg class="w-4 h-4 text-purple-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"/>
</svg>
</div>
</a>
<a href="https://dorefer.com" target="_blank" class="group flex items-center p-3 bg-white dark:bg-slate-700 rounded-lg border border-slate-200 dark:border-slate-600 hover:border-purple-300 dark:hover:border-purple-500 transition-all duration-200 hover:shadow-md">
<a href="https://dorefer.com?ref=cheatsheets" target="_blank" data-no-nofollow="true" title="doRefer - Find the best referral codes and signup bonuses" class="group flex items-center p-3 bg-white dark:bg-slate-700 rounded-lg border border-slate-200 dark:border-slate-600 hover:border-purple-300 dark:hover:border-purple-500 transition-all duration-200 hover:shadow-md">
<div class="w-8 h-8 flex items-center justify-center flex-shrink-0 mr-3">
<img src="/assets/icon/dorefer.png" alt="doRefer" class="w-6 h-6 rounded">
<img src="/assets/icon/dorefer.png" alt="doRefer logo" class="w-6 h-6 rounded">
</div>
<div class="min-w-0 flex-1">
<h4 class="font-medium text-sm text-slate-900 dark:text-slate-100 group-hover:text-purple-600 dark:group-hover:text-purple-400">doRefer</h4>
<p class="text-xs text-slate-500 dark:text-slate-400 truncate">Find Best Referral Code, Link & Signup Bonus</p>
<p class="text-xs text-slate-500 dark:text-slate-400 truncate">Best referral codes & bonuses</p>
</div>
<div class="opacity-0 group-hover:opacity-100 transition-opacity">
<svg class="w-4 h-4 text-purple-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"/>
</svg>
</div>
</a>
<a href="https://fionaai.com" target="_blank" class="group flex items-center p-3 bg-white dark:bg-slate-700 rounded-lg border border-slate-200 dark:border-slate-600 hover:border-purple-300 dark:hover:border-purple-500 transition-all duration-200 hover:shadow-md">
<a href="https://fionaai.com?ref=cheatsheets" target="_blank" data-no-nofollow="true" title="Fiona AI - Your intelligent Chrome AI assistant for productivity" class="group flex items-center p-3 bg-white dark:bg-slate-700 rounded-lg border border-slate-200 dark:border-slate-600 hover:border-purple-300 dark:hover:border-purple-500 transition-all duration-200 hover:shadow-md">
<div class="w-8 h-8 flex items-center justify-center flex-shrink-0 mr-3">
<img src="/assets/icon/fionaai.png" alt="Fiona AI" class="w-6 h-6 rounded">
<img src="/assets/icon/fionaai.png" alt="Fiona AI logo" class="w-6 h-6 rounded">
</div>
<div class="min-w-0 flex-1">
<h4 class="font-medium text-sm text-slate-900 dark:text-slate-100 group-hover:text-purple-600 dark:group-hover:text-purple-400">Fiona AI</h4>
<p class="text-xs text-slate-500 dark:text-slate-400 truncate">Your AI assistant in chrome</p>
<p class="text-xs text-slate-500 dark:text-slate-400 truncate">Chrome AI assistant</p>
</div>
<div class="opacity-0 group-hover:opacity-100 transition-opacity">
<svg class="w-4 h-4 text-purple-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"/>
</svg>
</div>
</a>
</div>
@@ -99,9 +117,9 @@
Share quick reference and cheat sheet for developers.
</p>
<div class="space-y-2 text-sm">
<div><a href="/about/" class="text-slate-600 dark:text-slate-400 hover:text-indigo-600 dark:hover:text-indigo-400">About</a></div>
<div><a href="/notes/" class="text-slate-600 dark:text-slate-400 hover:text-indigo-600 dark:hover:text-indigo-400">Notes</a></div>
<div><a href="/support/" class="text-slate-600 dark:text-slate-400 hover:text-indigo-600 dark:hover:text-indigo-400">Support</a></div>
<div><a href="/about/" title="About - Learn more about cheatsheets.zip" class="text-slate-600 dark:text-slate-400 hover:text-indigo-600 dark:hover:text-indigo-400">About</a></div>
<div><a href="/notes/" title="Notes - Browse our developer notes and tutorials" class="text-slate-600 dark:text-slate-400 hover:text-indigo-600 dark:hover:text-indigo-400">Notes</a></div>
<div><a href="/support/" title="Support - Get help and support our project" class="text-slate-600 dark:text-slate-400 hover:text-indigo-600 dark:hover:text-indigo-400">Support</a></div>
</div>
<div class="mt-4">
<%- partial('share', { extra: 'justify-start' }) %>
+8 -8
View File
@@ -87,50 +87,50 @@
<!-- Share Dropdown Menu (Portal) - Outside header to avoid overflow issues -->
<div id="share-menu" class="fixed z-[9999] w-56 rounded-3xl bg-white dark:bg-slate-800 shadow-xl outline outline-1 outline-slate-200 dark:outline-slate-700 opacity-0 invisible transform scale-95 transition-all duration-200 pointer-events-none">
<div class="py-2">
<a href="#" onclick="shareOnX()" class="share-item flex items-center px-4 py-3 text-sm text-slate-700 dark:text-slate-300 hover:bg-slate-100/50 dark:hover:bg-slate-700/50 transition-colors rounded-xl mx-2 my-1">
<a href="#" onclick="shareOnX()" title="Share on X (Twitter)" aria-label="Share this page on X (Twitter)" role="button" rel="nofollow" class="share-item flex items-center px-4 py-3 text-sm text-slate-700 dark:text-slate-300 hover:bg-slate-100/50 dark:hover:bg-slate-700/50 transition-colors rounded-xl mx-2 my-1">
<div class="flex-shrink-0 w-5 h-5 mr-3 text-[#000000]">
<%- icon("x") %>
</div>
<span class="font-medium">Share on X</span>
</a>
<a href="#" onclick="shareOnFacebook()" class="share-item flex items-center px-4 py-3 text-sm text-slate-700 dark:text-slate-300 hover:bg-slate-100/50 dark:hover:bg-slate-700/50 transition-colors rounded-xl mx-2 my-1">
<a href="#" onclick="shareOnFacebook()" title="Share on Facebook" aria-label="Share this page on Facebook" role="button" rel="nofollow" class="share-item flex items-center px-4 py-3 text-sm text-slate-700 dark:text-slate-300 hover:bg-slate-100/50 dark:hover:bg-slate-700/50 transition-colors rounded-xl mx-2 my-1">
<div class="flex-shrink-0 w-5 h-5 mr-3 text-[#1877f2]">
<%- icon("facebook") %>
</div>
<span class="font-medium">Share on Facebook</span>
</a>
<a href="#" onclick="shareOnReddit()" class="share-item flex items-center px-4 py-3 text-sm text-slate-700 dark:text-slate-300 hover:bg-slate-100/50 dark:hover:bg-slate-700/50 transition-colors rounded-xl mx-2 my-1">
<a href="#" onclick="shareOnReddit()" title="Share on Reddit" aria-label="Share this page on Reddit" role="button" rel="nofollow" class="share-item flex items-center px-4 py-3 text-sm text-slate-700 dark:text-slate-300 hover:bg-slate-100/50 dark:hover:bg-slate-700/50 transition-colors rounded-xl mx-2 my-1">
<div class="flex-shrink-0 w-5 h-5 mr-3 text-[#ff4500]">
<%- icon("reddit") %>
</div>
<span class="font-medium">Share on Reddit</span>
</a>
<a href="#" onclick="shareOnPinterest()" class="share-item flex items-center px-4 py-3 text-sm text-slate-700 dark:text-slate-300 hover:bg-slate-100/50 dark:hover:bg-slate-700/50 transition-colors rounded-xl mx-2 my-1">
<a href="#" onclick="shareOnPinterest()" title="Share on Pinterest" aria-label="Share this page on Pinterest" role="button" rel="nofollow" class="share-item flex items-center px-4 py-3 text-sm text-slate-700 dark:text-slate-300 hover:bg-slate-100/50 dark:hover:bg-slate-700/50 transition-colors rounded-xl mx-2 my-1">
<div class="flex-shrink-0 w-5 h-5 mr-3 text-[#bd081c]">
<%- icon("pinterest") %>
</div>
<span class="font-medium">Share on Pinterest</span>
</a>
<a href="#" onclick="shareOnLinkedIn()" class="share-item flex items-center px-4 py-3 text-sm text-slate-700 dark:text-slate-300 hover:bg-slate-100/50 dark:hover:bg-slate-700/50 transition-colors rounded-xl mx-2 my-1">
<a href="#" onclick="shareOnLinkedIn()" title="Share on LinkedIn" aria-label="Share this page on LinkedIn" role="button" rel="nofollow" class="share-item flex items-center px-4 py-3 text-sm text-slate-700 dark:text-slate-300 hover:bg-slate-100/50 dark:hover:bg-slate-700/50 transition-colors rounded-xl mx-2 my-1">
<div class="flex-shrink-0 w-5 h-5 mr-3 text-[#0a66c2]">
<%- icon("linkedin") %>
</div>
<span class="font-medium">Share on LinkedIn</span>
</a>
<a href="#" onclick="shareOnLine()" class="share-item flex items-center px-4 py-3 text-sm text-slate-700 dark:text-slate-300 hover:bg-slate-100/50 dark:hover:bg-slate-700/50 transition-colors rounded-xl mx-2 my-1">
<a href="#" onclick="shareOnLine()" title="Share on Line" aria-label="Share this page on Line" role="button" rel="nofollow" class="share-item flex items-center px-4 py-3 text-sm text-slate-700 dark:text-slate-300 hover:bg-slate-100/50 dark:hover:bg-slate-700/50 transition-colors rounded-xl mx-2 my-1">
<div class="flex-shrink-0 w-5 h-5 mr-3 text-[#00c300]">
<%- icon("line") %>
</div>
<span class="font-medium">Share on Line</span>
</a>
<div class="border-t border-slate-200 dark:border-slate-600 my-2 mx-2"></div>
<a href="#" onclick="shareViaEmail()" class="share-item flex items-center px-4 py-3 text-sm text-slate-700 dark:text-slate-300 hover:bg-slate-100/50 dark:hover:bg-slate-700/50 transition-colors rounded-xl mx-2 my-1">
<a href="#" onclick="shareViaEmail()" title="Share via Email" aria-label="Share this page via Email" role="button" rel="nofollow" class="share-item flex items-center px-4 py-3 text-sm text-slate-700 dark:text-slate-300 hover:bg-slate-100/50 dark:hover:bg-slate-700/50 transition-colors rounded-xl mx-2 my-1">
<div class="flex-shrink-0 w-5 h-5 mr-3 text-slate-500">
<%- icon("mail") %>
</div>
<span class="font-medium">Share via Email</span>
</a>
<a href="#" onclick="copyToClipboard(); return false;" class="share-item flex items-center px-4 py-3 text-sm text-slate-700 dark:text-slate-300 hover:bg-slate-100/50 dark:hover:bg-slate-700/50 transition-colors rounded-xl mx-2 my-1">
<a href="#" onclick="copyToClipboard(); return false;" title="Copy Link to Clipboard" aria-label="Copy page link to clipboard" role="button" rel="nofollow" class="share-item flex items-center px-4 py-3 text-sm text-slate-700 dark:text-slate-300 hover:bg-slate-100/50 dark:hover:bg-slate-700/50 transition-colors rounded-xl mx-2 my-1">
<div class="flex-shrink-0 w-5 h-5 mr-3 text-slate-500">
<%- icon("copy") %>
</div>
+1 -1
View File
@@ -1,4 +1,4 @@
<a href="<%- url_for(url) %>">
<a href="<%- url_for(url) %>" title="<%- title %> Cheatsheet">
<div class="card <%- background %>" <% if (label) { %> data-label="<%- label %>" <% }%> >
<%- icon(slug) %>
<p><%- title %></p>
+3 -3
View File
@@ -23,7 +23,7 @@
<!-- CTA Buttons -->
<div class="flex flex-col lg:flex-row items-center justify-center gap-4 mb-16 max-w-4xl mx-auto">
<!-- GitHub Star Button -->
<a href="<%- edit_page() %>" target="_blank"
<a href="<%- edit_page() %>" target="_blank" rel="noopener noreferrer" title="Star cheatsheets.zip on GitHub"
class="group inline-flex items-center px-6 py-3 bg-white/10 backdrop-blur-sm border border-white/20 rounded-xl text-white hover:bg-white/20 transition-all duration-300 hover:scale-105 hover:shadow-lg">
<div class="mr-3">
<%- icon("github") %>
@@ -35,7 +35,7 @@
</a>
<!-- Follow on X Button -->
<a href="https://x.com/FechinLi" target="_blank"
<a href="https://x.com/FechinLi" target="_blank" rel="noopener noreferrer" title="Follow @FechinLi on X (Twitter)"
class="group inline-flex items-center px-6 py-3 bg-black/20 backdrop-blur-sm border border-white/20 rounded-xl text-white hover:bg-black/30 transition-all duration-300 hover:scale-105 hover:shadow-lg">
<div class="mr-3 group-hover:scale-110 transition-transform">
<%- icon("x") %>
@@ -47,7 +47,7 @@
</a>
<!-- Buy Me a Coffee Button -->
<a href="<%- donation_link('buymeacoffee') %>" target="_blank"
<a href="<%- donation_link('buymeacoffee') %>" target="_blank" rel="noopener noreferrer" title="Buy Me a Coffee - Support cheatsheets.zip"
class="group inline-flex items-center px-6 py-3 bg-gradient-to-r from-orange-500/20 to-yellow-500/20 backdrop-blur-sm border border-orange-300/30 rounded-xl text-white hover:from-orange-500/30 hover:to-yellow-500/30 transition-all duration-300 hover:scale-105 hover:shadow-lg">
<div class="mr-3">
<svg style="display:inline" width="16" height="16" viewBox="0 0 25 35" fill="currentColor">
+2 -2
View File
@@ -23,7 +23,7 @@ if (logoTheme === 'dark') {
zipColorClass = 'text-emerald-600 dark:text-emerald-400';
}
%>
<a href="/" class="flex font-medium items-center justify-center md:justify-start text-slate-800 dark:text-slate-300">
<a href="/" title="cheatsheets.zip - Quick Reference and Cheat Sheets for Developers" class="flex font-medium items-center justify-center md:justify-start text-slate-800 dark:text-slate-300">
<% if (icon) { %>
<div class="justify-center <%= iconColorClass %> mr-3 text-4xl">
<div class="self-center">
@@ -36,7 +36,7 @@ if (logoTheme === 'dark') {
</span>
</a>
<% if (page.layout == "note" || page._isNotePagination){ %>
<a class="hidden md:block" href="/notes/">
<a class="hidden md:block" href="/notes/" title="Notes - Browse our developer notes and tutorials">
<span class="flex items-center pl-2 ml-2 text-lg text-slate-300 md:border-l border-slate-400 dark:border-slate-700 hover:text-white transition-colors">Notes</span>
</a>
<% } %>
@@ -1,7 +1,7 @@
<section class="w-full grid grid-cols-2 md:grid-cols-4 gap-6 md:gap-8">
<% theme.index_recommends.forEach(function (filePath) { %>
<% let post = site.posts.findOne({slug: filePath}); %>
<a href="<%= url_for(post.path) %>">
<a href="<%= url_for(post.path) %>" title="<%= post.title %> Cheatsheet">
<div class="card <%= post.background %>">
<%- icon(post.slug) %>
<p><%= post.title %></p>
+1 -1
View File
@@ -2,7 +2,7 @@
<ul class="post-tags-list" itemprop="keywords">
<% page.tags.each(function(tag) { %>
<li class="post-tags-list-item">
<a class="post-tags-list-link dark:text-slate-300" href="javascript:void(0)" rel="tag"><%- tag.name %></a>
<a class="post-tags-list-link dark:text-slate-300" href="javascript:void(0)" rel="tag" title="<%- tag.name %> tag"><%- tag.name %></a>
</li>
<% }) %>
</ul>
+1 -1
View File
@@ -2,7 +2,7 @@
<%
var cats = [];
page.categories.forEach(function (cat) {
cats.push('<a class="breadcrumb" href="' + config.root + cat.path + '">' + cat.name + '</a>');
cats.push('<a class="breadcrumb" href="' + config.root + cat.path + '" title="' + cat.name + ' category">' + cat.name + '</a>');
});
%>
@@ -1,4 +1,4 @@
<a href="<%= url_for(post.path) %>"
<a href="<%= url_for(post.path) %>" title="<%= post.title %> Cheatsheet - Quick Reference"
class="group flex items-center p-3 bg-slate-50 rounded-lg hover:shadow dark:bg-slate-900 hover:bg-gradient-to-r hover:from-indigo-500 hover:to-purple-600 fadeIn">
<div class="ml-4 truncate hover:text-clip overflow-hidden">
<p class="mb-1 text-sm font-medium text-slate-900 dark:text-slate-300 group-hover:text-white"><%= post.title %>
+1 -1
View File
@@ -1,7 +1,7 @@
<% if (page.tags && page.tags.length > 0){ %>
<div class="tags-row">
<% page.tags.forEach(function(tag) { %>
<a href="<%= config.root + tag.path %>"><%= tag.name %></a>
<a href="<%= config.root + tag.path %>" title="<%= tag.name %> tag"><%= tag.name %></a>
<% }); %>
</div>
<% } %>
+3 -3
View File
@@ -1,12 +1,12 @@
<% if (page.link){ %>
<% if (page.title){ %>
<h1><a href="<%- page.link %>" target="_blank"><%= page.title || __('no_title') %></a></h1>
<h1><a href="<%- page.link %>" target="_blank" title="<%= page.title || 'External Link' %>"><%= page.title || __('no_title') %></a></h1>
<% } else { %>
<h1><a href="<%- page.link %>" target="_blank"><%= page.link || __('no_title') %></a></h1>
<h1><a href="<%- page.link %>" target="_blank" title="<%= page.link || 'External Link' %>"><%= page.link || __('no_title') %></a></h1>
<% } %>
<% } else { %>
<% if (false){ %>
<h1><a href="<%- url_for(page.path) %>"><%= page.title || __('no_title') %></a></h1>
<h1><a href="<%- url_for(page.path) %>" title="<%= page.title || 'Page Title' %>"><%= page.title || __('no_title') %></a></h1>
<% } else { %>
<h1><%= page.title || __('no_title') %></h1>
<% } %>
+6 -6
View File
@@ -1,8 +1,8 @@
<div class="inline-flex text-slate-500 sm:ml-auto sm:mt-0 mt-2 <% if (extra && extra.includes('justify-start')) { %>justify-start<% } else { %>justify-center sm:justify-start<% } %> <% if (extra && !extra.includes('justify-start')) { %><%- extra %><% } %>">
<a class="mr-3 fadeIn hover:text-slate-700 dark:hover:text-slate-300" href="<%- share_link("facebook") %>" target="_blank"><%-icon('facebook')%></a>
<a class="mx-3 fadeIn hover:text-slate-700 dark:hover:text-slate-300" href="<%- share_link("x") %>" target="_blank"><%-icon('x')%></a>
<a class="mx-3 fadeIn hover:text-slate-700 dark:hover:text-slate-300" href="<%- share_link("reddit") %>" target="_blank"><%-icon('reddit')%></a>
<a class="mx-3 fadeIn hover:text-slate-700 dark:hover:text-slate-300" href="<%- share_link("pinterest") %>" target="_blank"><%-icon('pinterest')%></a>
<a class="mx-3 fadeIn hover:text-slate-700 dark:hover:text-slate-300" href="<%- share_link("linkedin") %>" target="_blank"><%-icon('linkedin')%></a>
<a class="ml-3 fadeIn hover:text-slate-700 dark:hover:text-slate-300" href="<%- share_link("line") %>" target="_blank"><%-icon('line')%></a>
<a class="mr-3 fadeIn hover:text-slate-700 dark:hover:text-slate-300" href="<%- share_link("facebook") %>" target="_blank" rel="nofollow noopener noreferrer" title="Share on Facebook" aria-label="Share this page on Facebook"><%-icon('facebook')%><span class="sr-only">Share on Facebook</span></a>
<a class="mx-3 fadeIn hover:text-slate-700 dark:hover:text-slate-300" href="<%- share_link("x") %>" target="_blank" rel="nofollow noopener noreferrer" title="Share on X (Twitter)" aria-label="Share this page on X (Twitter)"><%-icon('x')%><span class="sr-only">Share on X (Twitter)</span></a>
<a class="mx-3 fadeIn hover:text-slate-700 dark:hover:text-slate-300" href="<%- share_link("reddit") %>" target="_blank" rel="nofollow noopener noreferrer" title="Share on Reddit" aria-label="Share this page on Reddit"><%-icon('reddit')%><span class="sr-only">Share on Reddit</span></a>
<a class="mx-3 fadeIn hover:text-slate-700 dark:hover:text-slate-300" href="<%- share_link("pinterest") %>" target="_blank" rel="nofollow noopener noreferrer" title="Share on Pinterest" aria-label="Share this page on Pinterest"><%-icon('pinterest')%><span class="sr-only">Share on Pinterest</span></a>
<a class="mx-3 fadeIn hover:text-slate-700 dark:hover:text-slate-300" href="<%- share_link("linkedin") %>" target="_blank" rel="nofollow noopener noreferrer" title="Share on LinkedIn" aria-label="Share this page on LinkedIn"><%-icon('linkedin')%><span class="sr-only">Share on LinkedIn</span></a>
<a class="ml-3 fadeIn hover:text-slate-700 dark:hover:text-slate-300" href="<%- share_link("line") %>" target="_blank" rel="nofollow noopener noreferrer" title="Share on Line" aria-label="Share this page on Line"><%-icon('line')%><span class="sr-only">Share on Line</span></a>
</div>
+4 -4
View File
@@ -14,7 +14,7 @@
<div class="flex flex-row justify-between text-blue-dark border-b dark:border-slate-700">
<h2 class="mb-4 text-xl font-medium text-slate-700 dark:text-slate-300">Popular</h2>
<div class="mt-2 sm:mt-0">
<a href="/"
<a href="/" title="More Popular Cheatsheets"
class="flex items-center text-white bg-blue-600 text-sm rounded px-2 py-1 hover:bg-blue-500 focus:outline-none focus:shadow-outline">
<i class="icon icon-placeholder mr-1"></i>
<span class="inline">More</span>
@@ -27,7 +27,7 @@
<div class="flex justify-center w-10 h-10 text-white p-5 rounded-full mr-4 <%- post.background %>">
<i class="self-center icon <%- post.icon %> text-2xl"></i>
</div>
<a href="<%- url_for(post.path) %>" class="underline mx-1 font-medium text-slate-700 dark:text-slate-300">
<a href="<%- url_for(post.path) %>" title="<%- post.title %> Cheat sheet" class="underline mx-1 font-medium text-slate-700 dark:text-slate-300">
<%- post.title %> <span class="text-sm font-light text-slate-700 dark:text-slate-500">Cheat sheet</span>
</a>
</li>
@@ -42,7 +42,7 @@
<div class="flex flex-row justify-between text-blue-dark border-b dark:border-slate-700">
<h2 class="mb-4 text-xl font-medium text-slate-700 dark:text-slate-300">Related Posts</h2>
<div class="mt-2 sm:mt-0">
<a href="/notes/"
<a href="/notes/" title="More Related Posts and Notes"
class="flex items-center text-white bg-blue-600 text-sm rounded px-2 py-1 hover:bg-blue-500 focus:outline-none focus:shadow-outline">
<i class="icon icon-placeholder mr-1"></i>
<span class="inline">More</span>
@@ -52,7 +52,7 @@
<ul>
<% posts.forEach(function (post){ %>
<li class="mt-2">
<a href="<%- url_for(post.path) %>" class="underline mx-1 text-sm text-slate-700 dark:text-slate-300"><%- post.title %></a>
<a href="<%- url_for(post.path) %>" title="<%- post.title %>" class="underline mx-1 text-sm text-slate-700 dark:text-slate-300"><%- post.title %></a>
</li>
<% }); %>
</ul>
+3 -3
View File
@@ -5,15 +5,15 @@
<div class="node-item max-w-4xl mb-6 px-3 md:px-10 py-6 mx-auto bg-white dark:text-slate-300 dark:bg-slate-800 rounded-lg shadow">
<div class="flex items-center justify-between">
<span class="font-light text-slate-600">Sep 9, 2021</span>
<a href="#" class="px-2 py-1 text-slate-100 bg-slate-600 rounded hover:bg-slate-500">JavaScript</a>
<a href="#" title="JavaScript Category" class="px-2 py-1 text-slate-100 bg-slate-600 rounded hover:bg-slate-500">JavaScript</a>
</div>
<div class="mt-2">
<a href="<%- url_for(post.path) %>"
<a href="<%- url_for(post.path) %>" title="<%= post.title %>"
class="text-2xl font-bold text-slate-700 dark:text-slate-300 underline"><%= post.title %></a>
<p class="mt-2 text-slate-600 dark:text-slate-300"><%- post.excerpt %></p>
</div>
<div class="flex items-center justify-between mt-4">
<a href="<%- url_for(post.path) %>" class="underline text-blue-500 dark:opacity-70">Read more</a>
<a href="<%- url_for(post.path) %>" title="Read more about <%= post.title %>" class="underline text-blue-500 dark:opacity-70">Read more</a>
</div>
</div>
<% }); %>