copyright field into title
authorThomas Walker Lynch <eknp9n@reasoningtechnology.com>
Sun, 17 May 2026 11:52:27 +0000 (11:52 +0000)
committerThomas Walker Lynch <eknp9n@reasoningtechnology.com>
Sun, 17 May 2026 11:52:27 +0000 (11:52 +0000)
developer/authored/RT/element/title.js
developer/authored/RT/layout/article_tech_ref.js

index fefd991..db821af 100644 (file)
@@ -3,7 +3,7 @@
   Generates a standard document header block.
   
   Usage: 
-  <RT-title title="..." author="..." date="..."></RT-title>
+  <RT-title title="..." author="..." date="..." copyright="..."></RT-title>
 */
 window.StyleRT = window.StyleRT || {};
 
@@ -14,6 +14,7 @@ window.StyleRT.title = function() {
     const title = el.getAttribute('title') || 'Untitled Document';
     const author = el.getAttribute('author');
     const date = el.getAttribute('date');
+    const copyright = el.getAttribute('copyright');
 
     if (debug.log) debug.log('title', `Generating title block: ${title}`);
 
@@ -54,6 +55,17 @@ window.StyleRT.title = function() {
       container.appendChild(meta);
     }
 
+    // Copyright Row
+    if (copyright) {
+      const copy_div = document.createElement('div');
+      copy_div.style.color = 'var(--rt-content-muted)';
+      copy_div.style.fontSize = '0.9em';
+      copy_div.style.marginTop = '0.5rem';
+      // Automatically injects the copyright symbol
+      copy_div.innerHTML = `&copy; ${copyright}`; 
+      container.appendChild(copy_div);
+    }
+
     // Replace the raw tag with the generated block
     el.replaceWith(container);
   });
index 47e6a78..0ac7fec 100644 (file)
         padding: 0.125rem 0.25rem;
         color: var(--rt-content-main);
       }
+
+      rt-article img {
+        max-width: 100%;
+        height: auto;
+        display: block;
+        margin: 1.5rem auto; /* Centers the image */
+      }
+
     `;
     document.head.appendChild(style_node);
   };