mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 12:03:31 +08:00
Merge branch 'master' into i18n
This commit is contained in:
commit
49020bb673
76
README.md
76
README.md
@ -1,7 +1,10 @@
|
|||||||

|

|
||||||
|
|
||||||
# Hugo Theme Stack
|
# Hugo Theme Stack
|
||||||
|
|
||||||
> Card-style Hugo theme designed for bloggers.
|
<img align="right" width="150" alt="logo" src="https://user-images.githubusercontent.com/5889006/190859553-5b229b4f-c476-4cbd-928f-890f5265ca4c.png">
|
||||||
|
|
||||||
|
Card-style Hugo theme designed for bloggers.
|
||||||
|
|
||||||
## Quickstart
|
## Quickstart
|
||||||
|
|
||||||
@ -9,45 +12,12 @@ Use this template: [CaiJimmy/hugo-theme-stack-starter](https://github.com/CaiJim
|
|||||||
|
|
||||||
## Demo
|
## Demo
|
||||||
|
|
||||||
[Example Site](https://demo.stack.jimmycai.com/)
|
* Stater template demo: [demo.stack.jimmycai.com](https://demo.stack.jimmycai.com)
|
||||||
|
* Dev build: [dev.stack.jimmycai.com](https://dev.stack.jimmycai.com)
|
||||||
[](https://app.netlify.com/sites/hugo-theme-stack/deploys)
|
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
[Documentation](https://docs.stack.jimmycai.com/) | [中文文档](https://docs.stack.jimmycai.com/zh/)
|
Visit [stack.jimmycai.com](https://stack.jimmycai.com)
|
||||||
|
|
||||||
## Introduction
|
|
||||||
|
|
||||||
Stack is a simple card-style Hugo theme designed for bloggers, some of its features are:
|
|
||||||
|
|
||||||
- Responsive images support
|
|
||||||
- Lazy load images
|
|
||||||
- Dark mode
|
|
||||||
- Local search
|
|
||||||
- [PhotoSwipe](https://photoswipe.com/) integration
|
|
||||||
- Archive page template
|
|
||||||
- Full native JavaScript, no jQuery or any other frameworks are used
|
|
||||||
- No CSS framework, keep it simple and minimal
|
|
||||||
- Properly cropped thumbnails
|
|
||||||
- Subsection support
|
|
||||||
- Table of contents
|
|
||||||
- Multilingual mode and RTL support
|
|
||||||
|
|
||||||
## Requirements
|
|
||||||
|
|
||||||
It's necessary to use **Hugo Extended ≥ 0.87.0**.
|
|
||||||
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
* Route 1: Clone / Download this repository to `themes` folder
|
|
||||||
* Route 2: Turn your site into a hugo module and add this theme as a module dependency
|
|
||||||
|
|
||||||
Edit your site config following `exampleSite/config.yaml`.
|
|
||||||
|
|
||||||
*Note: Remove `config.toml` if there is one in the site folder.*
|
|
||||||
|
|
||||||
Check [documentation](https://docs.stack.jimmycai.com/) for more details.
|
|
||||||
|
|
||||||
## Copyright
|
## Copyright
|
||||||
|
|
||||||
@ -56,33 +26,3 @@ Check [documentation](https://docs.stack.jimmycai.com/) for more details.
|
|||||||
Please do not remove the "*Theme Stack designed by Jimmy*" text and link.
|
Please do not remove the "*Theme Stack designed by Jimmy*" text and link.
|
||||||
|
|
||||||
If you want to port this theme to another blogging platform, please let me know🙏.
|
If you want to port this theme to another blogging platform, please let me know🙏.
|
||||||
|
|
||||||
## Sponsoring
|
|
||||||
|
|
||||||
If you like this theme, give it a star, and consider supporting its development:
|
|
||||||
|
|
||||||
[](https://ko-fi.com/C0C530AXX)
|
|
||||||
|
|
||||||
Your support is greatly appreciated :)
|
|
||||||
|
|
||||||
## Thanks to
|
|
||||||
|
|
||||||
| Project | Description | Licence |
|
|
||||||
| ------- | ----------- | ------- |
|
|
||||||
| [PhotoSwipe](https://photoswipe.com/) | For the lightbox effect | [MIT](https://github.com/dimsemenov/PhotoSwipe/blob/master/LICENSE) |
|
|
||||||
| [Normalize.css](https://github.com/necolas/normalize.css) | - | [MIT](https://github.com/necolas/normalize.css/blob/master/LICENSE.md) |
|
|
||||||
| [Node Vibrant](https://github.com/Vibrant-Colors/node-vibrant) | To extract the color from images | [MIT](https://github.com/Vibrant-Colors/node-vibrant/blob/master/LICENSE.md)
|
|
||||||
| [Tabler icons](https://github.com/tabler/tabler-icons) | Default menu icons | [MIT](https://github.com/tabler/tabler-icons/blob/master/LICENSE) |
|
|
||||||
| [jonsuh/hamburgers](https://github.com/jonsuh/hamburgers) | Hamburger icon of menu | [MIT](https://github.com/jonsuh/hamburgers/blob/master/LICENSE) |
|
|
||||||
| [lepture/yue.css](https://github.com/lepture/yue.css) | Part of it is used for styling article content | MIT |
|
|
||||||
| [Typlog](https://typlog.com/) | Where the markdown gallery syntax is borrowed from | The author gave me the permission |
|
|
||||||
| [Pure CSS implementation of Google Photos / 500px image layout](https://github.com/xieranmaya/blog/issues/6) | Used for image gallery | - |
|
|
||||||
|
|
||||||
### References
|
|
||||||
|
|
||||||
Some references that I took while building this theme:
|
|
||||||
|
|
||||||
| Project | Licence|
|
|
||||||
| ------- | ------|
|
|
||||||
| [artchen/hexo-theme-element](https://github.com/artchen/hexo-theme-element) | [MIT](https://github.com/artchen/hexo-theme-element/blob/master/LICENSE) |
|
|
||||||
| [MunifTanjim/minimo](https://github.com/MunifTanjim/minimo) | [MIT](https://github.com/MunifTanjim/minimo/blob/master/LICENSE) |
|
|
||||||
|
@ -48,6 +48,9 @@ widget:
|
|||||||
tagCloud:
|
tagCloud:
|
||||||
title:
|
title:
|
||||||
other: Tags
|
other: Tags
|
||||||
|
categoriesCloud:
|
||||||
|
title:
|
||||||
|
other: Categorias
|
||||||
|
|
||||||
search:
|
search:
|
||||||
title:
|
title:
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
<div id="remark42"></div>
|
<div id="remark42"></div>
|
||||||
<script>
|
<script>
|
||||||
var remark_config = {
|
var remark_config = {
|
||||||
host: "{{ .host }}",
|
host: '{{ .host }}',
|
||||||
site_id: '{{ .site }}',
|
site_id: '{{ .site }}',
|
||||||
components: ['embed'],
|
components: ['embed'],
|
||||||
url: "{{ $.Permalink }}",
|
url: '{{ $.Permalink }}',
|
||||||
max_shown_comments: {{ default 15 .max_shown_comments }},
|
max_shown_comments: {{ default 15 .max_shown_comments }},
|
||||||
theme: document.documentElement.dataset.scheme,
|
theme: document.documentElement.dataset.scheme,
|
||||||
page_title: '{{ $.Title }}',
|
page_title: '{{ $.Title }}',
|
||||||
@ -13,14 +13,14 @@
|
|||||||
show_email_subscription: {{ default true .show_email_subscription }}
|
show_email_subscription: {{ default true .show_email_subscription }}
|
||||||
};
|
};
|
||||||
|
|
||||||
(function (c) {
|
function(e, n) {
|
||||||
for (var i = 0; i < c.length; i++) {
|
for (var o = 0; o < e.length; o++) {
|
||||||
var d = document, s = d.createElement('script');
|
var r = n.createElement('script'),
|
||||||
s.src = remark_config.host + '/web/' + c[i] + '.js';
|
c = '.js',
|
||||||
s.defer = true;
|
d = n.head || n.body;
|
||||||
(d.head || d.body).appendChild(s);
|
'noModule' in r ? (r.type = 'module', c = '.mjs') : r.async = !0, r.defer = !0, r.src = remark_config.host + '/web/' + e[o] + c, d.appendChild(r)
|
||||||
}
|
}
|
||||||
})(remark_config.components || ['embed']);
|
}(remark_config.components || ['embed'], document);
|
||||||
|
|
||||||
window.addEventListener('onColorSchemeChange', (e) => {
|
window.addEventListener('onColorSchemeChange', (e) => {
|
||||||
window.REMARK42.changeTheme(e.detail);
|
window.REMARK42.changeTheme(e.detail);
|
||||||
|
Loading…
Reference in New Issue
Block a user