]> gitweb.mndrdr.org Git - arelpe.git/commitdiff
Added author and zotero meta to posts
authorAidan Cornelius-Bell <[email protected]>
Fri, 22 Nov 2024 00:33:52 +0000 (11:03 +1030)
committerAidan Cornelius-Bell <[email protected]>
Fri, 22 Nov 2024 00:33:52 +0000 (11:03 +1030)
app/views/layouts/application.html.erb
app/views/pubview/post.html.erb

index 4a95b532b6cfade1ad1be54c88a37b202127362f..f4bc18fe02781a51e6819bcda58bad553f0a09bb 100644 (file)
@@ -4,13 +4,21 @@
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1">
     <title><%= content_for?(:title) ? yield(:title) : "mind reader :: aidan's sharing project" %></title>
+    <meta name="citation_title" content="<%= content_for?(:title) ? yield(:title) : "mind reader :: aidan's sharing project" %>">
     <meta name="robots" content="index, follow">
     <meta name="author" content="Aidan Cornelius-Bell">
+    <meta name="citation_author" content="Cornelius-Bell, Aidan">
+    <meta name="citation_journal_title" content="mind reader">
+    <% if content_for?(:meta_published) %>
+    <meta name="citation_publication_date" content="<%= yield(:meta_published)%>">
+    <% end %>
     <% if content_for?(:meta_description) %>
-      <meta name="description" content="<%= yield(:meta_description) %>">
+    <meta name="description" content="<%= yield(:meta_description) %>">
+    <meta name="citation_abstract" content="<%= yield(:meta_description) %>">
+    <meta name="citation_type" content="article">
     <% end %>
     <% if content_for?(:meta_keywords) %>
-      <meta name="keywords" content="<%= yield(:meta_keywords) %>">
+    <meta name="keywords" content="<%= yield(:meta_keywords) %>">
     <% end %>
     
     <%= csrf_meta_tags %>
index 9474e0cdd26eb94388080a9ad8a882b3207bdaf0..f1ecddf64bd746c4bd6741319aef0e722a827584 100644 (file)
@@ -5,11 +5,12 @@
   <% content_for :title, @post.title %>
   <% content_for :meta_description, "#{@post.generate_excerpt(150)}." %>
   <% content_for :meta_keywords, "#{@post.tags}" %>
+  <% content_for :meta_published, "#{@post.created_at&.strftime('%Y-%m-%d')}" %>
   <% if @post.post_type != "bookmark" %>
   <h1><%= @post.title %></h1>
   <%= link_to "↼ Back to some other dispatches...", "#{root_path}?filter=posts" %>
   <div class="postmeta">
-       <p>Posted <%= @post.published_at.strftime('%B %d, %Y') %> and tagged <%= raw @post.format_tags %> <% if [email protected]_dispatch?%>Reading Time: about <%= @reading_time %> minute(s).<% end %></p>
+       <p>Posted <%= @post.published_at.strftime('%B %d, %Y') %> and tagged <%= raw @post.format_tags %> <% if [email protected]_dispatch?%>Reading Time: about <%= @reading_time %> minute(s) <% end %> from: Aidan Cornelius-Bell.</p>
   </div>
   <% else %>
   <h1 style="margin-bottom: -.8em">Bookmark comment permalink:</h1>