Replace single quotes with double quotes

This commit is contained in:
0x1eef 2024-05-26 02:56:50 -03:00
parent 72719684a6
commit efbd0299f9
3 changed files with 5 additions and 3 deletions

View file

@ -39,3 +39,5 @@ Layout/ExtraSpacing:
Enabled: false
Style/TrivialAccessors:
Enabled: false
Style/PercentLiteralDelimiters:
Enabled: false

View file

@ -2,14 +2,14 @@
module Mixin::Inline
def inline_json(path, class_name: File.basename(path, File.extname(path)))
"<script class='json #{class_name}' type='application/json'>" \
%|<script class="json #{class_name}" type="application/json">| \
"#{items[path].compiled_content}" \
"</script>"
end
def inline_css(path)
class_name = File.basename(path, File.extname(path))
"<style class='css #{class_name}'>" \
%|<style class="css #{class_name}">| \
"#{items[path.sub(".css", ".scss")].compiled_content}" \
"</style>"
end

View file

@ -5,7 +5,7 @@
<%= inline_css('/css/vendor/postman.css') %>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<meta name="description" content='<%= t(locale, 'meta.stream.description', {surah_name: surah.name}) %>'>
<meta name="description" content="<%= t(locale, 'meta.stream.description', {surah_name: surah.name}) %>">
<%= erb("_revision.html.erb") %>
<%= opengraph(context) %>
<link