开启JavaScript才能访问本站哦~
loading image
互动
最新评论

2024

01-09

申请居住证需要的提供的手续(自购房屋)

本人需携带以下材料申领居住证:

  1. 办证人身份证或户口页原件及复印件一份。
  2. 近期一寸免冠照片两张 (底色不限)。
  3. 房屋房产证原件及复印件。
  4. 房主身份证原件及复印件。
  5. 孩子出生医学证明原件及复印件。
  6. 夫妻双方结婚证原件及复印件。(两本)
注意事项
  • 自登记日期起半年以后方可办理居住证。
  • 现可开具居住登记证明一份。
  • 居住登记有效期-年,逾期须事新办理登记

01-06

  • 更改标题为海心阁
  • 升级主题为Solitude 1.3.0
  • 归档页有点小bug,就是文章数量只统计当前页面的。我根据安知鱼的主题,做了以下修改:

用以下代码覆盖getArchiveLength.js的内容

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
hexo.extend.helper.register('getArchiveLength', function () {
const { archive_generator: archiveGenerator } = hexo.config
if (archiveGenerator && archiveGenerator.enable === false) return this.site.posts.length
const { yearly, monthly, daily } = archiveGenerator
const { year, month, day } = this.page
if (yearly === false || !year) return this.site.posts.length

const posts = this.site.posts.sort('date')

const compareFunc = (type, y1, m1, d1, y2, m2, d2) => {
switch (type) {
case 'year':
return y1 === y2
case 'month':
return y1 === y2 && m1 === m2
case 'day':
return y1 === y2 && m1 === m2 && d1 === d2
default:
return false
}
}

const generateDateObj = (type) => {
return posts.reduce((dateObj, post) => {
const date = post.date.clone()
const year = date.year()
const month = date.month() + 1
const day = date.date()
const lastData = dateObj[dateObj.length - 1]

if (!lastData || !compareFunc(type, lastData.year, lastData.month, lastData.day, year, month, day)) {
const name = type === 'year' ? year : type === 'month' ? `${year}-${month}` : `${year}-${month}-${day}`
dateObj.push({
name,
year,
month,
day,
count: 1
})
} else {
lastData.count++
}

return dateObj
}, [])
}

const data = this.fragment_cache('createArchiveObj', () => {
const dateObjs = []
if (yearly) dateObjs.push(...generateDateObj('year'))
if (monthly) dateObjs.push(...generateDateObj('month'))
if (daily) dateObjs.push(...generateDateObj('day'))
return dateObjs
})

const name = month ? (day ? `${year}-${month}-${day}` : `${year}-${month}`) : year
return data.find(item => item.name === name).count
})

修改archive.pug内容如下:

1
2
3
4
#archive
- .article-sort-title #{__('page.archives')}<sup>#{page.posts.find({ parent: { $exists: false } }).length}</sup>
+ .article-sort-title #{__('page.archives')}<sup>#{getArchiveLength()}</sup>
.article-sort

12-12

集成Heo music

贡献者:亦小封

修改body的type类型以适配css

  • main.js中加入:
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    let sco = {
    // 修改body的type类型以适配css
    setValueToBodyType: function () {
    const input = document.getElementById("page-type"); // 获取input元素
    const value = input.value; // 获取input的value值
    document.body.dataset.type = value; // 将value值赋值到body的type属性上
    }
    }
    window.refreshFn = () => {
    sco.setValueToBodyType()
    }
  • body.pug中加入:
    1
    2
    div#js-pjax
    + input(type="hidden" name="page-type" id="page-type" value=(page.type ? page.type : (is_post() ? "post" : (is_category() ? "categories" : "haisky"))))

12-06

Solitude 1.2.5

不再使用anzhiyu主题,转而使用solitude主题,参考文档

理由:

  • solitude主题与heo主题接近程度更高
  • 自己不想再折腾主题了

12-05

  1. 摆脱了服务器,博客完全托管于github以及vercel
  2. twikoo采取vercel部署,参考文档
  3. 友链朋友圈采取vercel部署,参考文档
全部分类
全部标签
赞助主题
智能客服与搜索