Compare commits

...

18 Commits

Author SHA1 Message Date
Jordan Orelli 3bb60cc52e uh, footer centering fix now
i broke this when i messed with the text flow. i sure don't know css.
4 years ago
Jordan Orelli cd6897a837 fix line breaks for english text
seems like the original text justification was designed for chinese
text?
4 years ago
Hang Jiang 8628c19610
Update config.yaml 4 years ago
Hang Jiang 7a1181feed
Update config-example.yaml 4 years ago
Hang Jiang a91caa4403
Create config-example.yaml 4 years ago
nodejh 51c30b9997 feat: update images 4 years ago
nodejh 1a4e44e0fa feat: add chinese doc 4 years ago
nodejh e809bb8c9d feat: update docs 4 years ago
nodejh 34d3c2dd68 feat: update docs 4 years ago
nodejh ffea239839 feat: update layouts 4 years ago
nodejh 81a13c63f8 feat: update docs 4 years ago
nodejh 44525d25c8 feat: update docs 4 years ago
nodejh 82a3842d31 feat: update docs 4 years ago
nodejh 3c0b005454 fix: fix links 4 years ago
nodejh ad3d821844 style: update tags page styles 4 years ago
nodejh 706cd8f8e9 fix: fix navigation url 4 years ago
nodejh ed49811eda feat: update exampleSite 4 years ago
nodejh 2286e5a59b fix: remove _internal templates 4 years ago

7
.gitignore vendored

@ -1,12 +1,15 @@
# Hugo default output directory
/public
## OS Files
# Windows
Thumbs.db
ehthumbs.db
Desktop.ini
$RECYCLE.BIN/
# OSX
# MacOS
.DS_Store
# exampleSite
exampleSite/themes
exampleSite/public

@ -1,4 +1,10 @@
## 2017.12.09 Version 1.0
## 2021.03.01 Version 2.0.0
- [x] Refactor
- [x] Support hugo 0.80.0
## 2017.12.09 Version 1.0.0
- [x] Support twitter card.
- [x] Remove name in `.Site.Params`. It's duplicate with `.Site.title`.

@ -1,119 +0,0 @@
# Hugo Theme Cactus Plus
[English Document](https://github.com/nodejh/hugo-theme-cactus-plus/blob/master/README.md) | [中文文档](https://github.com/nodejh/hugo-theme-cactus-plus/blob/master/README_zh-cn.md)
Cactus Plus is a minimalistic theme for bloggers based on the theme named [Cactus](https://github.com/digitalcraftsman/hugo-cactus-theme).
**Features**
+ **More beautiful style**
+ **Tags page**
+ **Archive page**
+ **[Disqus](https://disqus.com/) comment-system**
+ **Both Google Analytics and Baidu Analytics for site analytics.**
+ **Table of Content**
+ **Twitter Card**
Here's the link to online demo: [http://nodejh.com](http://nodejh.com).
<!-- TOC depthFrom:1 depthTo:6 withLinks:1 updateOnSave:1 orderedList:0 -->
- [Hugo Theme Cactus Plus](#hugo-theme-cactus-plus)
- [Screenshot](#screenshot)
- [Installation](#installation)
- [Example Site](#example-site)
- [Posts Summary](#posts-summary)
- [About page](#about-page)
- [Avatar](#avatar)
- [Hide pages](#hide-pages)
- [Disqus](#disqus)
- [Social link icons](#social-link-icons)
- [Nearly finished](#nearly-finished)
- [License](#license)
<!-- /TOC -->
## Screenshot
**home page**
![Screenshot](https://github.com/nodejh/hugo-theme-cactus-plus/blob/master/images/screenshot.png)
**tags page**
![Screenshot](https://github.com/nodejh/hugo-theme-cactus-plus/blob/master/images/tags.png)
**archive page**
![Screenshot](https://github.com/nodejh/hugo-theme-cactus-plus/blob/master/images/archive.png)
## Installation
First clone the theme to your themes directory:
```
$ cd themes
$ git clone https://github.com/nodejh/hugo-theme-cactus-plus.git
```
Take a look inside the [`exampleSite`](https://github.com/nodejh/hugo-theme-cactus-plus/tree/master/exampleSite) folder of this theme. You'll find a file called [`config.toml`](https://github.com/nodejh/hugo-theme-cactus-plus/blob/master/exampleSite/config.toml).
To use it, copy the [`config.toml`](https://github.com/nodejh/hugo-theme-cactus-plus/blob/master/exampleSite/config.toml) in the root folder of your Hugo site. Feel free to change strings as you like to customize your website.
And you may replace your site `archetypes/default.md` with [`hugo-theme-cactus-plus/archetypes/default.md`](https://github.com/nodejh/hugo-theme-cactus-plus/tree/master/archetypes/default.md)
For more information read the official [setup guide](//gohugo.io/overview/installing/) of Hugo.
## Example Site
There is an example site with config file and markdown files in [`exampleSite`](https://github.com/nodejh/hugo-theme-cactus-plus/tree/master/exampleSite) directory.
## Posts Summary
Summary will show follow the post title title in home page.
And if you want to use description property that in post's fromt matter to instated of post's content summary, set `useDescriptionReplaceSummary = true`.
To use the content summary, you may add the `<!--more-->` summary divider where you want to split the article alternatively. For org content, use # more where you want to split the article. Content that comes before the summary divider will be used as that contents summary.By default, Hugo automatically takes the first 70 words of your content as its summary. See also [https://gohugo.io/content-management/summaries/](https://gohugo.io/content-management/summaries/).
## About page
Use the about page to introduce yourself to your visitors. You can customize the content as you like in the `/content/about/_index.md`.
## Avatar
Furthermore, you should replace the [avatar placeholder](https://github.com/nodejh/hugo-theme-cactus-plus/blob/master/static/images/) with a great image of yourself.
## Hide pages
Pages can be hidden and don't appear in the post list on the homepage if you add the variable `hidden = true` to the frontmatter. This allows you to link from elsewhere, i.e. just the menu.
## Disqus
This theme features a comment system powered by Disqus. Just add your Disqus-shortname to the [`config.toml`](https://github.com/nodejh/hugo-theme-cactus-plus/blob/master/exampleSite/config.toml) and set `enableDisqus = true`, then let readers respond to your blog posts.
## Social link icons
You can add a social link panel in the footer by adding entries to the `social` block in the [`config.toml`](https://github.com/nodejh/hugo-theme-cactus-plus/blob/master/exampleSite/config.toml). You can choose between two icon fonts:
- [Font awesome](https://fortawesome.github.io/Font-Awesome/) or
- [Mono social icons](https://github.com/drinchev/monosocialiconsfont)
Assign either `font-awesome` or `mono-social` to the `iconFont` variable. The Mono social icons offer three styles of icons: -circle, rounded, or default (empty).
## Nearly finished
In order to see your site in action, run Hugo's built-in local server.
```
$ hugo server
```
Now enter [`localhost:1313`](http://localhost:1313) in the address bar of your browser.
## License
This theme is released under the MIT license. For more information read the [license](https://github.com/nodejh/hugo-theme-cactus-plus/blob/master/LICENSE.md).

@ -0,0 +1,126 @@
# Hugo Theme Mini
[English](https://github.com/nodejh/hugo-theme-mini/tree/master/README.md) | 简体中文
一个简约的响应式 Hugo 主题。
![./images/screenshot.png](https://raw.githubusercontent.com/nodejh/hugo-theme-mini/master/images/screenshot.png)
- [在线 Demo](https://nodejh.github.io/hugo-theme-mini)
- [示例网站源码](https://github.com/nodejh/hugo-theme-mini/tree/master/exampleSite)
特性:
- 快
- 简约
- 响应式
- 归档页
- 标签页
## 安装
### 使用 Hugo 模块安装 (推荐)
> ⚠️ 如果你使用的是 [二进制包](https://gohugo.io/getting-started/installing/#binary-cross-platform) 安装的 Hugo, 那么你需要在电脑上安装 Go 语言. 你可以使用下面的命令检查是否安装 Go:
> ```
> $ go version
> ```
> Go 语言从 v1.14 开始支持模块. [下载 Go](https://golang.org/dl/).
1. 在项目目录初始化 hugo 模块系统,如果之前已经执行过则忽略此步骤:
```bash
$ hugo mod init github.com/<your_user>/<your_project>
```
2. 在 `config.yaml` 中添加主题:
```yaml
theme:
- github.com/nodejh/hugo-theme-mini
```
### 使用 Git Submodule 安装
1. 在项目目录中执行下面的命令,将 hugo-theme-mini 作为 submodule:
```bash
$ git submodule add https://github.com/nodejh/hugo-theme-mini.git themes/mini
```
2. 在 `config.yaml` 中配置主题:
```yaml
theme: mini
```
更多信息可参考 Hugo 官方文档 [setup guide](//gohugo.io/overview/installing/).
## 开始使用
成功安装主题后,在生成网站前还需要进行少部分的配置。
### 修改配置文件
在 [`exampleSite`](https://github.com/nodejh/hugo-theme-mini/tree/master/exampleSite) 目录中有一个 [`config.yaml`](https://github.com/nodejh/hugo-theme-mini/blob/master/exampleSite/config.yaml) 的配置文件,你可以将其复制到你的项目根目录中,将一些配置项修改为你的配置。这些配置都可以随意修改。
Take a look inside the [`exampleSite`](https://github.com/nodejh/hugo-theme-mini/tree/master/exampleSite) folder of this theme. You'll find a file called [`config.yaml`](https://github.com/nodejh/hugo-theme-mini/blob/master/exampleSite/config.yaml). To use it, copy the [`config.yaml`](https://github.com/nodejh/hugo-theme-mini/blob/master/exampleSite/config.yaml) in the root folder of your Hugo site. Feel free to change the strings in this theme.
> ⚠️ 你需要删除这行配置: `themesDir: ../../`
### 评论功能
要使用评论功能,你需要添加下面的配置:
- 设置 Disqus: `disqusShortname: your-disqus-shorname`
- 启用评论:
```yaml
params:
enableComments: true
```
### Google 分析
要使用 Google 分析功能,你需要添加下面的配置:
- 设置 Google Analytics ID: `googleAnalytics: your-google-analytics-id`
- 启用 Google Analytics:
```yaml
params:
enableGoogleAnalytics: true
```
### Logo 和 favicon
你可以替换网站中的 Log 和 favicon只需要将你的图片放在网站的 `static/images` 中,并分别命名为 `avatar.png``avicon.ico`. 下面是项目目录示例:
```
- content
- static
└── images
├── avatar.png
└── favicon.ico
```
### 运行网站
为了检查网站运行情况,你可以在本地启动 hugo server:
```bash
$ hugo server
```
现在你就可以在浏览器中打开 http://localhost:1313 查看你的网站了。
## License
[MIT](https://github.com/nodejh/hugo-theme-mini/blob/master/LICENSE.md)

@ -1 +1,121 @@
## WIP
# Hugo Theme Mini
English | [简体中文](https://github.com/nodejh/hugo-theme-mini/tree/master/README-zh_CN.md)
A fast, minimalist and responsive hugo theme.
![./images/screenshot.png](https://raw.githubusercontent.com/nodejh/hugo-theme-mini/master/images/screenshot.png)
- [Online demo](https://nodejh.github.io/hugo-theme-mini)
- [Example Site Source](https://github.com/nodejh/hugo-theme-mini/tree/master/exampleSite)
Features:
- Fast
- Minimalist
- Responsive
- Archive
- Tags
## Installation
### As a Hugo Module (recommended)
> ⚠️ If you installed a [Hugo binary](https://gohugo.io/getting-started/installing/#binary-cross-platform), you may not have Go installed on your machine. To check if Go is installed:
> ```
> $ go version
> ```
> Go modules were considered production ready in v1.14. [Download Go](https://golang.org/dl/).
1. From your project's root directory, initiate the hugo module system if you haven't already:
```bash
$ hugo mod init github.com/<your_user>/<your_project>
```
2. Add the theme's repo to your `config.yaml`:
```yaml
theme:
- github.com/nodejh/hugo-theme-mini
```
### As Git Submodule
1. Inside the folder of your Hugo site run:
```bash
$ git submodule add https://github.com/nodejh/hugo-theme-mini.git themes/mini
```
2. Add the theme's directory to your `config.yaml`:
```yaml
theme: mini
```
For more information read the official [setup guide](//gohugo.io/overview/installing/) of Hugo.
## Getting started
After installing the theme successfully it requires a just a few more steps to get your site running.
### The config file
Take a look inside the [`exampleSite`](https://github.com/nodejh/hugo-theme-mini/tree/master/exampleSite) folder of this theme. You'll find a file called [`config.yaml`](https://github.com/nodejh/hugo-theme-mini/blob/master/exampleSite/config.yaml). To use it, copy the [`config.yaml`](https://github.com/nodejh/hugo-theme-mini/blob/master/exampleSite/config.yaml) in the root folder of your Hugo site. Feel free to change the strings in this theme.
> ⚠️ You may need to delete the line: `themesDir: ../../`
### Add Comments
To enable comments, add following to your config file:
- Disqus shortname: `disqusShortname: your-disqus-shortname`
- Enable Comment:
```yaml
params:
enableComments: true
```
### Google Analytics
To enable google analytics, add following to your config file:
- Google Analytics ID: `googleAnalytics: your-google-analytics-id`
- Enable Google Analytics:
```yaml
params:
enableGoogleAnalytics: true
```
### Logo and favicon
You can replace the log in the top of each page and favicon with your own images. To do that put your own logo and favicon into the `images` directory of your website static directory, then named them `avatar.png` and `favicon.ico`. For example:
```
- content
- static
└── images
├── avatar.png
└── favicon.ico
```
### Nearly finished
In order to see your site in action, run Hugo's built-in local server.
```bash
$ hugo server
```
Now enter http://localhost:1313 in the address bar of your browser.
## License
[MIT](https://github.com/nodejh/hugo-theme-mini/blob/master/LICENSE.md)

@ -1,139 +0,0 @@
# Hugo Theme Cactus Plus
[English Document](https://github.com/nodejh/hugo-theme-cactus-plus/blob/master/README.md) | [中文文档](https://github.com/nodejh/hugo-theme-cactus-plus/blob/master/README_zh-cn.md)
Cactus Plus 是在 [Cactus](https://github.com/digitalcraftsman/hugo-cactus-theme) 更改的一个简约主题。
**特点**
+ **更漂亮的样式**
+ **添加了标签页**
+ **添加了归档页**
+ **集成了 [Disqus](https://disqus.com/) 评论系统**
+ **提供了 Google Analytics 和百度统计**
+ **文章目录**
+ **Twitter Card**
示例网站: [http://nodejh.com](http://nodejh.com)。
<!-- TOC depthFrom:1 depthTo:6 withLinks:1 updateOnSave:1 orderedList:0 -->
- [Hugo Theme Cactus Plus](#hugo-theme-cactus-plus)
- [截图](#截图)
- [安装](#安装)
- [示例站点](#示例站点)
- [文章摘要](#文章摘要)
- [关于页面](#关于页面)
- [头像](#头像)
- [隐藏页面](#隐藏页面)
- [Disqus 评论](#disqus-评论)
- [社交链接](#社交链接)
- [部署主题](#部署主题)
- [License](#license)
<!-- /TOC -->
## 截图
**首页**
![Screenshot](https://github.com/nodejh/hugo-theme-cactus-plus/blob/master/images/screenshot.png)
**标签页**
![Screenshot](https://github.com/nodejh/hugo-theme-cactus-plus/blob/master/images/tags.png)
**归档页**
![Screenshot](https://github.com/nodejh/hugo-theme-cactus-plus/blob/master/images/archive.png)
## 安装
首先进入 `hugo` 的站点目录运行下面的命令:
```
$ cd themes
$ git clone https://github.com/nodejh/hugo-theme-cactus-plus.git
```
本主题提供了一个示例配置文件是 [`exampleSite`](https://github.com/nodejh/hugo-theme-cactus-plus/tree/master/exampleSite) 目录里的 [`config.toml`](https://github.com/nodejh/hugo-theme-cactus-plus/blob/master/exampleSite/config.toml) 文件。
配置文件中对大部分配置都有详细的注释说明,复制该文件到站点目录下,根据自己的情况修改即可。
然后可能你还需要用 [`hugo-theme-cactus-plus/archetypes/default.md`](https://github.com/nodejh/hugo-theme-cactus-plus/tree/master/archetypes/default.md) 替换你的项目中的 `archetypes/default.md`
更多安装信息查看 Hugo 官方文档 [setup guide](//gohugo.io/overview/installing/)。
## 示例站点
[`exampleSite`](https://github.com/nodejh/hugo-theme-cactus-plus/tree/master/exampleSite) 是本主题的一个示例站点,里面有配置文件、关于页面的一些示例。
## 文章摘要
Summary will show follow the post title title in home page.
摘要会显示在首页的文章标题下面。
如果你想用文章头信息中的 `description` 属性代替文章内容摘要,将 `useDescriptionReplaceSummary` 设置为 `true` 即可。
如果要使用文章内容摘要,你可能需要在文章中添加 `<!--more-->` 分割线来分割文章。分割线前面的字符会作为文章摘要。默认情况下Hugo 会截取内容的前 70 个字作为摘要。查看更多 [https://gohugo.io/content-management/summaries/](https://gohugo.io/content-management/summaries/).
## 关于页面
使用关于页面首先要在你的站点目录的 `content` 目录下创建一个 `about` 目录,然后再创建一个 `_index.md` 文件,编写该文件即可。
你也可以参考本主题示例站点中的关于页:[`exampleSite/content/about/index.md`](https://github.com/nodejh/hugo-theme-cactus-plus/blob/master/exampleSite/content/about/index.md)。
## 头像
你需要将 [images](https://github.com/nodejh/hugo-theme-cactus-plus/blob/master/static/images/) 目录下的 `avatar.png`、`avatar@2x.png` 和 `favicon.ico` 都替换为你自己的图像。
## 隐藏页面
如果你不想让一个页面出现在文章列表中,只需要在 markdown 文件的 `frontmatter` 中添加 `hidden = true` 即可。
然后你可以在其他任何地方通过链接来引用该页面,如在菜单中放置一个链接。
关于页面就是这么实现的。
## Disqus 评论
本主题提供两种评论系统Disqus 和多说。使用 Disqus 评论需要在 [`config.toml`](https://github.com/nodejh/hugo-theme-cactus-plus/blob/master/exampleSite/config.toml) 中进行设置。
设置 `disqusShortname` 为你的 Disqus ID并将 `enableDisqus` 设置为 `true` 即可开启 Disqus 评论。
`enableDisqus` 设置为 `false` 则不启用 Disqus 评论。
## 社交链接
本主题的社交链接是字体图标的样式,并放置在了页面底部。你可以通过在 `config.toml``social` 模块中修改添加你的社交链接。社交链接提供了两种字体图标,选用其中一种即可:
- [Font awesome](https://fortawesome.github.io/Font-Awesome/) 或
- [Mono social icons](https://github.com/drinchev/monosocialiconsfont)
`iconFont` 变量即字体图标库,可以是 `font-awesome``mono-social`
如果使用的是 `Mono social icons``iconFont = "mono-social"`,则图标还有三种可选样式:`-circle`、`rounded`、或默认 `empty`
## 部署主题
配置完成之后,就可以使用下面的命令来启动 hugo 服务编译 markdown 文件生成静态站点:
```
$ hugo server
```
然后在浏览器地址栏输入 [`localhost:1313`](http://localhost:1313) 来访问站点。
## License
[MIT](https://github.com/nodejh/hugo-theme-cactus-plus/blob/master/LICENSE.md)

@ -1,55 +0,0 @@
baseURL: https://gohugo.io
languageCode: en-us
title: Hugo Themes
theme: mini
googleAnalytics: your-google-analytics-id
hasCJKLanguage: true
permalinks:
posts: /posts/:title/
disqusShortname: your-disqus-shorname
# Hugo Configure Markup
# see: https://gohugo.io/getting-started/configuration-markup#highlight
markup:
highlight:
guessSyntax: true
style: emacs
# Social links in footer, support github,twitter,stackoverflow,facebook
social:
# e.g.
github: 'your-github-link'
twitter: 'your-github-link'
stackoverflow: 'your-github-link'
# facebook: 'your-facebook-link'
# Site parameters
params:
# Site Author
author: Author
# Author biography
bio: Software Engineer
# Site Description, used in HTML meat
description: My Blog
enableRSS: true
# Optional
home: '' # Default: Home
about: '' # Default: About
archive: '' # Default: Archive
subscribe: '' # Default: Subscribe
olderPosts: '' # Default: Older Posts
newerPosts: '' # Default: Newer Posts
copyright: ''
title404: '' # Default: 404 - Page Not Found
subtitle404: '' # Default: The content you're looking for doesn't seem to exist.
readMore: '' # Default: Read More
# Extra links in navigation
links:
# e.g.
# - name: Project
# path: /project

@ -1,29 +1,18 @@
# hugoBasicExample
# Hugo Theme Mini Example Site
This repository offers an example site for [Hugo](https://gohugo.io/) and also it provides the default content for demos hosted on the [Hugo Themes Showcase](https://themes.gohugo.io/).
This repository offers an example site for [Hugo Theme mini](https://github.com/nodejh/hugo-theme-mini) and also it provides the default content for [Online Demo](http://nodejh.github.io/hugo-theme-mini).
# Using
1. [Install Hugo](https://gohugo.io/overview/installing/)
2. Clone this repository
```bash
git clone https://github.com/gohugoio/hugoBasicExample.git
cd hugoBasicExample
```
```bash
$ git clone https://github.com/nodejh/hugo-theme-mini
$ cd exampleSite
```
3. Run Hugo server. The exampleSite use theme `hugo-theme-mini` by setting `themesDir` as `../../`
3. Clone the repository you want to test. If you want to test all Hugo Themes then follow the instructions provided [here](https://github.com/gohugoio/hugoThemes#installing-all-themes)
4. Run Hugo and select the theme of your choosing
```bash
hugo server -t YOURTHEME
```
5. Under `/content/` this repository contains the following:
- A section called `/post/` with sample markdown content
- A headless bundle called `homepage` that you may want to use for single page applications. You can find instructions about headless bundles over [here](https://gohugo.io/content-management/page-bundles/#headless-bundle)
- An `about.md` that is intended to provide the `/about/` page for a theme demo
6. If you intend to build a theme that does not fit in the content structure provided in this repository, then you are still more than welcome to submit it for review at the [Hugo Themes](https://github.com/gohugoio/hugoThemes/issues) respository
```bash
$ hugo server
```

@ -0,0 +1,36 @@
baseURL: https://nodejh.github.io/hugo-theme-mini
languageCode: en-us
title: Hugo
theme: hugo-theme-mini
paginate: 3
# for exampleSite only, you may need to delete the line: `themesDir: ../../`
themesDir: ../../
hasCJKLanguage: true
permalinks:
posts: /posts/:title/
googleAnalytics: UA-123-45
disqusShortname: nodejh
markup:
highlight:
guessSyntax: true
style: emacs
social:
github: https://github.com/nodejh
twitter: https://github.com/nodejh
stackoverflow: https://stackoverflow.com/users/4518882/nodejh
params:
author: nodejh
bio: Software Engineer
description: My Blog
enableRSS: true
enableComments: true
enableGoogleAnalytics: true

@ -1,13 +1,17 @@
baseURL: https://gohugo.io
baseURL: https://example.com
languageCode: en-us
title: Hugo Themes
theme: mini
googleAnalytics: your-google-analytics-id
title: Hugo
theme: hugo-theme-mini
# for exampleSite only, you may need to delete the line: `themesDir: ../../`
themesDir: ../../
hasCJKLanguage: true
permalinks:
posts: /posts/:title/
disqusShortname: your-disqus-shorname
googleAnalytics: your-google-analytics-id
disqusShortname: your-disqus-shortname
# Hugo Configure Markup
# see: https://gohugo.io/getting-started/configuration-markup#highlight
@ -20,10 +24,10 @@ markup:
# Social links in footer, support github,twitter,stackoverflow,facebook
social:
# e.g.
github: 'your-github-link'
twitter: 'your-github-link'
stackoverflow: 'your-github-link'
# facebook: 'your-facebook-link'
github: your-github-link
twitter: your-github-link
stackoverflow: your-github-link
# facebook: your-facebook-link
# Site parameters
@ -35,15 +39,20 @@ params:
# Site Description, used in HTML meat
description: My Blog
enableRSS: true
# To enable comments, you may need to set `disqusShortname`
enableComments: true
# To enable comments, you may need to set `googleAnalytics`
enableGoogleAnalytics: true
# Optional
home: '' # Default: Home
about: '' # Default: About
archive: '' # Default: Archive
tags: '' # Default: Tags
subscribe: '' # Default: Subscribe
olderPosts: '' # Default: Older Posts
newerPosts: '' # Default: Newer Posts
copyright: ''
copyright: '' # Default: © Copyright 2021 ❤️ author
title404: '' # Default: 404 - Page Not Found
subtitle404: '' # Default: The content you're looking for doesn't seem to exist.
readMore: '' # Default: Read More

@ -1,3 +0,0 @@
+++
author = "Hugo Authors"
+++

@ -1,5 +0,0 @@
---
date: 2019-05-28
type: section
layout: "archives"
---

@ -1,7 +0,0 @@
---
title: 'Our Difference'
button: 'About us'
weight: 2
---
Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. Ipsum dolor sit amet, et essent mediocritatem quo.

@ -1,3 +0,0 @@
---
headless: true
---

@ -1,7 +0,0 @@
---
title: 'We Help Business Grow'
button: 'Our Work'
weight: 1
---
Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. Numquam dolores mel eu, mea docendi omittantur et, mea ea duis erat. Elit melius cu ius. Per ex novum tantas putant, ei his nullam aliquam apeirian. Aeterno quaestio constituto sea an, no eum intellegat assueverit.

@ -1,6 +0,0 @@
+++
aliases = ["posts", "articles", "blog", "showcase", "docs"]
title = "Posts"
author = "Hugo Authors"
tags = ["index"]
+++

@ -0,0 +1,3 @@
module github.com/jordanorelli/hugo-theme-mini
go 1.15

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 MiB

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 MiB

After

Width:  |  Height:  |  Size: 38 KiB

@ -5,7 +5,7 @@
{{ range $key, $value := .Data.Terms.ByCount }}
{{ if ($value.Name) }}
<span class="tag">
<a href="{{ $.Site.BaseURL }}{{ $data.Plural }}/{{ $value.Name | urlize }}">
<a href="{{ "tags/" | relURL }}{{ $value.Name | urlize }}">
{{ $value.Name | upper }} <span>({{ $value.Count }})</span>
</a>
</span>

@ -1,4 +1,6 @@
<div id="comment">
{{ if .Site.Params.enableComments }}
<div id="comment">
<!-- https://gohugo.io/templates/internal/#use-the-disqus-template -->
{{ template "_internal/disqus.html" . }}
</div>
</div>
{{ end }}

@ -15,7 +15,4 @@
{{ .Site.Params.Author }}
{{ end }}
</p>
<p class="powerby">
Powered by <a href="http://www.gohugo.io/">Hugo</a> Theme By <a href="https://github.com/nodejh/hugo-theme-cactus-plus">nodejh</a>
</p>
</footer>

@ -10,8 +10,12 @@
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
{{ end }}
<link rel="stylesheet" href={{ "css/style.css" | relURL }}>
<link rel="shortcut icon" href={{ "/images/favicon.ico" | relURL }} type="image/x-icon" />
<link rel="stylesheet" href="{{ "/css/style.css" | relURL }}">
<link rel="shortcut icon" href="{{ "/images/favicon.ico" | relURL }}" type="image/x-icon" />
{{ if .Site.Params.enableGoogleAnalytics }}
{{ template "_internal/google_analytics_async.html" . }}
{{ end }}
{{ if .OutputFormats.Get "RSS" }}
@ -21,7 +25,3 @@
{{ end }}
{{ end }}
{{/* NOTE: These Hugo Internal Templates can be found starting at https://github.com/gohugoio/hugo/tree/master/tpl/tplimpl/embedded/templates */}}
{{- template "_internal/opengraph.html" . -}}
{{- template "_internal/schema.html" . -}}
{{- template "_internal/twitter_cards.html" . -}}

@ -1,11 +1,10 @@
<nav class="navigation">
{{ $url := replace .Permalink .Site.BaseURL "" }}
{{ if not .IsHome }}
<a href='{{ .Site.BaseURL }}'> <span class="arrow"></span>{{ with .Site.Params.home }}{{ . }}{{ else }}Home{{ end }}</a>
<a href="{{ "/" | relURL }}"> <span class="arrow"></span>{{ with .Site.Params.home }}{{ . }}{{ else }}Home{{ end }}</a>
{{ end }}
<a href='{{ .Site.BaseURL }}posts'>{{ with .Site.Params.archive }}{{ . }}{{ else }}Archive{{ end }}</a>
<a href='{{ .Site.BaseURL }}tags'>{{ with .Site.Params.tags }}{{ . }}{{ else }}Tags{{ end }}</a>
<a href='{{ .Site.BaseURL }}about'>{{ with .Site.Params.about }}{{ . }}{{ else }}About{{ end }}</a>
<a href="{{ "/posts" | relURL }}">{{ with .Site.Params.archive }}{{ . }}{{ else }}Archive{{ end }}</a>
<a href="{{ "/tags" | relURL }}">{{ with .Site.Params.tags }}{{ . }}{{ else }}Tags{{ end }}</a>
<a href="{{ "/about" | relURL }}">{{ with .Site.Params.about }}{{ . }}{{ else }}About{{ end }}</a>
{{ range $element := .Site.Params.Links }}
<a href="{{ $element.path }}">{{ $element.name }}</a>

@ -1,10 +1,10 @@
<header class="profile">
{{ if .Site.Params.avatarLink }}
<a href="{{ .Site.Params.avatarLink }}">
<img class="avatar" alt="avatar" src="{{ .Site.BaseURL }}images/avatar.png" />
<img class="avatar" alt="avatar" src="{{ "/images/avatar.png" | relURL }}" />
</a>
{{ else }}
<img class="avatar" alt="avatar" src="{{ .Site.BaseURL }}images/avatar.png" />
<img class="avatar" alt="avatar" src="{{ "/images/avatar.png" | relURL }}" />
{{ end }}
<h1>{{ .Site.Title }}</h1>

@ -3,6 +3,9 @@
<section id="section">
{{ .Content }}
{{ partial "comment.html" . }}
</section>
{{ end }}

@ -81,11 +81,11 @@ p {
margin-block-start: 1.5em;
margin-block-end: 1.5em;
}
p,
pre {
line-break: anywhere;
word-break: break-all;
p, pre {
text-align: justify;
}
.markdown-image img {
max-width: 100%;
}
@ -186,11 +186,12 @@ nav.navigation a.button {
/* footer */
#footer {
margin-top: 100px;
margin-bottom: 100px;
text-align: center;
display: flex;
align-items: center;
color: #bbbbbb;
font-size: 14px;
line-break: anywhere;
margin: 100px auto;
}
#footer .copyright {
margin: 20px auto;
@ -429,12 +430,20 @@ nav.navigation a.button {
padding: 0 12px;
text-align: center;
}
#tags .tag {
display: inline-block;
margin: 7px 7px;
}
@media (max-width: 700px) {
#tags {
margin: 0 auto 0 auto;
}
#tags .tag {
display: inline-block;
margin: 7px 12px;
margin: 4px 5px;
}
}
#tags .tag a {
background: #f2f2f2;
padding: 4px 7px;

@ -4,8 +4,8 @@ licenselink = "https://github.com/nodejh/hugo-theme-mini/blob/master/LICENSE.md"
description = "A fast, minimalist and responsive hugo theme for bloggers."
homepage = "https://github.com/nodejh/hugo-theme-mini"
tags = ["blog", "fast", "minimalist", "responsive", "simple", "beautiful", "tags", "pages"]
features = ["fast", "minimalist", "archive", "tags"]
min_version = "0.80.0"
features = ["fast", "minimalist", "responsive", "archive", "tags"]
min_version = "0.75.0"
[author]
name = "nodejh"

Loading…
Cancel
Save