]> git.otsuka.systems Git - cotsuka.github.io/commitdiff
move last modified into metadata section
authorCameron Otsuka <cameron@otsuka.haus>
Thu, 5 Jun 2025 03:54:41 +0000 (20:54 -0700)
committerCameron Otsuka <cameron@otsuka.haus>
Thu, 5 Jun 2025 03:54:41 +0000 (20:54 -0700)
_includes/layouts/base.njk
_includes/layouts/post.njk

index 812ac87..dd3d177 100644 (file)
@@ -83,9 +83,6 @@
             {%- endfor %}
             </menu>
         </address>
-        <p>
-            Last Modified: <time datetime="{{ updated | htmlDateString }}">{{ updated | htmlDateString }}</time>
-        </p>
         <p>
             &copy; {% currentYear %} {{ metadata.author.name }}.<br>
             All views my own. Not financial advice. Links, citations, and other references are not endorsements. Content is licensed under <a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>.
index c7a1f00..bcb5038 100644 (file)
@@ -14,6 +14,9 @@ layout: layouts/base.njk
        <summary>Metadata</summary>
        <ul>
                <li>Published: <time datetime="{{ page.date | htmlDateString }}">{{ page.date | htmlDateString }}</time></li>
+               {%- if modified -%}
+                       <li>Last Modified: <time datetime="{{ modified | htmlDateString }}">{{ modified | htmlDateString }}</time></li>
+               {%- endif -%}
                <li>
                        {%- if page.filePathStem | startsWith("/reviews") -%}
                                Rating: