From 63a8fccc48cfee0cfac00234f07a37390623be33 Mon Sep 17 00:00:00 2001
From: curben <2809763-curben@users.noreply.gitlab.com>
Date: Fri, 30 Aug 2019 05:50:10 +0100
Subject: [PATCH] Revert "fix(head): meta generator tag should be after
"
This reverts commit 710b9b25a1f9e5b8c7d554a5ea012381fdd551dc.
---
scripts/cloudinary.js | 33 +++++++++++++-------------
themes/typing/layout/_partial/head.ejs | 2 +-
2 files changed, 18 insertions(+), 17 deletions(-)
diff --git a/scripts/cloudinary.js b/scripts/cloudinary.js
index 5728945..aa291b1 100644
--- a/scripts/cloudinary.js
+++ b/scripts/cloudinary.js
@@ -10,7 +10,7 @@
hexo.extend.tag.register('cloudinary', (args) => {
const user = 'curben'
- const fileName = args[0]
+ let fileName = args[0]
const alt = args[1] || ''
let modern = ''
let legacy = ''
@@ -26,36 +26,37 @@ hexo.extend.tag.register('cloudinary', (args) => {
legacy = fileName
}
- const modernLink = link + '/' + modern + '?auto_format=false'
- const legacyLink = link + '/' + legacy + '?auto_format=false'
+ fileName += '?auto_format=false'
+ modern += '?auto_format=false'
+ legacy += '?auto_format=false'
const img = ``
if (fileName.endsWith('.png') || fileName.endsWith('.webp')) {
- return `
- `
} else {
- return `${img}`
+ return ``
}
})
diff --git a/themes/typing/layout/_partial/head.ejs b/themes/typing/layout/_partial/head.ejs
index 2047e3d..abc4236 100644
--- a/themes/typing/layout/_partial/head.ejs
+++ b/themes/typing/layout/_partial/head.ejs
@@ -1,5 +1,6 @@
+ <%- metaGenerator() %>
<%
let title = page.title
@@ -22,7 +23,6 @@
%>
<% if (title) { %><%= title %> | <% } %><%= config.title %>
- <%- metaGenerator() %>
<%/* Add Open Graph meta tags for easier sharing on social networking sites */%>
<%/* Modified from original source for compatibility with my blog */%>
<%- openGraph() %>