fix: liquid syntax error of footer copyright

This commit is contained in:
jeffreytse 2021-06-29 10:42:51 +08:00
parent b3e6ee2f69
commit 0fea688977

View file

@ -3,15 +3,15 @@
<div class="wrapper"> <div class="wrapper">
<div class="site-footer-inner"> <div class="site-footer-inner">
<div> {%- assign currentYear = 'now' | date: "%Y" -%}
{%- assign currYear = 'now' | date: "%Y" -%} {%- assign copyright = site.copyright
{{ site.copyright | replace: '{currentYear}', currentYear
| replace: '{currentYear}', currYear
| replace: '{author}', site.author | replace: '{author}', site.author
| replace: '(c)', '&copy;' | replace: '(c)', '&copy;'
| replace: '(p)', '℗' | replace: '(p)', '℗'
| replace: '(cleft)', '<span class="copyleft">&copy;</span>' | replace: '(cleft)', '<span class="copyleft">&copy;</span>'
}}</div> -%}
<div>{{ copyright }}</div>
<div>Powered by <a title="Jekyll is a simple, blog-aware, static site <div>Powered by <a title="Jekyll is a simple, blog-aware, static site
generator." href="http://jekyllrb.com/">Jekyll</a> &amp; <a title="Yat, yet generator." href="http://jekyllrb.com/">Jekyll</a> &amp; <a title="Yat, yet
another theme." href="https://github.com/jeffreytse/jekyll-theme-yat">Yat Theme</a>.</div> another theme." href="https://github.com/jeffreytse/jekyll-theme-yat">Yat Theme</a>.</div>