Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions templates/components/footer.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</div>
<div>
<a href="${ema:homeUrl}" aria-label="Go Home" title="Go Home">
<svg style="width: 1rem;" class="hover:text-${theme}-700" fill="none" stroke="currentColor"
<svg style="width: 1rem; height: 1rem;" width="16" height="16" class="hover:text-${theme}-700" fill="none" stroke="currentColor"
viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6" />
Expand All @@ -17,7 +17,7 @@
</div>
<div>
<a href="${ema:indexUrl}" aria-label="View Index" title="View Index">
<svg style="width: 1rem;" class="hover:text-${theme}-700" fill="none" stroke="currentColor"
<svg style="width: 1rem; height: 1rem;" width="16" height="16" class="hover:text-${theme}-700" fill="none" stroke="currentColor"
viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253" />
Expand All @@ -26,7 +26,7 @@
</div>
<div>
<a href="${ema:tagIndexUrl}" aria-label="View Tags" title="View Tags">
<svg style="width: 1rem;" class="hover:text-${theme}-700" fill="none" stroke="currentColor"
<svg style="width: 1rem; height: 1rem;" width="16" height="16" class="hover:text-${theme}-700" fill="none" stroke="currentColor"
viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z">
Expand All @@ -36,7 +36,7 @@
</div>
<div>
<a href="${ema:taskIndexUrl}" aria-label="View Tasks" title="View Tasks">
<svg style="width: 1rem;" class="hover:text-${theme}-700" fill="none" stroke="currentColor"
<svg style="width: 1rem; height: 1rem;" width="16" height="16" class="hover:text-${theme}-700" fill="none" stroke="currentColor"
viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" />
Expand All @@ -45,7 +45,7 @@
</div>
<div>
<a href="https://developing.today" target="_blank" aria-label="developing.today website" title="developing.today (Emanote ${ema:version})">
<svg style="width: 1rem;" class="hover:text-${theme}-700" fill="none" stroke="currentColor"
<svg style="width: 1rem; height: 1rem;" width="16" height="16" class="hover:text-${theme}-700" fill="none" stroke="currentColor"
viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<g stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
<path d="M12 2L2 7L12 12L22 7L12 2Z" />
Expand All @@ -57,7 +57,7 @@
</div>
<div>
<a href="https://github.com/developing-today/zettel/edit/main/${ema:note:source-path}" aria-label="Edit This Page" title="Edit This Page">
<svg style="width: 1rem;" class="hover:text-${theme}-700" fill="none" stroke="currentColor"
<svg style="width: 1rem; height: 1rem;" width="16" height="16" class="hover:text-${theme}-700" fill="none" stroke="currentColor"
viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" />
Expand All @@ -66,7 +66,7 @@
</div>
<div>
<a href="${value:deleteBaseUrl}/${ema:note:source-path}" aria-label="Delete This Page" title="Delete This Page">
<svg style="width: 1rem;" class="hover:text-${theme}-700" fill="none" stroke="currentColor"
<svg style="width: 1rem; height: 1rem;" width="16" height="16" class="hover:text-${theme}-700" fill="none" stroke="currentColor"
viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />
Expand All @@ -75,7 +75,7 @@
</div>
<div>
<a href="https://github.com/developing-today/zettel/new/main/${ema:note:source-file-base}" aria-label="New Note" title="New@${ema:note:source-file-base}/">
<svg style="width: 1rem;" class="hover:text-${theme}-700" fill="none" stroke="currentColor"
<svg style="width: 1rem; height: 1rem;" width="16" height="16" class="hover:text-${theme}-700" fill="none" stroke="currentColor"
viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M12 4.5v15m7.5-7.5h-15">
Expand All @@ -85,7 +85,7 @@
</div>
<div>
<a href="https://github.com/developing-today/zettel/new/main/${ema:note:source-file-base}" aria-label="New Note in Folder" title="New@${ema:note:source-file-base}/">
<svg style="width: 1rem;" class="hover:text-${theme}-700" fill="none" stroke="currentColor"
<svg style="width: 1rem; height: 1rem;" width="16" height="16" class="hover:text-${theme}-700" fill="none" stroke="currentColor"
viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M12 9v6m3-3H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z">
Expand Down
2 changes: 1 addition & 1 deletion templates/components/sidebar-tree.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
</node:terminal>
</tree:open>
<a href="https://github.com/developing-today/zettel/new/main/${node:source-file-base}" aria-label="New Note in Folder" title="New@${node:source-file-base}/">
<svg style="width: 1rem;" class="hover:text-${theme}-700" fill="none" stroke="currentColor"
<svg style="width: 1rem; height: 1rem;" width="16" height="16" class="hover:text-${theme}-700" fill="none" stroke="currentColor"
viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M12 4.5v15m7.5-7.5h-15">
Expand Down
16 changes: 9 additions & 7 deletions templates/components/sidebar.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,30 @@
<div class="px-2 py-2 text-gray-800">
<div id="indexing-links" class="flex flex-row float-right p-2 space-x-2 text-gray-500">
<a href="https://github.com/developing-today/zettel/new/main/${ema:note:source-file-base}" aria-label="New Note in Folder" title="New@${ema:note:source-file-base}/">
<svg style="width: 1rem;" class="hover:text-${theme}-700" fill="none" stroke="currentColor"
<svg style="width: 1rem; height: 1rem;" width="16" height="16" class="hover:text-${theme}-700" fill="none" stroke="currentColor"
viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M12 9v6m3-3H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z">
</path>
</svg>
</a>
<a href="https://github.com/developing-today/zettel/new/main/${ema:note:source-file-base}" aria-label="New Note" title="New@${ema:note:source-file-base}/">
<svg style="width: 1rem;" class="hover:text-${theme}-700" fill="none" stroke="currentColor"
<svg style="width: 1rem; height: 1rem;" width="16" height="16" class="hover:text-${theme}-700" fill="none" stroke="currentColor"
viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M12 4.5v15m7.5-7.5h-15">
</path>
</svg>
</a>
<a href="https://github.com/developing-today/zettel/edit/main/${ema:note:source-path}" aria-label="Edit This Page" title="Edit This Page">
<svg style="width: 1rem;" class="hover:text-${theme}-700" fill="none" stroke="currentColor"
<svg style="width: 1rem; height: 1rem;" width="16" height="16" class="hover:text-${theme}-700" fill="none" stroke="currentColor"
viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" />
</svg>
</a>
<a href="${ema:indexUrl}" aria-label="View Index" title="View Index">
<svg style="width: 1rem;" class="hover:text-${theme}-700" fill="none" stroke="currentColor"
<svg style="width: 1rem; height: 1rem;" width="16" height="16" class="hover:text-${theme}-700" fill="none" stroke="currentColor"
viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253">
Expand All @@ -43,11 +43,13 @@
<a href="${ema:homeUrl}" aria-label="Go Home" title="Go Home">
<ema:metadata>
<with var="template">
<!-- The style width attribute here is to prevent huge
icon from displaying at those rare occasions when Tailwind
<!-- The style width/height attributes here are to prevent layout shifts (CLS)
and prevent huge icon from displaying at those rare occasions when Tailwind
hasn't kicked in immediately on page load
-->
<img style="width: 1rem;"
<img style="width: 1rem; height: 1rem;"
width="16"
height="16"
class="transition transform hover:scale-110 hover:opacity-80"
decoding="async"
src="${value:iconUrl}"
Expand Down
8 changes: 4 additions & 4 deletions templates/hooks/after-note.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,28 @@
<with var="template">
<a class="text-gray-300 hover:text-${theme}-600 text-sm" aria-label="Edit This Page" title="Edit This Page"
href="https://github.com/developing-today/zettel/edit/main/${ema:note:source-path}">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" />
</svg>
</a>
<a class="text-gray-300 hover:text-${theme}-600 text-sm" aria-label="Delete This Page" title="Delete This Page"
href="${value:deleteBaseUrl}/${ema:note:source-path}">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />
</svg>
</a>
<a class="text-gray-300 hover:text-${theme}-600 text-sm" aria-label="New Note" title="New@${ema:note:source-file-base}/"
href="https://github.com/developing-today/zettel/new/main/${ema:note:source-file-base}">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M12 4.5v15m7.5-7.5h-15" />
</svg>
</a>
<a class="text-gray-300 hover:text-${theme}-600 text-sm" aria-label="New Note in Folder" title="New@${ema:note:source-file-base}/"
href="https://github.com/developing-today/zettel/new/main/${ema:note:source-file-base}">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M12 9v6m3-3H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" />
</svg>
Expand Down
Loading