Skip to content

Commit

Permalink
Add "links" page and customize favicon
Browse files Browse the repository at this point in the history
Add "links" page and add link for Linux Do;
Customize favicon;
Update blog's basic info;
  • Loading branch information
moralok committed Dec 10, 2024
1 parent dd419dc commit e364aa5
Show file tree
Hide file tree
Showing 14 changed files with 274 additions and 5 deletions.
17 changes: 17 additions & 0 deletions _config.next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,27 @@ scheme: Gemini
# Dark Mode
darkmode: false

# ---------------------------------------------------------------
# Site Information Settings
# ---------------------------------------------------------------

favicon:
small: /images/favicon-16x16.png
medium: /images/favicon-32x32.png
apple_touch_icon: /images/apple-touch-icon.png
safari_pinned_tab: /images/logo.svg
#android_manifest: /manifest.json

# ---------------------------------------------------------------
# Menu Settings
# ---------------------------------------------------------------

# 菜单
menu:
home: / || fa fa-home
tags: /tags/ || fa fa-tags
archives: /archives/ || fa fa-archive
links: /links/ || fa fa-link

sidebar:
# Sidebar Position.
Expand Down
8 changes: 4 additions & 4 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
## Source: https://github.com/hexojs/hexo/

# Site
title: Moralok
subtitle: ''
description: "假如生命只剩一天"
keywords:
title: Moralok's Blog
subtitle: '你在幼年时当快乐'
description: "却要知道,为这一切的事……"
keywords: [moralok, blog, backend, java]
author: Moralok
language: zh-CN
timezone: Asia/Shanghai
Expand Down
6 changes: 6 additions & 0 deletions source/_data/languages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# language
zh-CN:
# items
menu:
# the translation you perfer
links: 友链
Binary file added source/images/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/images/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/images/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/images/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/images/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/images/favicon.ico
Binary file not shown.
Binary file added source/images/linux_do.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
161 changes: 161 additions & 0 deletions source/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions source/images/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
84 changes: 84 additions & 0 deletions source/links/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
---
title: 友情链接
date: 2024-12-09 21:37:32
type: "links"
---

<style>
.links-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 20px;
margin-top: 40px;
}

.link-item {
background-color: #fff;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-item:hover {
transform: translateY(-5px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.link-card {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 20px;
text-decoration: none;
color: #333;
border-radius: 8px;
}

.link-card:hover {
background-color: #f5f5f5;
}

.link-icon img {
width: 80px;
height: 80px;
margin-bottom: 15px;
border-radius: 50%;
object-fit: cover;
}

.link-info h3 {
font-size: 18px;
font-weight: bold;
margin-bottom: 5px;
}

.link-info p {
font-size: 14px;
color: #666;
text-align: center;
line-height: 1.5;
}

/* 增加响应式设计 */
@media (max-width: 768px) {
.links-container {
grid-template-columns: 1fr;
}
}
</style>

<div class="links-container">
<div class="link-item">
<a href="https://linux.do/?source=moralok_com" target="_blank" class="link-card">
<div class="link-icon">
<img src="/images/linux_do.png" alt="LINUX DO" />
</div>
<div class="link-info">
<h3>LINUX DO</h3>
<p>新的理想型社区</p>
</div>
</a>
</div>
</div>

2 changes: 1 addition & 1 deletion source/tags/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: tags
title: 标签
date: 2023-06-19 19:28:34
type: "tags"
---

0 comments on commit e364aa5

Please sign in to comment.