diff options
| -rw-r--r-- | assets/css/components/_postlist.scss | 4 | ||||
| -rw-r--r-- | content/featured.md | 2 | ||||
| -rw-r--r-- | layouts/_default/featured.html | 16 |
3 files changed, 19 insertions, 3 deletions
diff --git a/assets/css/components/_postlist.scss b/assets/css/components/_postlist.scss index 7682dbae..ece25b80 100644 --- a/assets/css/components/_postlist.scss +++ b/assets/css/components/_postlist.scss @@ -29,6 +29,10 @@ color: var(--secondary-text-color); font-family: var(--mono-font-family); } + a.post-tag { + color: var(--secondary-text-color); + font-size: 0.8rem; + } .posts-item-title { filter: url(#xs); .posts-item-title-pill { diff --git a/content/featured.md b/content/featured.md index 37964861..14e6c587 100644 --- a/content/featured.md +++ b/content/featured.md @@ -2,3 +2,5 @@ title: 精选 layout: featured --- + +这是博客的精选集,我会在这里列出我自认为写得还不错,或者收到较好反响的文章。如果你想要了解本博客的风格和我的主要观点,读一读这里的文章是个好选择。我希望未来的自己在读这些精选文章时,收获的不是羞耻感,而是从过去的自己那里得到帮助和启发。 diff --git a/layouts/_default/featured.html b/layouts/_default/featured.html index f1484bcb..5b093bae 100644 --- a/layouts/_default/featured.html +++ b/layouts/_default/featured.html @@ -3,6 +3,10 @@ {{ partial "header.html" . }} {{ partial "components/postnav.html" . }} + <div class="post-content markdown-content"> + {{ .Content }} + </div> + <!-- Latest Posts --> <section id="featured-posts"> <div class="posts-list"> @@ -11,9 +15,15 @@ style="view-transition-name: post-{{ .File.UniqueID }}"> <header> <div class="posts-item-meta"> - <time> - {{ .Date.Format "Jan 2" }} - </time> + <p> + <time> + {{ .Date.Format "Jan 2, 2006" }} + </time> + <span>·</span> + {{ range .Params.tags }} + <a class="post-tag" href="{{ site.LanguagePrefix }}/tags/{{ lower . | urlize }}/">#{{ . }}</a> + {{ end }} + </p> <h2 class="posts-item-title"> <a href="{{ .Permalink }}" |
