From: Aidan Cornelius-Bell Date: Fri, 22 Nov 2024 00:33:52 +0000 (+1030) Subject: Added author and zotero meta to posts X-Git-Url: https://gitweb.mndrdr.org/?a=commitdiff_plain;h=f1412321401695967b447af5e6a26480abb7d7dd;p=arelpe.git Added author and zotero meta to posts --- diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 4a95b53..f4bc18f 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -4,13 +4,21 @@ <%= content_for?(:title) ? yield(:title) : "mind reader :: aidan's sharing project" %> + "> + + + <% if content_for?(:meta_published) %> + + <% end %> <% if content_for?(:meta_description) %> - + + + <% end %> <% if content_for?(:meta_keywords) %> - + <% end %> <%= csrf_meta_tags %> diff --git a/app/views/pubview/post.html.erb b/app/views/pubview/post.html.erb index 9474e0c..f1ecddf 100644 --- a/app/views/pubview/post.html.erb +++ b/app/views/pubview/post.html.erb @@ -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" %>

<%= @post.title %>

<%= link_to "↼ Back to some other dispatches...", "#{root_path}?filter=posts" %>
-

Posted <%= @post.published_at.strftime('%B %d, %Y') %> and tagged <%= raw @post.format_tags %> <% if !@post.short_dispatch?%>Reading Time: about <%= @reading_time %> minute(s).<% end %>

+

Posted <%= @post.published_at.strftime('%B %d, %Y') %> and tagged <%= raw @post.format_tags %> <% if !@post.short_dispatch?%>Reading Time: about <%= @reading_time %> minute(s) <% end %> from: Aidan Cornelius-Bell.

<% else %>

Bookmark comment permalink: