All Projects → zhwangart → Hexo Theme Ocean

zhwangart / Hexo Theme Ocean

Licence: apache-2.0
Ocean is a mobile-enabled Hexo theme based on the features in Hexo's default theme landscape.

Programming Languages

stylus
462 projects

Labels

Projects that are alternatives of or similar to Hexo Theme Ocean

Qexo
A Quick, Powerful and Pretty Online Manager for Hexo.
Stars: ✭ 60 (-83.78%)
Mutual labels:  hexo
Hexo Theme Next
Elegant theme for Hexo.
Stars: ✭ 15,736 (+4152.97%)
Mutual labels:  hexo
Hexo Generator Search
A plugin to generate search data for Hexo.
Stars: ✭ 318 (-14.05%)
Mutual labels:  hexo
hexo-migrator-wordpress
WordPress migrator for Hexo.
Stars: ✭ 45 (-87.84%)
Mutual labels:  hexo
Hexo Theme Tomotoes
🍅 A fresh and refined Hexo theme
Stars: ✭ 265 (-28.38%)
Mutual labels:  hexo
Hexo Theme Polarbear
A super light and simple theme.
Stars: ✭ 301 (-18.65%)
Mutual labels:  hexo
Hexo-Theme-MoeIcarus
✨ Make Icarus theme cute!!!
Stars: ✭ 32 (-91.35%)
Mutual labels:  hexo
Hexo Theme Clean Blog
Hexo implementation of Clean Blog http://blackrockdigital.github.io/startbootstrap-clean-blog/index.html
Stars: ✭ 362 (-2.16%)
Mutual labels:  hexo
Hexo Douban
💿 A simple plugin for hexo that helps us generate pages for douban books ,movies and games.
Stars: ✭ 277 (-25.14%)
Mutual labels:  hexo
Easy Hexo
🤘 Build your own website with Hexo, the easy way. | 轻松使用 Hexo 建站。
Stars: ✭ 314 (-15.14%)
Mutual labels:  hexo
fe-hexo-blog
frank的前端养成记(hexo博客)
Stars: ✭ 19 (-94.86%)
Mutual labels:  hexo
Theme Ad
🔨 Art design theme for write and show.
Stars: ✭ 262 (-29.19%)
Mutual labels:  hexo
Hexo Theme Gal
忧郁的弟弟网站主题移植
Stars: ✭ 307 (-17.03%)
Mutual labels:  hexo
vite.blog
Vite Tech Blog
Stars: ✭ 13 (-96.49%)
Mutual labels:  hexo
Hexo Matery Modified
My personal modified hexo matery theme with some bugs fixed.
Stars: ✭ 342 (-7.57%)
Mutual labels:  hexo
hexo-theme-another
🌱🌱🌱a pithy theme of hexo.
Stars: ✭ 81 (-78.11%)
Mutual labels:  hexo
Hexo Theme Edinburgh
Beautiful minimal portfolio theme for Hexo.
Stars: ✭ 289 (-21.89%)
Mutual labels:  hexo
Hexo Theme Typography
Rediscover the beauty of typography.
Stars: ✭ 367 (-0.81%)
Mutual labels:  hexo
Hexo Theme Hiker
An attractive theme for Hexo. called "Hiker", short for "HikerNews".
Stars: ✭ 348 (-5.95%)
Mutual labels:  hexo
Hexo Theme Stun
🦄 An elegant theme for Hexo
Stars: ✭ 305 (-17.57%)
Mutual labels:  hexo

Ocean

Ocean is a mobile-enabled Hexo theme based on the features in Hexo's default theme landscape. Since I am a Designer and not a Coder, so please advise! I am very grateful to youchen1992 for providing technical support during the Ocean production process.

Preview

中文说明

Screenshot

Install

$ git clone https://github.com/zhwangart/hexo-theme-ocean.git themes/ocean

Enable

Modify theme setting in _config.yml to ocean

theme: ocean

Update

cd themes/ocean
git pull

Configuration

let me know if you can’t find something.

# Menu
menu:
  Home: /
  Archives: /archives
  Gallery: /gallery
  About: /about
  Links: /links
rss: /atom.xml

# Miscellaneous
favicon: /favicon.ico
brand: /images/hexo.svg

# Ocean Video
# Because I put videos in multiple formats on the same path, I just labeled the path here.
ocean:
  overlay: true
  path: images/ocean/      # Video storage path, formats: mp4/ogg/webm
  brand: /images/hexo-inverted.svg      # Optional, a small logo

# Content
excerpt_link: Read More...

# fancybox
fancybox: true

# Local search
search_text: Search

# Gitalk
gitalk:
  enable: true
  clientID: # GitHub Application Client ID
  clientSecret: # Client Secret
  repo: # Repository name
  owner: # GitHub ID
  admin: # GitHub ID

# Valine
valine:
  enable: false    # Default: false.
  el: 'vcomments'    # The DOM element to be mounted on initialization.
  appId:    # Application appId from Leancloud.
  appKey:    # Application appKey from Leancloud.
  notify: false    # Mail notifier, Default: false.
  verify: true    # Validation code, Default: true.
  avatar: 'mp'    # Gravatar type.
  pageSize: '10'    # Number of pages per page.
  placeholder: '请输入...'    # Comment box placeholders.

The feathericon in the menu is programmed ordely in "CSS source/css/_partial/navbar.styl " and can be changed or added if needed.

.nav-item
  &:nth-child(1)         // home
    .nav-item-link
      &::before
        content '\f12f'
  &:nth-child(2)         // archives
    .nav-item-link
      &::before
        content '\f12a'
  //&:nth-child(3)         // gallery
  //  .nav-item-link
  //    &::before
  //      content '\f1a9'
  //&:nth-child(4)         // about
  //  .nav-item-link
  //    &::before
  //      content '\f174'

Plugins

  • hexo-generator-search Local search

    $ npm install hexo-generator-searchdb --save
    

    Then add the plugin configuration for hexo's configuration file _config.yml (note: not the theme's configuration file):

    # Hexo-generator-search
    search:
      path: search.xml
      field: post
      format: html
    
  • hexo-generate-feed RSS

    $ npm install hexo-generator-feed --save
    

    Then add the plugin configuration for hexo's configuration file _config.yml (note: not the theme's configuration file):

    feed:
        type: atom
        path: atom.xml
        limit: 20
        hub:
        content:
        content_limit: 140
        content_limit_delim: ' '
        order_by: -date	
    
  • hexo-generator-index-pin-top

    $ npm uninstall hexo-generator-index --save
    $ npm install hexo-generator-index-pin-top --save
    

Post poster

---
title: Post name

photos: [
        ["img_url"],
        ["img_url"]
        ]
---

Gallery

Need to write in the head of the markdown, this is not a good way to write, I hope to get a better way to write on github.

---
title: Gallery

albums: [
        ["img_url","img_caption"],
        ["img_url","img_caption"]
        ]
---

Toc

Use Tocbot to parse the title tags (h1~h6) in the content and insert the directory.

  • ocean/_config.yml

     # Toc
    toc: true
    
  • If Toc is turned on in ocean/_config.yml, then Tocbot will generate a Toc article directory in the title tag of each blog parsing content, but not all blogs require Toc, so in the Front-matter section of markdown Can be closed:

     ---
    toc: false
    ---
    

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].