Ocean is a mobile-enabled Hexo theme based on the features in Hexo's default theme landscape.
Switch branches/tags
Nothing to show
Clone or download
wangzh
Latest commit 8646d57 Dec 10, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
languages Logo is Hexo Logo Nov 19, 2018
layout gitalk Dec 8, 2018
screenshots update Nov 30, 2018
source gitalk Dec 8, 2018
README.md correct the mistake Dec 10, 2018
_config.yml gitalk Dec 8, 2018
package.json gitalk Dec 8, 2018

README.md

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, the Ocean code may not be perfect! 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
rss: /atom.xml

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

# Ocean Video
# Because I put videos in multiple formats on the same path, I just labeled the path here.
ocean_video_poster: video poster path      # Optional,Used for display before video loading
ocean_video_src: video src path      # Video format mp4/ogg/webm
ocean_video_brand: /images/hexo-inverted.svg      # Optional

# Content
excerpt_link: Read More...
nav_prev_text: Newer posts
nav_next_text: Olde posts
share_text: Share

# fancybox
fancybox: true

# Local search
search_text: Search

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

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'

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