Skip to content

Commit

Permalink
修改首页和日期
Browse files Browse the repository at this point in the history
  • Loading branch information
lyremelody committed May 5, 2024
1 parent feb397c commit 15aeeaa
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 47 deletions.
41 changes: 8 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,16 @@
# 格物修齐

<p align="left">
<a href="https://github.com/lyremelody/spiritual-practice">
<img alt="star" class="no-zoom" src="https://img.shields.io/github/stars/lyremelody/spiritual-practice?style=social">
</a>
<a href="https://github.com/lyremelody/spiritual-practice">
<img alt="watch" class="no-zoom" src="https://img.shields.io/github/watchers/lyremelody/spiritual-practice?style=social">
</a>
<a href="https://github.com/lyremelody/spiritual-practice">
<img alt="last-commit" class="no-zoom" src="https://img.shields.io/github/last-commit/lyremelody/spiritual-practice?style=social">
</a>
</p>
### 内容介绍

**书单:**
* [➡️ 书单-思维与认知](https://www.douban.com/doulist/45741511/)
* [➡️ 书单-职业化](https://www.douban.com/doulist/112792787/)
* [➡️ 书单-计算机基础](https://www.douban.com/doulist/13915490/)
* [➡️ 书单-软件架构](https://www.douban.com/doulist/11915500/)
* [➡️ 书单-科技史和商业史](https://www.douban.com/doulist/12785657/)
* [➡️ 书单-产品和创业](https://www.douban.com/doulist/11858031/)
* [➡️ 书单-领导力](https://www.douban.com/doulist/158107909/)
* [➡️ 书单-人物传记](https://www.douban.com/doulist/156216608/)
个人能力成长的记录。系统地梳理和记录各种能力,包括技术能力、工程能力、业务理解和市场洞察、个人管理和领导力等各方面。

**[➡️ 世界观](./worldview/README.md)**
### 访问方式

**[➡️ 知识体系梳理](./skillmap.md)**
* [➡️ 1.1 概念理解(Understanding Concepts)](./concepts/README.md)
* [➡️ 1.2 发展史(Timelines)](./timelines/README.md)
* [➡️ 2.思想和原则(Culture and Principles)](./culture-and-principles/README.md)
* [➡️ 3.计算机与信息技术(Computer and Infomation Technology)](./cs-and-it-technology/README.md)
* [➡️ 4.软件工程(Software Engineering)](./software-engineering/README.md)
* [➡️ 5.业务与市场(Business and Market)](./business-and-market/README.md)
这是个人能力成长的记录,请点击下面的链接阅读:

**[➡️ 能力与提升(Ability and Improvement)](./ability-and-improvement/)**
- [在线阅读](https://lyremelody.cn/):hugo格式
- [@github](https://github.com/lyremelody/spiritual-practice/):源码托管于github

**[➡️ 方法论](./methodology.md)**
### 版权申明

**[➡️ 论文学习和翻译(Papers)](./papers-reading/README.md)**

**[➡️ 读《资治通鉴》](./zizhitongjian-reading/README.md)**
本笔记内容可以任意转载,但请注明来源并提供链接,**请勿用于商业出版**
12 changes: 11 additions & 1 deletion content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,17 @@ cascade:
type: "docs"
---

# 首页
**书单:**
* [➡️ 书单-思维与认知](https://www.douban.com/doulist/45741511/)
* [➡️ 书单-职业化](https://www.douban.com/doulist/112792787/)
* [➡️ 书单-计算机基础](https://www.douban.com/doulist/13915490/)
* [➡️ 书单-软件架构](https://www.douban.com/doulist/11915500/)
* [➡️ 书单-科技史和商业史](https://www.douban.com/doulist/12785657/)
* [➡️ 书单-产品和创业](https://www.douban.com/doulist/11858031/)
* [➡️ 书单-领导力](https://www.douban.com/doulist/158107909/)
* [➡️ 书单-人物传记](https://www.douban.com/doulist/156216608/)

**知识体系梳理:**
* [概念与理解](./concepts/)
* [发展史](./timelines/)
* [原则](./principles/)
Expand Down
6 changes: 4 additions & 2 deletions hugo.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
baseURL: https://lyremelody.cn/
languageCode: en-us
languageCode: zh_CN
title: 格物修齐
theme: "hugo-book"
copyright: lyremelody.cn
privacy_policy: https://lyremelody.cn/

# Book configuration
disablePathToLower: true
Expand All @@ -24,7 +25,8 @@ params:
BookToC: true
BookLogo: "logo.png"
BookSection: "*"
BookDateFormat: "Jan 2, 2006"
BookRepo: https://github.com/lyremelody/spiritual-practice
BookDateFormat: "2006-01-02"
BookSearch: true
BookComments: true
BookPortableLinks: true
Expand Down
24 changes: 13 additions & 11 deletions layouts/partials/docs/footer.html
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
<div class="flex flex-wrap justify-between">

{{ if and .GitInfo .Site.Params.BookRepo }}
{{ if and .GitInfo .Site.Params.BookRepo }}
<div>
{{- $date := partial "docs/date" (dict "Date" .GitInfo.AuthorDate.Local "Format" .Site.Params.BookDateFormat) -}}
{{- $commitPath := default "commit" .Site.Params.BookCommitPath -}}
<a class="flex align-center" href="{{ .Site.Params.BookRepo }}/{{ $commitPath }}/{{ .GitInfo.Hash }}" title='{{ i18n "Last modified by" }} {{ .GitInfo.AuthorName }} | {{ $date }}' target="_blank" rel="noopener">
<img src="{{ "svg/calendar.svg" | relURL }}" class="book-icon" alt="" />
<span>{{ $date }}</span>
<a class="flex align-center" href="{{ .Site.Params.BookRepo }}/{{ $commitPath }}/{{ .GitInfo.Hash }}"
title='{{ i18n "Last modified by" }} {{ .GitInfo.AuthorName }} | {{ $date }}' target="_blank" rel="noopener">
<span>{{ i18n "Last modified by" }} {{ .GitInfo.AuthorName }} | {{ $date }}</span>
</a>
</div>
{{ end }}
{{ end }}

{{ if and .File .Site.Params.BookRepo .Site.Params.BookEditPath }}
{{ if and .File .Site.Params.BookRepo .Site.Params.BookEditPath }}
<div>
<a class="flex align-center" href="{{ .Site.Params.BookRepo }}/{{ .Site.Params.BookEditPath }}/{{ .Site.Params.contentDir | default "content" }}/{{ replace .File.Path "\\" "/" }}" target="_blank" rel="noopener">
<img src="{{ "svg/edit.svg" | relURL }}" class="book-icon" alt="" />
<a class="flex align-center"
href="{{ .Site.Params.BookRepo }}/{{ .Site.Params.BookEditPath }}/{{ .Site.Params.contentDir | default " content"
}}/{{ replace .File.Path "\\" "/" }}" target="_blank" rel="noopener">
<img src="{{ " svg/edit.svg" | relURL }}" class="book-icon" alt="" />
<span>{{ i18n "Edit this page" }}</span>
</a>
</div>
{{ end }}
{{ end }}

</div>

{{ $script := resources.Get "clipboard.js" | resources.Minify }}
{{ with $script.Content }}
<script>{{ . | safeJS }}</script>
{{ end }}
<script>{ { . | safeJS } }</script>
{{ end }}

0 comments on commit 15aeeaa

Please sign in to comment.