forked from sumimakito/hexo-theme-Journal
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from halo-dev/require-1.3.0
Require 1.3.0
- Loading branch information
Showing
18 changed files
with
98 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,12 +8,12 @@ | |
integrity="sha256-chlNFSVx3TdcQ2Xlw7SvnbLAavAQLO0Y/LBiWX04viY=" crossorigin="anonymous"></script> | ||
<script src="//cdn.jsdelivr.net/npm/[email protected]/dist/smooth-scroll.polyfills.min.js" | ||
integrity="sha256-CI4Gq5E0io1Pv0xM3qPM+NUIOhbIBvC3GiN1Y4KhXpw=" crossorigin="anonymous"></script> | ||
<script src="${static!}/source/js/journal.js"></script> | ||
<script src="${theme_base!}/source/js/journal.js"></script> | ||
|
||
<!-- Import prettify js --> | ||
<#if settings.prettify_enable!false> | ||
<#if is_post?? || is_sheet??> | ||
<script src="${static!}/source/js/prettify.min.js"></script> | ||
<script src="${theme_base!}/source/js/prettify.min.js"></script> | ||
<script> | ||
$(function() { | ||
$('pre').addClass('prettyprint linenums').attr('style', 'overflow:auto;'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
<#macro head title,keywords,description> | ||
<#macro head title> | ||
<!DOCTYPE html> | ||
<html lang="zh" xmlns:v-bind="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<title>${title!}</title> | ||
<meta charset="utf-8"> | ||
<meta name="X-UA-Compatible" content="IE=edge"> | ||
<meta name="author" content="${user.nickname!}"> | ||
<meta name="description" content="${description!}"> | ||
<meta name="keywords" content="${keywords!}"> | ||
<link rel="alternate" type="application/atom+xml" title="ATOM 1.0" href="${context!}/atom.xml"> | ||
<meta name="description" content="${meta_description!}"> | ||
<meta name="keywords" content="${meta_keywords!}"> | ||
<link rel="alternate" type="application/atom+xml" title="ATOM 1.0" href="${atom_url!}"> | ||
<meta charset="utf-8"> | ||
<meta name="X-UA-Compatible" content="IE=edge"> | ||
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"> | ||
<meta content="telephone=no" name="format-detection"> | ||
<meta name="renderer" content="webkit"> | ||
<meta name="theme-color" content="#ffffff"> | ||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha256-eSi1q2PG6J7g7ib17yAaWMcrr5GrtohYChqibrV7PBE=" crossorigin="anonymous"> | ||
<link rel="stylesheet" href="${static!}/source/css/journal.min.css"> | ||
<link rel="stylesheet" href="${theme_base!}/source/css/journal.min.css"> | ||
<@global.head /> | ||
<script src="${static!}/source/js/loadCSS.js"></script> | ||
<script src="${theme_base!}/source/js/loadCSS.js"></script> | ||
|
||
<!-- Import prettify css --> | ||
<#if settings.prettify_enable!false> | ||
<#if is_post?? || is_sheet??> | ||
<link rel="stylesheet" href="${static!}/source/css/prettify.min.css"> | ||
<link rel="stylesheet" href="${static!}/source/css/prettify/${settings.prettify_theme!}.min.css"> | ||
<link rel="stylesheet" href="${theme_base!}/source/css/prettify.min.css"> | ||
<link rel="stylesheet" href="${theme_base!}/source/css/prettify/${settings.prettify_theme!}.min.css"> | ||
</#if> | ||
</#if> | ||
|
||
<script> | ||
loadCSS("https://fonts.googleapis.com/css?family=Lora|Montserrat|Fira+Mono|Material+Icons"); | ||
loadCSS("https://fonts.loli.net/css?family=Lora|Montserrat|Fira+Mono|Material+Icons"); | ||
<#-- (function (d) { | ||
var config = { | ||
kitId: 'dwg1tuc', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,28 @@ | ||
<#macro pagination url=""> | ||
<#if posts?? && posts.totalPages gt 1> | ||
<div class="pagination <#if is_index??>index-page</#if>"> | ||
<#if posts.hasPrevious()> | ||
<#if posts.number == 1> | ||
<a class="pagination-action" href="${url}" style="opacity: 1"> | ||
<#else> | ||
<a class="pagination-action" href="${url}page/${posts.number}" style="opacity: 1"> | ||
</#if> | ||
<#else> | ||
<a class="pagination-action" style="opacity: 0"> | ||
</#if> | ||
<i class="material-icons pagination-action-icon"> | ||
chevron_left | ||
</i> | ||
</a> | ||
<div class="pagination-indicator"> | ||
<span>${posts.number+1}/${posts.totalPages!}</span> | ||
</div> | ||
<#if posts.hasNext()> | ||
<a class="pagination-action" href="${url}page/${posts.number+2}" style="opacity: 1"> | ||
<#else> | ||
<a class="pagination-action" style="opacity: 0"> | ||
</#if> | ||
<i class="material-icons pagination-action-icon"> | ||
chevron_right | ||
</i> | ||
</a> | ||
</div> | ||
|
||
<div class="pagination <#if is_index??>index-page</#if>"> | ||
<#if pagination.hasPrev> | ||
<a class="pagination-action" href="${pagination.prevPageFullPath!}" style="opacity: 1"> | ||
<#else> | ||
<a class="pagination-action" style="opacity: 0"> | ||
</#if> | ||
</#macro> | ||
<i class="material-icons pagination-action-icon"> | ||
chevron_left | ||
</i> | ||
</a> | ||
<div class="pagination-indicator"> | ||
<#list pagination.rainbowPages as number> | ||
<#if number.isCurrent> | ||
<span>${number.page!}/${posts.totalPages!}</span> | ||
</#if> | ||
</#list> | ||
</div> | ||
<#if pagination.hasNext> | ||
<a class="pagination-action" href="${pagination.nextPageFullPath!}" style="opacity: 1"> | ||
<#else> | ||
<a class="pagination-action" style="opacity: 0"> | ||
</#if> | ||
<i class="material-icons pagination-action-icon"> | ||
chevron_right | ||
</i> | ||
</a> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.