Skip to content

Commit

Permalink
chore: 修改域名
Browse files Browse the repository at this point in the history
  • Loading branch information
Humble.X authored and Humble.X committed Nov 13, 2023
1 parent 2cba814 commit 4537331
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 26 deletions.
14 changes: 7 additions & 7 deletions config.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
baseURL = "https://blog.humblex.top/"
baseURL = "https://blog.dramacat.top/"
# [en, zh-cn, fr, pl, ...] determines default content language
# [en, zh-cn, fr, pl, ...] 设置默认的语言
defaultContentLanguage = "zh-cn"
Expand Down Expand Up @@ -491,9 +491,9 @@ enableEmoji = true
enable = true
[params.page.share.ogimage]
enable = true
serverURL = "https://og-image.humblex.top/"
serverURL = "https://og-image.dramacat.top/"
# 文章标题上面的默认图片,文章存在 featuredImage 时优先使用 featuredImage
defaultImage = "https://blog.humblex.top/images/avatar.jpg"
defaultImage = "https://blog.dramacat.top/images/avatar.jpg"
Twitter = true
Facebook = true
Linkedin = false
Expand Down Expand Up @@ -572,7 +572,7 @@ enableEmoji = true
# Waline 评论系统设置 (https://waline.js.org)
[params.page.comment.waline]
enable = true
serverURL = "https://blog-waline.humblex.top"
serverURL = "https://blog-waline.dramacat.top"
visitor = false
emoji = ['https://cdn.jsdelivr.net/gh/walinejs/emojis/weibo']
meta = ['nick', 'mail', 'link']
Expand Down Expand Up @@ -670,9 +670,9 @@ enableEmoji = true
# attr = "customAttribute"
# located in "assets/" 位于 "assets/"
# Or 或者
# websiteCardEmbedCSS = "https://website-card-embed.humblex.top/website-card-embed.css"
# websiteCardEmbedCSS = "https://website-card-embed.dramacat.top/website-card-embed.css"
[params.page.library.js]
websiteCardEmbedJavaScript = "https://website-card-embed.humblex.top/website-card-embed-loveit.js"
websiteCardEmbedJavaScript = "https://website-card-embed.dramacat.top/website-card-embed-loveit.js"
# [params.page.library.js.someOtherJavaScript]
# src = "someOther.js"
# defer = false
Expand All @@ -684,7 +684,7 @@ enableEmoji = true
# 卡片引用配置
# see https://github.com/Humble-Xiang/website-card-embed
[params.page.library.card]
serverURL = 'https://website-card-embed.humblex.top/'
serverURL = 'https://website-card-embed.dramacat.top/'
# Page SEO config
# 页面 SEO 配置
[params.page.seo]
Expand Down
8 changes: 4 additions & 4 deletions content/posts/hugo.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ title = "网站标题"
[params.page.share]
[params.page.share.ogimage]
# og-image 服务地址
serverURL = "https://og-image-demo.humblex.top/"
serverURL = "https://og-image-demo.dramacat.top/"
# 文章分享时的默认图片,文章存在 featuredImage 时优先使用 featuredImage
defaultImage = "https://assets.vercel.com/image/upload/front/assets/design/vercel-triangle-black.svg"
# ......
Expand All @@ -234,11 +234,11 @@ title = "网站标题"
# 卡片引用配置
[params.page.library.js]
# 额外引入第三方 JS 地址
websiteCardEmbedJavaScript = "https://website-card-embed-demo.humblex.top/website-card-embed-loveit.js"
websiteCardEmbedJavaScript = "https://website-card-embed-demo.dramacat.top/website-card-embed-loveit.js"
# see https://github.com/Humble-Xiang/website-card-embed
[params.page.library.card]
# website-card-embed 服务地址
serverURL = 'https://website-card-embed-demo.humblex.top/'
serverURL = 'https://website-card-embed-demo.dramacat.top/'
# ......
# 作者配置
[author]
Expand All @@ -251,7 +251,7 @@ title = "网站标题"

5. (可选,如果你需要卡片引入) [Deploy](https://vercel.com/import/project?template=https://github.com/Humble-Xiang/website-card-embed) 你自己的 Website Card Embed 服务端,并修改配置文件中的 `params.page.libaray.card.serverURL``websiteCardEmbedJavaScript` 为你自己的服务地址。

{{< card "https://blog.humblex.top/website-card-embed" >}}
{{< card "https://blog.dramacat.top/website-card-embed" >}}

6. (可选,如果你需要带文章标题的分享图) [Deploy](https://vercel.com/import/project?template=https://github.com/Humble-Xiang/og-image) 你自己的 og-image 服务端,并修改 `params.page.share.ogimage` 中的配置。

Expand Down
15 changes: 15 additions & 0 deletions content/posts/postgresql.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,18 @@ CREATE USER foo WITH PASSWORD 'foo';
CREATE DATABASE foo OWNER foo;
GRANT ALL PRIVILEGES ON DATABASE foo TO foo;
```

### [28000] FATAL: no pg_hba.conf entry for host

PG 数据库为了安全不会监听除了本地以外的所有请求,如果想要其他 ip 的机器访问的话需要修改 data/pg_hba.conf 文件

```conf
# IPv4 local connections:
host all all 127.0.0.1/32 scram-sha-256
# 添加下面这一行允许任何机器登录
host all all all scram-sha-256
# 添加下面这一行允许 192.168.1.0 到 192.168.1.255 网段登录
host all all 192.168.1.0/24 scram-sha-256
# 添加下面这一行允许 192.168.1.123 登录
host all all 192.168.1.123/32 scram-sha-256
```
4 changes: 2 additions & 2 deletions content/posts/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -612,13 +612,13 @@ React 通过一种比传统的双向绑定略微繁琐的方法来实现反向
[Redux](https://redux.js.org) 是 React 全家桶的一员,Redux 是 JavaScript 状态容器,提供可预测化的状态管理。

{{< card "https://redux.js.org/usage/index" >}}
{{< card "https://blog.humblex.top/redux/" >}}
{{< card "https://blog.dramacat.top/redux/" >}}

#### React Router

React Router 是完整的 React 路由解决方案。React Router 保持 UI 与 URL 同步。它拥有简单的 API 与强大的功能例如代码缓冲加载、动态路由匹配、以及建立正确的位置过渡处理。

{{< card "https://blog.humblex.top/react-router/" >}}
{{< card "https://blog.dramacat.top/react-router/" >}}

#### webpack

Expand Down
2 changes: 1 addition & 1 deletion content/posts/spacevim.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ SpaceVim 是一个社区驱动的 Vim 和 Neovim 发行版。它的灵感来自
#=============================================================================
# Copyright (c) 2019-2023 Humble.Xiang
# Author: Humble.Xiang < humble.xiang@gmail.com >
# URL: https://blog.humblex.top/
# URL: https://blog.dramacat.top/
# License: GPLv3
#=============================================================================

Expand Down
8 changes: 4 additions & 4 deletions content/posts/spring-initializr.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ _使用 IDEA 自带的热部署或者去使用 JRebel,总是你更好的选择
Java annotation library which helps to reduce boilerplate code.
Java 注释库,有助于减少样板代码。

{{< card "https://blog.humblex.top/lombok/" >}}
{{< card "https://blog.dramacat.top/lombok/" >}}

### Spring Configuration Processor

Expand Down Expand Up @@ -239,7 +239,7 @@ Persistence framework with support for custom SQL, stored procedures and advance
使用 MyBatis 的持久化支持。

{{< card "https://mybatis.org/mybatis-3/zh/index.html" >}}
{{< card "https://blog.humblex.top/mybatis/" >}}
{{< card "https://blog.dramacat.top/mybatis/" >}}

### Liquibase Migration

Expand Down Expand Up @@ -308,15 +308,15 @@ MySQL JDBC and R2DBC driver.
MySQL JDBC 和 R2DBC 驱动程序

{{< card "https://dev.mysql.com/doc/mysql-getting-started/en/" >}}
{{< card "https://blog.humblex.top/mysql/" >}}
{{< card "https://blog.dramacat.top/mysql/" >}}

### Oracle Driver

A JDBC driver that provides access to Oracle.
提供对 Oracle 的访问的 JDBC 驱动程序。

{{< card "https://juejin.cn/post/6844903822913978381" >}}
{{< card "https://blog.humblex.top/oracle/" >}}
{{< card "https://blog.dramacat.top/oracle/" >}}

### PostgreSQL Driver

Expand Down
2 changes: 1 addition & 1 deletion content/posts/tcp-ip.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ DNS(Domain Name System)服务是和 HTTP 协议一样位于应用层的协

### HTTP 协议

{{< card "https://blog.humblex.top/http/" >}}
{{< card "https://blog.dramacat.top/http/" >}}

## 协议之间的关系

Expand Down
12 changes: 6 additions & 6 deletions content/posts/website-card-embed.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ series: ["生命不息 折腾不止"]

## 快速上手

直接访问 [Website Card Embed Demo](https://website-card-embed-demo.humblex.top/?url=https://gohugo.io/about/what-is-hugo/) 或者复制以下代码
直接访问 [Website Card Embed Demo](https://website-card-embed-demo.dramacat.top/?url=https://gohugo.io/about/what-is-hugo/) 或者复制以下代码

```md
<iframe
src="https://website-card-embed-demo.humblex.top/?url=https://gohugo.io/about/what-is-hugo/"
src="https://website-card-embed-demo.dramacat.top/?url=https://gohugo.io/about/what-is-hugo/"
style="width:100%;height:124px" frameborder="no">
</iframe>
```
Expand All @@ -35,9 +35,9 @@ series: ["生命不息 折腾不止"]

{{< card "https://github.github.com/gfm/#disallowed-raw-html-extension-" >}}

Website Card Embed 提供了降级方案 `[![what-is-hugo](https://website-card-embed-demo.humblex.top/api/screenshot?url=https://gohugo.io/about/what-is-hugo/)](https://gohugo.io/about/what-is-hugo/)`,可以使用基础的 Markdown 语法渲染一张带链接的图片在 Github 中使用。
Website Card Embed 提供了降级方案 `[![what-is-hugo](https://website-card-embed-demo.dramacat.top/api/screenshot?url=https://gohugo.io/about/what-is-hugo/)](https://gohugo.io/about/what-is-hugo/)`,可以使用基础的 Markdown 语法渲染一张带链接的图片在 Github 中使用。

[![what-is-hugo](https://website-card-embed.humblex.top/api/screenshot?url=https://gohugo.io/about/what-is-hugo/)](https://gohugo.io/about/what-is-hugo/)
[![what-is-hugo](https://website-card-embed.dramacat.top/api/screenshot?url=https://gohugo.io/about/what-is-hugo/)](https://gohugo.io/about/what-is-hugo/)

## 使用 Vercel 部署你自己的服务端

Expand Down Expand Up @@ -96,14 +96,14 @@ image="https://gohugo.io/opengraph/gohugoio-card-base-1_huf001e7df4fd9c00c4355ab
{{- if .IsNamedParams -}}
<iframe
class="website-card-embed"
data-src="https://website-card-embed-demo.humblex.top/?url={{ .Get `url` }}&title={{ .Get `title` }}&description={{ .Get `description` }}&image={{ .Get `image` }}&favicon={{ .Get `favicon` }}"
data-src="https://website-card-embed-demo.dramacat.top/?url={{ .Get `url` }}&title={{ .Get `title` }}&description={{ .Get `description` }}&image={{ .Get `image` }}&favicon={{ .Get `favicon` }}"
style="width: 100%; height: 124px"
frameborder="no"
></iframe>
{{- else -}}
<iframe
class="website-card-embed"
data-src="https://website-card-embed-demo.humblex.top/?url={{ .Get 0 }}"
data-src="https://website-card-embed-demo.dramacat.top/?url={{ .Get 0 }}"
style="width: 100%; height: 124px"
frameborder="no"
></iframe>
Expand Down
2 changes: 1 addition & 1 deletion content/posts/website-description-analysis.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ import AnalysisFactory from "@humble.xiang/website-description-analysis";

## Documentation

{{< card "https://website-description-analysis-docs.humblex.top/" >}}
{{< card "https://website-description-analysis-docs.dramacat.top/" >}}

2 comments on commit 4537331

@vercel
Copy link

@vercel vercel bot commented on 4537331 Nov 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 4537331 Nov 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.