Skip to content

Commit

Permalink
post
Browse files Browse the repository at this point in the history
  • Loading branch information
hym authored and hym committed Mar 8, 2024
1 parent 676d9ae commit e548f52
Show file tree
Hide file tree
Showing 58 changed files with 10,080 additions and 851 deletions.
70 changes: 64 additions & 6 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,83 @@
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/

# Site
# Site settings
# 网站综合内容设置:
title: vLog
subtitle: ''
subtitle: 'sometimes code, sometimes design'
description: '个人博客,记录开发过程中遇到的问题'
keywords:
SEOTitle: ming 日常
email: [email protected]
keyword: "hexo,全栈开发"
author: ming
language: zh-CN
language: zh
timezone: 'Asia/Shanghai'

# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: https://blog.xiguayun.cn
# url: https://blog.xiguayun.cn
url: http://localhost:4000
root: /
permalink: :year/:month/:day/:title/
permalink_defaults:
pretty_urls:
trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
trailing_html: true # Set to false to remove trailing '.html' from permalinks

# SNS settings
# 一些社交平台地址,支持以下几种:
#weibo_username: 3286578617
#zhihu_username: ai-er-lan-xue-da
github_username: compasss
#twitter_username: iconie_alloy
#facebook_username: xiaotao.nie.5
#linkedin_username: 小涛-聂-80964aba

# Build settings
anchorjs: true # if you want to customize anchor. check out line:181 of `post.html`

sidebar-avatar: images/avatar.jpeg

# Friends
# 友情链接
# friends: [
# {
# title: "10000H",
# href: "https://www.10000h.top"
# },{
# title: "Xiaotao's Page",
# href: "https://niexiaotao.com"
# },{
# title: "It helps SEO",
# href: "#"
# },{
# title: "浙ICP备16035324号-1",
# href: "https://beian.miit.gov.cn/"
# }
# ]

# comment:
# type: giscus
# script: |
# <script src="https://giscus.app/client.js"
# data-repo="aircloud/hexo-aircloud-blog"
# data-repo-id="MDEwOlJlcG9zaXRvcnkxMjkwNDgyNjg="
# data-category="Announcements"
# data-category-id="DIC_kwDOB7EezM4COhKJ"
# data-mapping="title"
# data-reactions-enabled="1"
# data-emit-metadata="0"
# data-input-position="bottom"
# data-theme="light"
# data-lang="zh-CN"
# crossorigin="anonymous"
# async>
# </script>

search:
path: search.json
field: post

# Directory
source_dir: source
public_dir: public
Expand Down Expand Up @@ -93,7 +151,7 @@ ignore:
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: Butterfly
theme: aircloud

# Deployment
## Docs: https://hexo.io/docs/deployment.html
Expand Down
25 changes: 13 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,19 @@
"server": "hexo server"
},
"hexo": {
"version": "5.4.0"
"version": "7.1.1"
},
"dependencies": {
"hexo": "^5.4.0",
"hexo-generator-archive": "^1.0.0",
"hexo-generator-category": "^1.0.0",
"hexo-generator-index": "^2.0.0",
"hexo-generator-tag": "^1.0.0",
"hexo-renderer-ejs": "^1.0.0",
"hexo-renderer-marked": "^4.0.0",
"hexo-renderer-pug": "^1.0.0",
"hexo-renderer-stylus": "^2.0.1",
"hexo-server": "^2.0.0"
"hexo": "^7.0.0",
"hexo-generator-archive": "^2.0.0",
"hexo-generator-category": "^2.0.0",
"hexo-generator-index": "^3.0.0",
"hexo-generator-search": "^2.4.3",
"hexo-generator-tag": "^2.0.0",
"hexo-renderer-ejs": "^2.0.0",
"hexo-renderer-marked": "^6.0.0",
"hexo-renderer-stylus": "^3.0.0",
"hexo-server": "^3.0.0",
"hexo-theme-landscape": "^1.0.0"
}
}
}
32 changes: 32 additions & 0 deletions source/_posts/2024/windows-safari.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
title: How to test for Safari on Windows
date: 2024-03-08 15:08:32
tags:
- safari
---

"Safari on Windows?", you say. "That's impossible! Safari doesn't run on Windows." And you're right! I mean it used to, but Apple stopped supporting Windows way back in 2012. Which is a bummer for web developers who want to test Safari compatibility.

But... the browser engine Safari uses, WebKit, still supports Windows, probably because iTunes still supports Windows. And Apple even produces Windows builds of WebKit themselves that you can download and use!

There are some other blog posts with instructions for how to do this, but they are a little outdated. Here are the complete steps as of 2022.

+ Download the latest release of <a href="https://github.com/WebKitForWindows/WebKitRequirements/releases" target="_blank">WebKitRequirementsWin64.zip</a>
+ Visit Apple's <a href="https://build.webkit.org/#/builders?tags=%2BWinCairo&amp;tags=%2BRelease&amp;tags=%2BBuild" target="_blank">WebKit Buildbot pages</a>. The build you want is WinCairo-64-bit-Release-Build.
+ Click one of the green numbers. Click one of the green numbers
![aa](images/2024/buildbot-1-9a279e66d481c9954bb5d0d9d0d87943.webp)

+ Expand the transfer-to-s3 section. Expand the transfer-to-s3 section
![aa](images/2024/buildbot-2-d61b5cdad19b1a7102b690801f4452a5.webp)

+ Copy and download the S3 URL. Copy and download this URL
![aa](images/2024/buildbot-3-1bdf1b4bc3d70100dd1616b738f9c5d4.webp)

+ After extracting that zip file you will find MiniBrowser.exe inside. But it won't run yet!
+ Go back to the WebKitRequirementsWin64.zip file you downloaded in step 1, take all the files from the bin64 directory and copy them into the same directory as MiniBrowser.exe.
+ Now you can run MiniBrowser.exe and you're done!
![aa](images/2024/minibrowser-df224250658f7a0dbc7e188e4bf32633.webp)

You can now test how things might work in Safari from your Windows computer! You can use the Web Inspector from the Develop menu just as in Safari. Unfortunately there's no way to activate the Responsive Design mode, so you won't be able to test for iOS.

There are some differences in feature support between MiniBrowser and Safari, so it's not 100% perfect. But basic things will work the same, so you can test if your CSS layout is working properly or if your mouse event handling code is working correctly, for instance.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added source/images/avatar.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions themes/aircloud/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.DS_Store
Thumbs.db
db.json
*.log
node_modules/
public/
.idea/
.deploy*/
unuse/
readme-private.md

.vscode/
21 changes: 21 additions & 0 deletions themes/aircloud/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2018 XiaotaoNie

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
1 change: 1 addition & 0 deletions themes/aircloud/_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__: aircloud
20 changes: 20 additions & 0 deletions themes/aircloud/languages/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
nav:
home: HOME
tags: TAGS
archives: ARCHIVES
about: ABOUT
collect: COLLECT
search: SEARCH
#
#post:
# postTime: 发布于
# tags: 标签
# visit: 访问
post:
postTime: Post
tags: Tags
visit: Visit
donate: donate

search:
search: search
17 changes: 17 additions & 0 deletions themes/aircloud/languages/ko.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
nav:
home:
tags: 태그
archives: 아카이브
about: about
collect: 모으다
search: 검색

post:
postTime: 등록시간
tags: 태그
visit: 방문
donate: 기부

search:
search: 검색

17 changes: 17 additions & 0 deletions themes/aircloud/languages/zh.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
nav:
home: 主页
tags: 标签
archives: 存档
about: 关于
collect: 收藏
search: 搜索

post:
postTime: 发布于
tags: 标签
visit: 访问
donate: 赞赏

search:
search: 搜索

3 changes: 3 additions & 0 deletions themes/aircloud/layout/404.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<p style="text-align: center;font-size: 120px;color: #999999;margin-top: 200px">
404
</p>
56 changes: 56 additions & 0 deletions themes/aircloud/layout/_partial/analytics.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<% if (config.analytics && config.analytics.google){ %>
<% if (config.analytics.google.site_verification){ %>
<meta name="google-site-verification" content="<%= config.analytics.google.site_verification %>"/>
<% } %>
<% if (config.analytics.google.gtag_id){ %>
<script async src="https://www.googletagmanager.com/gtag/js?id=<%= config.analytics.google.gtag_id %>"></script>
<script>
window.dataLayer = window.dataLayer || []
function gtag() {
dataLayer.push(arguments)
}
gtag('js', new Date())
gtag('config', '<%= config.analytics.google.gtag_id %>')
</script>
<% } %>
<% } %>

<% if (config.analytics && config.analytics.cloudflare){ %>
<% if (config.analytics.cloudflare.token){ %>
<script defer src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"token": "<%= config.analytics.cloudflare.token %>"}'></script>
<% } %>
<% } %>

<% if (config.analytics && config.analytics.bing){ %>
<% if (config.analytics.bing.site_verification){ %>
<meta name="msvalidate.01" content="<%= config.analytics.bing.site_verification %>"/>
<% } %>
<% } %>


<% if (config.analytics && config.analytics.baidu){ %>
<% if (config.analytics.baidu.disable_transformation) { %>
<meta http-equiv="Cache-Control" content="no-transform"/>
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<% } %>
<% if (config.analytics.baidu.site_verification){ %>
<meta name="baidu-site-verification" content="<%= config.analytics.baidu.site_verification %>"/>
<% } %>
<% if (config.analytics.baidu.id){ %>
<script type="text/javascript">
var _hmt = _hmt || []
;(function () {
var hm = document.createElement('script')
hm.src = 'https://hm.baidu.com/hm.js?<%= config.analytics.baidu.id %>'
var s = document.getElementsByTagName('script')[0]
s.parentNode.insertBefore(hm, s)
})()
</script>
<% } %>
<% } %>

<% if (config.analytics && config.analytics.umami){ %>
<% if (config.analytics.umami.id && config.analytics.umami.host){ %>
<script async defer data-website-id="<%= config.analytics.umami.id %>" src="<%= config.analytics.umami.host %>/umami.js"></script>
<% } %>
<% } %>
9 changes: 9 additions & 0 deletions themes/aircloud/layout/_partial/donate.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<div class="donate-container">
<div class="donate-button">
<button id="donate-button"><%= __('post.donate') %></button>
</div>
<div class="donate-img-container hide" id="donate-img-container">
<img id="donate-img" src="" data-src="<%= config['root'] %><%= config.donate.img %>">
<p> <%= config.donate.content %> </p>
</div>
</div>
Loading

0 comments on commit e548f52

Please sign in to comment.