Move postman.scss to /css/vendor/postman.scss
This commit is contained in:
parent
8beaf71ac8
commit
0c05e5344c
5 changed files with 5 additions and 5 deletions
4
Rules
4
Rules
|
@ -27,10 +27,10 @@ Nanoc::Tidy
|
|||
|
||||
##
|
||||
# See packages/typescript/postman
|
||||
compile "/css/postman.scss" do
|
||||
compile "/css/vendor/postman.scss" do
|
||||
filter :sass, syntax: :scss, style: :compact
|
||||
filter :rainpress
|
||||
write("/css/postman.css")
|
||||
write("/css/vendor/postman.css")
|
||||
end
|
||||
|
||||
##
|
||||
|
|
|
@ -11,7 +11,7 @@ module Mixin::Inline
|
|||
def inline_css(path)
|
||||
class_name = File.basename(path, File.extname(path))
|
||||
"<style class='css #{class_name}'>" \
|
||||
"#{File.binread(File.join(build_dir, "css", "postman.css"))}" \
|
||||
"#{File.binread(File.join(build_dir, path))}" \
|
||||
"</style>"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
<html lang="<%= context.locale %>">
|
||||
<head>
|
||||
<title><%= t(context.locale, "TheNobleQuran") %></title>
|
||||
<%= inline_css('/css/vendor/postman.css') %>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
||||
<meta charset="UTF-8">
|
||||
<meta name="description" content="<%= t(context.locale, 'meta.index.description') %>">
|
||||
|
@ -19,7 +20,6 @@
|
|||
href="https://al-quran.reflectslight.io/<%= locale %>/"
|
||||
/>
|
||||
<% end %>
|
||||
<%= inline_css('/css/postman.scss') %>
|
||||
<%= opengraph(context) %>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<html lang="<%= context.locale %>">
|
||||
<head>
|
||||
<title> <%= context.surah.name %> </title>
|
||||
<%= inline_css('/css/postman.css') %>
|
||||
<%= 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(context.locale, 'meta.stream.description', {surah_name: context.surah.name}) %>'>
|
||||
|
|
Loading…
Reference in a new issue