From 9979e144d3b964fdea9272f15a934106be1b6e83 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Thu, 6 Jul 2023 23:33:51 +0800 Subject: [PATCH] Delete leftovers from blog template --- lib/asciidoctor/foodogsquared-extensions.rb | 3 --- templates/admonition.html.erb | 23 --------------------- templates/paragraph.html.erb | 6 ------ 3 files changed, 32 deletions(-) delete mode 100644 templates/admonition.html.erb delete mode 100644 templates/paragraph.html.erb diff --git a/lib/asciidoctor/foodogsquared-extensions.rb b/lib/asciidoctor/foodogsquared-extensions.rb index dac22dc..545d656 100644 --- a/lib/asciidoctor/foodogsquared-extensions.rb +++ b/lib/asciidoctor/foodogsquared-extensions.rb @@ -2,7 +2,6 @@ require 'asciidoctor' require 'asciidoctor/extensions' -require 'open-uri/cached' require_relative 'helpers' @@ -23,8 +22,6 @@ require_relative 'flathub-link-inline-macro/extension' require_relative 'repology-link-inline-macro/extension' require_relative 'ietf-rfc-link-inline-macro/extension' -OpenURI::Cache.cache_path = '/tmp/open-uri-cache-foodogsquared-website' - Asciidoctor::Extensions.register do inline_macro ManInlineMacro inline_macro IETFRFCLinkInlineMacro diff --git a/templates/admonition.html.erb b/templates/admonition.html.erb deleted file mode 100644 index 4788308..0000000 --- a/templates/admonition.html.erb +++ /dev/null @@ -1,23 +0,0 @@ - class="<%= ['admonitionblock',(attr :name),role].compact * ' ' %>"> - - - - - -
<% - if document.attr? :icons, 'font' %> - <% - elsif document.attr? :icons %> - - - <% - else %> -
<%= @caption %>
<% - end %> -
<% - if title? %> -
<%= title %>
<% - end %> - <%= content %> -
- diff --git a/templates/paragraph.html.erb b/templates/paragraph.html.erb deleted file mode 100644 index e548e55..0000000 --- a/templates/paragraph.html.erb +++ /dev/null @@ -1,6 +0,0 @@ - <% if role %>class="<%= role %>"<% end %>><% -if title? %> -
<%= title %>
<% -end %> -<%= content %> -