Skip to content

Commit

Permalink
up article
Browse files Browse the repository at this point in the history
  • Loading branch information
budaig committed Jan 1, 2025
1 parent b58885d commit b0cead8
Show file tree
Hide file tree
Showing 26 changed files with 212 additions and 139 deletions.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ search:
path: search.xml
field: post
format: html
content: true
limit: 10000

# auto prefixer
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion source/_posts/分享:中医归正-苍茫.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: 分享:中医归正 --- 苍茫
abbrlink:
abbrlink: a67bf115
tags:
- 保健
- 中医归正
Expand Down
8 changes: 0 additions & 8 deletions themes/next/.githooks/install.js

This file was deleted.

1 change: 0 additions & 1 deletion themes/next/.githooks/pre-commit

This file was deleted.

16 changes: 12 additions & 4 deletions themes/next/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

# NexT

> «NexT» is a high quality elegant [Hexo](https://hexo.io) theme. It is crafted from scratch with love.
> NexT is a high quality elegant [Hexo](https://hexo.io) theme. It is crafted from scratch with love.
[![NPM version](https://img.shields.io/npm/v/hexo-theme-next?color=red&logo=npm&style=flat-square)](https://www.npmjs.com/package/hexo-theme-next)
[![NPM Downloads](https://img.shields.io/npm/dm/hexo-theme-next?logo=npm&style=flat-square)](https://www.npmjs.com/package/hexo-theme-next)
Expand All @@ -31,7 +31,7 @@
💟 <a href="https://theme-next.js.org/muse/">Muse</a> | 🔯 <a href="https://theme-next.js.org/mist/">Mist</a> | ♓️ <a href="https://theme-next.js.org/pisces/">Pisces</a> | ♊️ <a href="https://theme-next.js.org">Gemini</a>
<br>
<br>
More «NexT» examples <a href="https://github.com/next-theme/awesome-next#live-preview">here</a>.
More NexT examples <a href="https://github.com/next-theme/awesome-next#live-preview">here</a>.
</p>

## Installation
Expand Down Expand Up @@ -110,10 +110,18 @@ git pull

**If you want to update from v5.x / v7.x to the latest version, read [this][docs-upgrade-url].**

## Community

Connect with us and be part of our growing community!

* **Telegram Group (Chinese Language)**: [Click here to join!](https://t.me/theme_next_cn)
* **Discord Server**: [Join our Discord!](https://discord.gg/qmkgkY3jaG)
* **Gitter**: [Join our Gitter chats!][gitter-url]

## Feedback

* Visit the [Awesome NexT][awesome-next-url] list to share plugins and tutorials with other users.
* Join our [GitHub discussions][discussions-url] / [Gitter][gitter-url] chats.
* Join our [GitHub discussions][discussions-url].
* [Add or improve translation][i18n-url] in few seconds.
* Report a bug in [GitHub Issues][issues-bug-url].
* Request a new feature on [GitHub][issues-feat-url].
Expand All @@ -131,7 +139,7 @@ Also, we welcome Issue or PR to our [official-plugins][official-plugins-url].

## Thanks

«NexT» send special thanks to these great services that sponsor our core infrastructure:
NexT send special thanks to these great services that sponsor our core infrastructure:

<a href="https://github.com"><img height="40" src="https://github.githubassets.com/images/modules/logos_page/GitHub-Logo.png"></a>

Expand Down
12 changes: 6 additions & 6 deletions themes/next/_vendors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ anime:
integrity: sha256-XL2inqUJaslATFnHdJOi9GfQ60on8Wx1C2H8DYiN1xY=
fontawesome:
name: '@fortawesome/fontawesome-free'
version: 6.6.0
version: 6.7.2
file: css/all.min.css
alias: font-awesome
integrity: sha256-5eIC48iZUHmSlSUz9XtjRyK2mzQkHScZY1WdMaoz74E=
integrity: sha256-dABdfBfUoC8vJUBOwGVdm8L9qlMWaHTIfXt+7GnZCIo=
prism:
name: prismjs
version: 1.29.0
Expand Down Expand Up @@ -108,14 +108,14 @@ gitalk_css:
integrity: sha256-AJnUHL7dBv6PGaeyPQJcgQPDjt/Hn/PvYZde1iqfp8U=
firebase_app:
name: firebase
version: 10.14.1
version: 11.1.0
file: firebase-app-compat.js
integrity: sha256-KsPwUaqMNX8FDBi2qNV4Z/We2FthlJrPIRQhOVgfXMQ=
integrity: sha256-k2eD8Bl04gp35v4S01cNbO+3UeLK6mVqpOyUJz4aXzY=
firebase_firestore:
name: firebase
version: 10.14.1
version: 11.1.0
file: firebase-firestore-compat.js
integrity: sha256-oPdfryMK6T4WGGJbidMkl/7TIOrnkCJ8BqrOT8En2a4=
integrity: sha256-r1EpenNle+MZs+KB73PFJnrmIF3k29t5XGrSqfZ9PPw=
algolia_search:
name: algoliasearch
version: 4.24.0
Expand Down
10 changes: 5 additions & 5 deletions themes/next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-theme-next",
"version": "8.21.1",
"version": "8.22.0",
"description": "Elegant and powerful theme for Hexo.",
"main": "package.json",
"files": [
Expand Down Expand Up @@ -33,14 +33,14 @@
"homepage": "https://theme-next.js.org",
"devDependencies": {
"@next-theme/eslint-config": "0.0.4",
"c8": "10.1.2",
"c8": "10.1.3",
"chai": "4.5.0",
"eslint": "9.14.0",
"eslint": "9.17.0",
"hexo": "7.3.0",
"hexo-renderer-marked": "6.3.0",
"js-yaml": "4.1.0",
"mocha": "10.8.2",
"stylelint": "16.10.0",
"mocha": "11.0.1",
"stylelint": "16.12.0",
"stylelint-stylus": "1.0.0"
}
}
6 changes: 3 additions & 3 deletions themes/next/scripts/helpers/font.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = function() {

if (!config || !config.enable) return '';

const fontStyles = ':300,300italic,400,400italic,700,700italic';
const fontStyles = ':ital,wght@0,300;0,400;0,700;1,300;1,400;1,700';
const fontHost = config.host || 'https://fonts.googleapis.com';

// Get a font list from config
Expand All @@ -18,8 +18,8 @@ module.exports = function() {
});

fontFamilies = fontFamilies.map(name => name.trim().replace(/\s/g, '+') + fontStyles);
fontFamilies = [...new Set(fontFamilies)].join('%7C');
fontFamilies = [...new Set(fontFamilies)].map(name => 'family=' + name).join('&');

// Merge extra parameters to the final processed font string
return fontFamilies ? `<link rel="stylesheet" href="${fontHost}/css?family=${fontFamilies}&display=swap&subset=latin,latin-ext">` : '';
return fontFamilies ? `<link rel="stylesheet" href="${fontHost}/css2?${fontFamilies}&display=swap&subset=latin,latin-ext">` : '';
};
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
}

// https://github.com/hexojs/hexo-renderer-marked/pull/264
img + figcaption, .fancybox + figcaption {
// https://github.com/next-theme/hexo-next-exif
figure:not(.highlight) figcaption {
color: $grey-dark;
font-size: $font-size-small;
font-weight: bold;
Expand Down
15 changes: 1 addition & 14 deletions themes/next/source/css/_common/outline/mobile.styl
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
/*
// < 767px
+mobile() {
}
*/

if (hexo-config('mobile_layout_economy')) {
+mobile-small() {
// For Pisces & Gemini schemes only wider width (remove main blocks in Gemini).
Expand Down Expand Up @@ -53,7 +46,7 @@ if (hexo-config('mobile_layout_economy')) {
}

// Fix issue #641
img + figcaption, .fancybox + figcaption {
figure:not(.highlight) figcaption {
margin: -5px auto 15px !important;
}

Expand Down Expand Up @@ -82,9 +75,3 @@ if (hexo-config('mobile_layout_economy')) {
}
}
}
/*
// < 413px
+mobile-smallest() {
}
*/
40 changes: 7 additions & 33 deletions themes/next/source/css/_common/outline/sidebar/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,7 @@
}

.links-of-blogroll-item {
if (hexo-config('links_settings.layout') == 'inline') {
display: inline-block;
}
padding: 2px 10px;

a {
box-sizing: border-box;
display: inline-block;
max-width: 280px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
padding: 0 5px;
}

.popular-posts .popular-posts-item .popular-posts-link:hover {
Expand Down Expand Up @@ -115,27 +103,13 @@
flex-column();
}

.cc-license {
.cc-opacity {
border-bottom: 0;
opacity: .7;

&:hover {
opacity: .9;
}
}

img {
display: inline-block;
}
}

@import 'sidebar-author';
@import 'sidebar-author-links';
@import 'sidebar-button';
@import 'sidebar-blogroll';
@import 'sidebar-nav';
@import 'sidebar-toggle';
@import 'sidebar-nav';
@import 'sidebar-toc';
@import 'sidebar-author';
@import 'site-state';
@import 'sidebar-button';
@import 'sidebar-author-links';
@import 'sidebar-copyright';
@import 'sidebar-blogroll';
@import 'related-posts';
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,20 @@

.links-of-blogroll-list {
list-style: none;
margin: 0;
gap: 5px;
margin: 5px 0 0;
padding: 0;
flex-wrap();

if (hexo-config('links_settings.layout') == 'block') {
flex-direction: column;
}
}

.links-of-blogroll-item {
max-width: calc(100% - 20px);

a {
sidebar-inline-links-item();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.cc-license {
.cc-opacity {
border-bottom: 0;
opacity: .7;

&:hover {
opacity: .9;
}
}

img {
display: inline-block;
}
}
3 changes: 2 additions & 1 deletion themes/next/source/css/_common/scaffolding/base.styl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ body {
}

if (hexo-config('body_scrollbar.stable')) {
overflow-y: scroll;
// https://caniuse.com/mdn-css_properties_scrollbar-gutter
scrollbar-gutter: stable;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ figure.highlight {
}

// See https://github.com/hexojs/hexo-util/pull/229
pre .caption, pre figcaption {
pre .caption {
@extend $figcaption;
margin-bottom: 10px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,10 @@
// https://caniuse.com/mdn-css_properties_gap_grid_context
grid-gap: 1.5rem;
gap: 1.5rem;
grid-template-columns: 1fr 1fr;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
margin-bottom: 20px;
padding: 1rem;

+mobile() {
grid-template-columns: 1fr;
}

.link-grid-container {
border: solid $grey-lighter;
box-shadow: 1rem 1rem .5rem rgba(0, 0, 0, .5);
Expand Down
1 change: 0 additions & 1 deletion themes/next/source/css/_common/scaffolding/tags/tabs.styl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
flex-wrap: wrap;
margin: 0;
padding: 0;
position: -webkit-sticky;
position: sticky;
top: 0;
// Fix issue #398
Expand Down
19 changes: 6 additions & 13 deletions themes/next/source/css/_mixins.styl
Original file line number Diff line number Diff line change
Expand Up @@ -71,24 +71,17 @@ word-wrap() {
}

disable-user-select() {
-moz-user-select: none;
-ms-user-select: none;
-webkit-user-select: none;
user-select: none;
}

sidebar-inline-links-item() {
margin: 5px 0 0;

a {
box-sizing: border-box;
display: inline-block;
max-width: 100%;
overflow: hidden;
padding: 0 5px;
text-overflow: ellipsis;
white-space: nowrap;
}
box-sizing: border-box;
display: inline-block;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

flex-wrap() {
Expand Down
4 changes: 2 additions & 2 deletions themes/next/source/css/_schemes/Gemini/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
}

// ==================================================
// > 768px & < 991px
// >= 768px & <= 991px
// ==================================================
+tablet() {
// Posts in blocks.
Expand Down Expand Up @@ -98,7 +98,7 @@
}

// ==================================================
// < 767px
// <= 767px
// ==================================================
+mobile() {
// Posts in blocks.
Expand Down
Loading

0 comments on commit b0cead8

Please sign in to comment.