Skip to content

Commit f3ae238

Browse files
committed
migrate to rocketma.dev
- js-level redirect to new domain - update hexo-theme-redefine - add file for open graph
1 parent 43b36e8 commit f3ae238

File tree

4 files changed

+34
-22
lines changed

4 files changed

+34
-22
lines changed

_config.redefine.yml

+18-9
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ global:
9191
enable: true
9292
custom_message: # Custom message. If empty, the site title will be displayed
9393
# Whether to enable open graph
94-
open_graph: true
94+
open_graph:
95+
enable: true
96+
image: /images/opengraph.jpg # default og:image
97+
description: Explore pwn blogs from here
9598
# Google Analytics
9699
google_analytics:
97100
enable: false # Whether to enable Google Analytics
@@ -298,6 +301,7 @@ articles:
298301
image_alignment: center # image alignment. left, center
299302
image_caption: false # Whether to display image caption
300303
link_icon: true # Whether to display link icon
304+
delete_mask: false # Add mask effect to <del> tags, hiding content by default and revealing on hover
301305
title_alignment: left # Title alignment. left, center
302306
headings_top_spacing: # Top spacing for headings from h1-h6
303307
h1: 3.2rem
@@ -429,15 +433,20 @@ footer:
429433
# Docs: https://redefine-docs.ohevan.com/inject
430434
inject:
431435
# Whether to enable inject
432-
enable: false
436+
enable: true
433437
# Inject custom head html code
434-
head:
435-
-
436-
-
438+
head:
439+
- |
440+
<script>
441+
if (window.location.hostname === "rocketmadev.github.io") {
442+
window.location.replace("https://rocketma.dev" + window.location.pathname + window.location.search);
443+
}
444+
</script>
445+
# -
437446
# Inject custom footer html code
438-
footer:
439-
-
440-
-
447+
# footer:
448+
# -
449+
# -
441450
# INJECT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< end
442451

443452

@@ -466,7 +475,7 @@ plugins:
466475
# Mermaid JS. Requires hexo-filter-mermaid-diagrams (npm i hexo-filter-mermaid-diagrams). See https://mermaid.js.org/
467476
mermaid:
468477
enable: false # enable mermaid or not
469-
version: "9.3.0" # default v9.3.0
478+
version: "11.4.1" # default v11.4.1
470479
# PLUGINS <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< end
471480

472481

_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ timezone: 'Asia/Shanghai'
1313

1414
# URL
1515
## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project'
16-
url: https://RocketMaDev.github.io
16+
url: https://rocketma.dev
1717
permalink: :year/:month/:day/:name/
1818
permalink_defaults:
1919
pretty_urls:

package-lock.json

+15-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/images/opengraph.jpg

83.2 KB
Loading

0 commit comments

Comments
 (0)