## 用 vue 写一个单页的 hexo 主题

2018 年 5 月 5 日更新: 因为我突然发现如果采用单页的话，就很难处理 SEO 的问题，所以我现在已经基本不再考虑在 hexo 的基础上考虑这个主题。所以我现在也已经在使用别的主题。在未来，我会考虑采用 vuepress 或者 peco 搭建我的博客。

# 主流的方案

1. 在文件开头添加 "use module"; 或类似字段
2. 新的文件后缀名，如 .mjs
3. 通过源代码内容自动区分
4. package.json 指明采用 ESM 的文件

# 功能陈述

## 终于完成了一个 OJ -- Putong OJ

Putong OJ – 一个看上去很普通的 Online Judge，现已上线

# Features

## Intro

Sort is a prevalent topic in programing. Although the sort operation mostly is handled by the back-end like PHP, Java and so on, occasionaly some are occured in front-end. Here are some simple instances I dealt with recently.

## Bubble-like Sort

Suppose some list elements ordered as follows:

Every time I filter through the nodes to get the smallest-value one from 1st one to 4nd one, and then I put it to the tail of lists. Next, I still filter to get the smallest-value one but from 1st one to 3nd one, and still put it to the tail to the lists. Now, two elements are sorted, and still two ones stay idle. The operation continues until all the elements have been sorted.
The produceres can be illustrated as follows:

2 1 4 3 -> 2 4 3 1 -> 4 3 1 2 -> 4 1 2 3 -> 1 2 3 4