Skip to content

Commit 955f4d6

Browse files
committed
解除子模块,强制添加主题文件
1 parent 77c7bbf commit 955f4d6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+2345
-1
lines changed

themes/landscape

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 20
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Deploy preview site
2+
3+
on:
4+
# Runs on pushes targeting the default branch
5+
push:
6+
branches: [master]
7+
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
18+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
19+
concurrency:
20+
group: "pages"
21+
cancel-in-progress: false
22+
23+
# Default to bash
24+
defaults:
25+
run:
26+
shell: bash
27+
28+
jobs:
29+
# Build job
30+
build:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v4
35+
with:
36+
repository: hexojs/hexo-theme-unit-test
37+
- name: Setup Pages
38+
id: pages
39+
uses: actions/configure-pages@v5
40+
- name: Use Node.js 20.x
41+
uses: actions/setup-node@v4
42+
with:
43+
node-version: "20"
44+
- name: Install Dependencies
45+
run: npm install
46+
- name: Set url
47+
run: npx hexo config url https://hexojs.github.io/hexo-theme-landscape/
48+
- name: Checkout latest theme
49+
uses: actions/checkout@v4
50+
with:
51+
path: themes/landscape
52+
- name: Build with Hexo
53+
run: npx hexo g
54+
- name: Upload artifact
55+
uses: actions/upload-pages-artifact@v3
56+
with:
57+
path: ./public
58+
59+
# Deployment job
60+
deploy:
61+
environment:
62+
name: github-pages
63+
url: ${{ steps.deployment.outputs.page_url }}
64+
runs-on: ubuntu-latest
65+
needs: build
66+
steps:
67+
- name: Deploy to GitHub Pages
68+
id: deployment
69+
uses: actions/deploy-pages@v4

themes/landscape/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.DS_Store
2+
node_modules

themes/landscape/.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.github

themes/landscape/LICENSE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright (c) 2013 Tommy Chen
2+
3+
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:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
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.

themes/landscape/README.md

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
# Landscape
2+
3+
[![NPM version](https://badge.fury.io/js/hexo-theme-landscape.svg)](https://www.npmjs.com/package/hexo-theme-landscape)
4+
5+
A brand new default theme for [Hexo].
6+
7+
- [Preview](https://hexojs.github.io/hexo-theme-landscape/)
8+
9+
## Installation
10+
11+
### Install
12+
13+
If you're using Hexo 5.0 or later, the simplest way to install is through npm:
14+
15+
```
16+
npm i hexo-theme-landscape
17+
```
18+
19+
Install via git:
20+
21+
```bash
22+
git clone --depth 1 https://github.com/hexojs/hexo-theme-landscape themes/landscape
23+
```
24+
25+
If you would like to enable the RSS, the [hexo-generator-feed](https://github.com/hexojs/hexo-generator-feed) plugin is also required.
26+
27+
### Enable
28+
29+
Modify `theme` setting in `_config.yml` to `landscape`.
30+
31+
```diff
32+
_config.yml
33+
- theme: some-theme
34+
+ theme: landscape
35+
```
36+
37+
### Update
38+
39+
Install the latest version through npm:
40+
41+
```sh
42+
npm install hexo-theme-landscape@latest
43+
```
44+
45+
Or update to the latest master branch via git:
46+
47+
```bash
48+
cd themes/landscape
49+
git pull
50+
```
51+
52+
## Configuration
53+
54+
The configuration file for the theme is `_config.yml` in the repository. As the default theme for Hexo, hexo-theme-landscape is installed via npm during the `hexo init` site creation process, so it is generally located in the `node_modules/hexo-theme-landscape` directory. If you install it via `git clone` or other methods, it might be located in the `themes/landscape` directory.
55+
56+
It is important to note that to prevent your modifications to the theme configuration file from being lost or overwritten during theme upgrades, **we do not recommend directly modifying this default configuration file**. You can copy the theme's `_config.yml` to your blog's root directory as `_config.landscape.yml` and configure it according to the documentation of configuration options therein (see [Alternate Theme Config](https://hexo.io/docs/configuration#Alternate-Theme-Config)).
57+
58+
The following will also detail the usage of some options.
59+
60+
## Features
61+
62+
### FancyBox
63+
64+
Landscape uses [Fancybox] to showcase your photos. You can use Markdown syntax or fancybox tag plugin to add your photos.
65+
66+
```
67+
![img caption](img url)
68+
69+
{% fancybox img_url [img_thumbnail] [img_caption] %}
70+
```
71+
72+
### Sidebar
73+
74+
You can put your sidebar in left side, right side or bottom of your site by editing `sidebar` setting.
75+
76+
Landscape provides 5 built-in widgets:
77+
78+
- category
79+
- tag
80+
- tagcloud
81+
- archives
82+
- recent_posts
83+
84+
All of them are enabled by default. You can edit them in `widget` setting.
85+
86+
### Header links
87+
88+
You can add links to the header area with icons.
89+
90+
```yml
91+
links:
92+
github: https://github.com/your_github_account
93+
twitter: https://twitter.com/your_twitter_account
94+
telegram: https://t.me/your_telegram_account
95+
```
96+
97+
[Hexo]: https://hexo.io/
98+
[Fancybox]: https://github.com/fancyapps/fancyBox

themes/landscape/_config.yml

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
# ===============
2+
# Header
3+
# ===============
4+
# Navigation menu
5+
menu:
6+
Home: /
7+
Archives: /archives
8+
# RSS link
9+
rss: /atom.xml
10+
# Path of title banner image of page top
11+
banner: "images/banner.jpg"
12+
# Subtitle of page top
13+
subtitle:
14+
# Header links with icon, specified links will appear at the top right corner of the page
15+
# Each name must correspond to the icon name of Fork Awesome
16+
# https://forkaweso.me/Fork-Awesome/icons/
17+
links:
18+
# github: https://github.com/your_github_account
19+
# twitter: https://twitter.com/your_twitter_account
20+
# telegram: https://t.me/your_telegram_account
21+
22+
# ===============
23+
# Content
24+
# ===============
25+
# "Read More" link at the bottom of excerpted articles. `false` to hide the link.
26+
excerpt_link: Read More
27+
# Enable fancybox
28+
fancybox: true
29+
30+
# ===============
31+
# Footer
32+
# ===============
33+
# Display copyright notice in footer. Please see https://creativecommons.org/choose/ and https://choosealicense.com/
34+
# You can use html like below.
35+
# copyright: |-
36+
# <a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a></br>
37+
# All website licensed under <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank">CC BY 4.0</a></br>
38+
copyright:
39+
40+
# ===============
41+
# Sidebar
42+
# ===============
43+
# Sidebar style. You can choose `left`, `right`, `bottom` or `false`.
44+
sidebar: right
45+
# Widgets displaying in sidebar
46+
widgets:
47+
- category
48+
- tag
49+
- tagcloud
50+
- archive
51+
- recent_posts
52+
53+
# ===============
54+
# Widget behavior
55+
# ===============
56+
archive_type: 'monthly'
57+
show_count: false
58+
# How many posts display in Home page.
59+
recent_posts_limits: 5
60+
61+
# ===============
62+
# Miscellaneous
63+
# ===============
64+
# Google Analytics ID
65+
google_analytics:
66+
gauges_analytics:
67+
# Favicon path
68+
favicon: /favicon.png
69+
# Twitter ID
70+
twitter:
71+
fb_admins:
72+
fb_app_id:
73+
74+
# ===============
75+
# Comment system
76+
# ===============
77+
# Disqus comment system.
78+
disqus_shortname:
79+
# valine comment system. https://valine.js.org
80+
valine:
81+
enable: false # if you want use valine,please set this value is true
82+
appId: # leancloud application app id
83+
appKey: # leancloud application app key
84+
notify: false # valine mail notify (true/false) https://github.com/xCss/Valine/wiki
85+
verify: false # valine verify code (true/false)
86+
pageSize: 10 # comment list page size
87+
avatar: mm # gravatar style https://valine.js.org/#/avatar
88+
lang: zh-cn # i18n: zh-cn/en
89+
placeholder: Just go go # valine comment input placeholder(like: Please leave your footprints )
90+
guest_info: nick,mail,link #valine comment header info
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
de.yml

themes/landscape/languages/de.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
categories: Kategorien
2+
search: Suche
3+
tags: Tags
4+
tagcloud: Tag Cloud
5+
tweets: Tweets
6+
prev: zurück
7+
next: weiter
8+
comment: Kommentare
9+
archive_a: Archiv
10+
archive_b: "Archive: %s"
11+
page: Seite %d
12+
recent_posts: letzter Beitrag
13+
newer: Neuer
14+
older: Älter
15+
share: Teilen
16+
powered_by: Powered by
17+
rss_feed: RSS Feed
18+
category: Kategorie
19+
tag: Tag

0 commit comments

Comments
 (0)