All Projects → dsrkafuu → Hugo Theme Fuji

dsrkafuu / Hugo Theme Fuji

Licence: apache-2.0
A minimal Hugo theme with nice theme color. | 一个主题色极简 Hugo 主题。

Projects that are alternatives of or similar to Hugo Theme Fuji

Hugo Theme Console
A minimal, responsive and light theme for Hugo inspired by Linux console.
Stars: ✭ 143 (-1.38%)
Mutual labels:  hugo, hugo-theme, minimal, responsive
hugo-theme-texify
A minimal, latex-style hugo theme for personal blogging
Stars: ✭ 91 (-37.24%)
Mutual labels:  hugo-theme, minimal, responsive, hugo
Aether
A responsive and clean Hugo theme for blogs
Stars: ✭ 136 (-6.21%)
Mutual labels:  hugo, hugo-theme, responsive
Hugo Theme Bootstrap4 Blog
A blogging-centric Bootstrap v4 theme for the Hugo static site generator.
Stars: ✭ 191 (+31.72%)
Mutual labels:  hugo, hugo-theme, i18n
hugo-lamp
A light Hugo AMP responsive theme for blogger ⚡.
Stars: ✭ 51 (-64.83%)
Mutual labels:  hugo-theme, responsive, hugo
showcase-hugo-theme
Showcase is a minimal, single page theme for Hugo
Stars: ✭ 54 (-62.76%)
Mutual labels:  hugo-theme, minimal, hugo
Hugo Coder
A minimalist blog theme for hugo.
Stars: ✭ 1,374 (+847.59%)
Mutual labels:  hugo, hugo-theme, responsive
Hugo Theme Hello Friend
Pretty basic theme for Hugo that covers all of the essentials. All you have to do is start typing!
Stars: ✭ 586 (+304.14%)
Mutual labels:  hugo, hugo-theme, responsive
hyde-hyde
A cool theme inspired by spf13's Hyde theme
Stars: ✭ 234 (+61.38%)
Mutual labels:  hugo-theme, responsive, hugo
yourfolio
⭐ Super simple and responsive theme for your personal website on Hugo
Stars: ✭ 28 (-80.69%)
Mutual labels:  hugo-theme, responsive, hugo
Kube
Kube is a professional and a responsive Hugo theme for developers and designers that offers a documentation section mixed with a landing page and a blog.
Stars: ✭ 349 (+140.69%)
Mutual labels:  hugo, hugo-theme, responsive
Hugo Theme Terminal
A simple, retro theme for Hugo
Stars: ✭ 832 (+473.79%)
Mutual labels:  hugo, hugo-theme, minimal
Hugrid
Hugrid (Hugo+grid) is a simple grid theme for Hugo. It's a kind of boilerplate to perform anyone or anything quickly. Portfolio, collection, bookmarks, contacts and so on.
Stars: ✭ 136 (-6.21%)
Mutual labels:  hugo, hugo-theme
Educenter Hugo
Educenter is an educational website template. It can be used as an online teaching platform, school and university websites
Stars: ✭ 96 (-33.79%)
Mutual labels:  hugo, responsive
Universal Resume
Minimal and formal résumé (CV) website template for print, mobile, and desktop. https://bit.ly/ur_demo
Stars: ✭ 1,349 (+830.34%)
Mutual labels:  minimal, responsive
Pulp
Pulp is a Hugo theme for getting a simple, easy-to-read blog site.
Stars: ✭ 95 (-34.48%)
Mutual labels:  hugo, hugo-theme
Hugo Theme Even
🚀 A super concise theme for Hugo https://hugo-theme-even.netlify.app
Stars: ✭ 1,351 (+831.72%)
Mutual labels:  hugo, hugo-theme
Hugo Primer
Hugo theme based on GitHub's Primer CSS
Stars: ✭ 103 (-28.97%)
Mutual labels:  hugo, hugo-theme
Compose
A Hugo theme for documentation sites. It's inspired by https://forestry.io/docs/welcome/
Stars: ✭ 95 (-34.48%)
Mutual labels:  hugo, hugo-theme
Hugo Theme Slim
Hugo theme—Slim
Stars: ✭ 99 (-31.72%)
Mutual labels:  hugo, hugo-theme

🍥 Fuji 🍥

Fuji is a minimal Hugo theme with full dark mode support and GitHub Primer markdown style.

GitHub release GitHub build status GitHub license

English | 简体中文

Checkout the brand new VSCode Aofuji Light Theme which has similar color scheme to Aofuji!

Supported languages: cs, en, ja, nl, pt-pt, zh-hans, zh-hant. Check the i18n folder to add more languages.

📑 Table of contents

💻 Live demos

Live Demo (gohugo.io)

Screenshot of Fuji

❗ Notice

Remember to add summary divider <!--more--> to your post .md files to show blockquotes, links and codes with proper style in list pages' summary part.

🐣 Getting started

Inside the folder of your Hugo site run:

git submodule add https://github.com/amzrk2/hugo-theme-fuji.git themes/fuji

For more information read the official setup guide of Hugo.

Then copy the config.toml in the exampleSite to the root of your Hugo site, and use it as a reference for your config file. It contains all of the settings for site menus, search pages and other features, you'll need this file to make your site work properly.

🆕 Update the theme

You can watch (release only) this repo to receive update notifications.

Inside the folder of your Hugo site run:

git submodule update --remote --merge

⚙️ Configuration

🎨 Favicon

Create [SITEROOT]/layouts/partials/favicon.html to cover theme's favicon.

You can generate your favicons in realfavicongenerator.net.

❌ License, toc und comments

Globally in config.toml:

showLicense = true # Enable or disable license for all post
showToc = true # Enable or disable ToC for all post

Or in posts' front matter:

showLicense = true # Enable or disable license for this specific post
showToc = true # Enable or disable ToC for this specific post

To disable comment area for specific post, add this in front matter:

showComments = false # Do not show comments in this post

🎵 APlayer

In-post APlayer supported, you use the aplayer shortcode:

{{< aplayer urls="/aplayer/fluid.mp3" names="Fluid" artists="Crowander" covers="/aplayer/crowander.jpg" >}}

Checkout the exampleSite/content/post/aplayer-test.md for more example usage such as using multiple files.

📐 Render LaTeX with KaTex

You can write LaTeX directly in markdown with escape characters:

$$
\begin{matrix}
  a & b \\\\ c & d
\end{matrix}
$$

Or use the short code, display style:

{{< math >}}
\begin{matrix}
  a & b \\
  c & d
\end{matrix}
{{< /math >}}

Inline style:

{{< math "inline" >}}
\begin{matrix}
  a & b \\
  c & d
\end{matrix}
{{< /math >}}

Don't forget to add math = true in your front matter or config.toml.

📷 Image zoom and lazyload settings

Zoomable, not lazyloaded:

![Alt text](test/example.png)

Zoomable, lazyloaded:

{{< img-lazy "16x9" "Alt text here" "test/example.png" >}}

Not zoomable, not lazyloaded, optional ext link:

{{< img-nz "Alt text here" "test/example.png" >}}

Not zoomable, lazyloaded, optional ext link:

{{< img-nz-lazy "16x9" "Alt text here" "test/example.png" >}}

Available image aspect ratios:

  • 40x9
  • 32x9
  • 21x9
  • 18x9
  • 16x9
  • 16x10
  • 3x2
  • 4x3
  • 1x1
  • 3x4
  • 2x3
  • 10x16
  • 9x16
  • 9x18
  • 9x21
  • 9x32

⚓ Markdown render hook

You can create the files below in your site to adjust the markdown render hook, see Hugo's Official Docs.

You can use [SITEROOT]/layouts/_default/_markup/render-link.html to decide whether or not links in the markdown content will open in new tab:

<a href="{{ .Destination | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank"{{ end }}>{{ .Text | safeHTML }}</a>

📨 Comments area

Theme supports Disqus, utterances and DisqusJS (for Mainland China user)。

by default, disqus uses {{ .Permalink }} as url, {{ .File.ContentBaseName }} as identifier.

Use the [SITEROOT]/layouts/partials/comment-*.html to cover themes/fuji/layouts/partials/comment-*.html. Then you can customize the url and identifier, or set multiple api key, add more settings for using DisqusJS. If you want to use DisqusJS, please remember to set disqusJSApi to anything in your config.toml to load CSS.

🔧 Custom stylesheet configuration

Hugo extended version needed.

You can override theme's internal SCSS variables with your own. Create [SITEROOT]/assets/scss/_custom_var.scss to cover variables in SCSS.

Variables available:

$body-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', 'Helvetica',
  'Arial', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans CN', 'Source Han Sans SC',
  'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
$mono-font: 'Cascadia Code', 'SF Mono', 'Fira Code', 'Consolas', $body-font;
$title-font: 'Product Sans', $body-font;
$body-font-size: 16px;

$light-color-primary: #8aa2d3; // https://irocore.com/aofuji/
$light-color-secondary: #8f82bc; // https://irocore.com/fujimurasaki/
$light-color-focus: #3b469b; // https://irocore.com/aomurasaki/
$light-color-mute: #9ea1a3; // https://irocore.com/suzu-iro/
$light-color-font: #3f4551; // https://irocore.com/konnezu/
$light-color-divider: #e5e2e4; // https://irocore.com/komachinezu/
$light-color-bg: #fffffd; // https://irocore.com/shiro/
$light-color-codebg: #f6f8fa; // GitHub

$dark-color-primary: #8aa2d3; // https://irocore.com/aofuji/
$dark-color-secondary: #bab1df; // https://irocore.com/fujimurasaki/
$dark-color-focus: #e6e6e6; // https://irocore.com/shironezumi/
$dark-color-mute: #9ea1a3; // https://irocore.com/suzu-iro/
$dark-color-font: #c0c0c0; // https://irocore.com/gin-iro/
$dark-color-divider: #4d5158; // Discord
$dark-color-bg: #2f3136; // Discord
$dark-color-codebg: #414449; // GitHub

To override SCSS rules, create [SITEROOT]/assets/scss/_custom_rules.scss. This file will have priority over anything regarding CSS rules, but is useless for changing variables that are used elsewhere in the theme.

✏️ Issue und contributing

Feel free to use the issue tracker. The theme has only been fully tested on Firefox, so if there are some problems when accessing with Chrome or others please also report an issue.

📝 License

The theme is released under the Apache License 2.0, for more information read the License.

Copyright © 2019-present DSRKafuU https://dsrkafuu.su/

🤝 Annotations

Thanks to community contributors for great help.

Learned a lot in Sukka's Blog.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].