xaoxuu / hexo-theme-stellar

内置文档系统的简约商务风Hexo主题,支持大量的标签组件和动态数据组件。
https://xaoxuu.com/wiki/stellar/
MIT License
1.19k stars 303 forks source link

添加阅读标签 #462

Closed HcGys closed 1 month ago

HcGys commented 1 month ago

阅读标签

纸张标签 paper

与poetry标签类似的另一种表达形式

效果

image

使用

{% paper [under_line] [title:标题] [author:作者] [date:日期] [footer:footer] %}

<!-- section section-title -->
section-content

<!-- paragraph -->
paragraph-content

<!-- line [right|left] -->
line-content

{% endpaper %}

具体实例

{% paper under_line title:单影只人 author:且听风吟 footer:留言 date:2023.09.08 %}
<!-- line left-->
见字如面。
<!-- line right-->
见字如面。
<!-- paragraph -->
心是一座孤岛,即便岛上繁花似锦,四季更替,依然只是一个人的风景。繁华也好,萧条也好,都只属于一个人。记得有人说过这样一句话:一人花开,一人花落,这些年从头到尾,无人问询。那种寥落,如轩窗外的一片月色,独自在树梢起舞,却无人欣赏它清丽的舞姿。又像是一阙小词,笔笔皆清冷,笔笔皆寂寥。
<!-- section 抓到一名同学 -->
欢迎留言哦!
<!-- paragraph -->
好的,一定会的!
{% endpaper %}

{% paper title:单影只人 author:且听风吟 footer:留言 date:2023.09.08 %}
<!-- paragraph -->
心是一座孤岛,即便岛上繁花似锦,四季更替,依然只是一个人的风景。繁华也好,萧条也好,都只属于一个人。记得有人说过这样一句话:一人花开,一人花落,这些年从头到尾,无人问询。那种寥落,如轩窗外的一片月色,独自在树梢起舞,却无人欣赏它清丽的舞姿。又像是一阙小词,笔笔皆清冷,笔笔皆寂寥。
{% endpaper %}

卷轴标签 reel

与poetry标签类似的另一种表达形式

效果

image

使用

reel:
{% reel [title] [author:作者] [date:日期] [footer:footer] %}
body
{% endreel %}

具体实例

{% reel 游山西村 author:陆游 footer:诗词节选 date:2023.09.08 %}
莫笑农家腊酒浑,丰年留客足鸡豚。
**山重水复疑无路,柳暗花明又一村。**
箫鼓追随春社近,衣冠简朴古风存。
从今若许闲乘月,拄杖无时夜叩门。
莫笑农家腊酒浑,丰年留客足鸡豚。
**山重水复疑无路,柳暗花明又一村。**
箫鼓追随春社近,衣冠简朴古风存。
从今若许闲乘月,拄杖无时夜叩门。
莫笑农家腊酒浑,丰年留客足鸡豚。
**山重水复疑无路,柳暗花明又一村。**
箫鼓追随春社近,衣冠简朴古风存。
从今若许闲乘月,拄杖无时夜叩门。
莫笑农家腊酒浑,丰年留客足鸡豚。
**山重水复疑无路,柳暗花明又一村。**
箫鼓追随春社近,衣冠简朴古风存。
从今若许闲乘月,拄杖无时夜叩门。
莫笑农家腊酒浑,丰年留客足鸡豚。
**山重水复疑无路,柳暗花明又一村。**
箫鼓追随春社近,衣冠简朴古风存。
从今若许闲乘月,拄杖无时夜叩门。
莫笑农家腊酒浑,丰年留客足鸡豚。
**山重水复疑无路,柳暗花明又一村。**
箫鼓追随春社近,衣冠简朴古风存。
从今若许闲乘月,拄杖无时夜叩门。
{% endreel %}

英文标签 English

与paper标签配合使用,也可单独使用。防止出现单词被“截断”以及和中文混搭时间隔太大的情况,

效果

image

使用

{% English %}
content
{% endEnglish %}

具体实例

{% paper under_line title:Youth author:且听风吟 footer:英文测试 date:2023.12.27 %}

<!-- paragraph -->

{% English %}

Youth is not a time of life; it is a state of mind; it is not a matter of rosy cheeks, red lips and supple knees; it is a matter of the will, a quality of the imagination, a vigor of the emotions; it is the freshness of the deep springs of life.

Youth means a temperamental predominance of courage over timidity, of the appetite for adventure over the love of ease. This often exists in a man of 60 more than a boy of 20. Nobody grows old merely by a number of years. We grow old by deserting our ideals.

Years may wrinkle the skin, but to give up enthusiasm wrinkles the soul. Worry, fear, self-distrust bows the heart and turns the spirit back to dust.

Whether 60 or 16, there is in every human being’s heart the lure of wonders, the unfailing appetite for what’s next and the joy of the game of living. In the center of your heart and my heart, there is a wireless station; so long as it receives messages of beauty, hope, courage and power from man and from the infinite, so long as you are young.

When your aerials are down, and your spirit is covered with snows of cynicism and the ice of pessimism, then you’ve grown old, even at 20; but as long as your aerials are up, to catch waves of optimism, there’s hope you may die young at 80.

{% endEnglish %}

{% endpaper %}
stackblitz[bot] commented 1 month ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

xaoxuu commented 1 month ago

感谢PR🫶,我看完有一些修改意见如下:

  1. underline 本身就是一个完整的单词,不用加下划线分隔
  2. 建议改为 [style:underline] 的格式,既代表了下划线样式,又为以后扩展新样式留下了空间。
  3. English 标签我认为没有必要。
HcGys commented 1 month ago

已改。

  1. 去掉 English 标签
  2. under_line去掉下划线
  3. paper标签语法新格式如下:
    
    {% paper [style:underline] [title:标题] [author:作者] [date:日期] [footer:footer] %}

section-content

paragraph-content

line-content

{% endpaper %}