diff --git a/_data/lang.yml b/_data/lang.yml index b4149192..e652ed3e 100644 --- a/_data/lang.yml +++ b/_data/lang.yml @@ -1,4 +1,6 @@ zh-CN: + page: + search: "搜索" post: continue: "阅读全文" qrcode: "二维码" @@ -16,6 +18,8 @@ zh-CN: toTelegram: "分享到 Telegram" en-US: + page: + search: "Search" post: continue: "Read more" qrcode: "QR Code" diff --git a/_data/meng.yml b/_data/meng.yml new file mode 100644 index 00000000..f1b9362f --- /dev/null +++ b/_data/meng.yml @@ -0,0 +1,11 @@ +title: # Meng title + switch: true # Meng title switch + visible: "(*´∇`*) 被发现啦~" # State is visible text + hidden: "(つェ⊂)看不到我~" # State is hidden text + with_default_title: true # with default title + reset_time: 1000 # If state is visible , reset default title times(ms) + +cursor: # cursor + switch: true # cursor switch + auto_url: "https://ooo.0o0.ooo/2017/06/12/593ea1901c930.png" # State is auto style + pointer_url: "https://ooo.0o0.ooo/2017/06/12/593ea3612fd77.png" # State is pointer style \ No newline at end of file diff --git a/_data/site.yml b/_data/site.yml index dbeb3878..25361fe8 100644 --- a/_data/site.yml +++ b/_data/site.yml @@ -8,6 +8,7 @@ uiux: android_chrome_color: "#eeeeee" # the color of the Chrome address bar nprogress_color: "#29d" # the color of the top loading progress bar nprogress_buffer: 200 # the top loading progress bar buffers + meng: false background: purecolor: "#eeeeee" # the background color diff --git a/_includes/header.html b/_includes/header.html index 872de487..14c8593b 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -1,3 +1,9 @@ +{% if site.data.site.lang == 'zh-CN' %} +{% assign lang = site.data.lang[site.data.site.lang] %} +{% else %} +{% assign lang = site.data.lang.en-US %} +{% endif %} + {% for menu in site.data.menus %} {% if menu.name == "navSearch" %} {% if menu.switch == true %} @@ -24,7 +30,7 @@
- +
@@ -41,7 +47,7 @@
- +
diff --git a/_includes/script.html b/_includes/script.html index 3cd95f22..e80b0735 100644 --- a/_includes/script.html +++ b/_includes/script.html @@ -5,6 +5,36 @@ + +{% if site.data.site.uiux.meng == true %} +{% if site.data.meng.title.switch == true %} + +{% endif %} +{% endif %} +