diff options
-rw-r--r-- | Gemfile | 1 | ||||
-rw-r--r-- | _config.yml | 16 | ||||
-rw-r--r-- | _includes/views/footer.html | 10 | ||||
-rw-r--r-- | _sass/yat/_layout.scss | 5 |
4 files changed, 30 insertions, 2 deletions
@@ -2,3 +2,4 @@ source "https://rubygems.org" gemspec + diff --git a/_config.yml b/_config.yml index be2d483..aefe93a 100644 --- a/_config.yml +++ b/_config.yml @@ -27,7 +27,21 @@ title: Your awesome title email: your-email@domain.com author: GitHub User -copyright: Copyright © 1970-2010 + +# Copyright setting +# You can use any html code, currently below placeholders are available: +# * current year: {currentYear} +# * author: {author} (Value is the same as site.author) +# * copyright: (c) - © +# * copyleft: (cleft) +# * sound recording copyright: (p) - ℗ +# +# For example: +# "Copyright (c) 2017-{currentYear} <a href="https://example.com">{author}</a>" +# "Copyright © 2017-2021 Foobar" +# +copyright: "Unpublished Work (cleft) 2017-{currentYear} {author}" + description: >- # this means to ignore newlines until "baseurl:" Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for diff --git a/_includes/views/footer.html b/_includes/views/footer.html index 86650e1..78f2f6d 100644 --- a/_includes/views/footer.html +++ b/_includes/views/footer.html @@ -3,7 +3,15 @@ <div class="wrapper"> <div class="site-footer-inner"> - <div>{{ site.copyright }} {% if site.author %}@{{ site.author | escape }}{% endif %}</div> + <div> + {%- assign currYear = 'now' | date: "%Y" -%} + {{ site.copyright + | replace: '{currentYear}', currYear + | replace: '{author}', site.author + | replace: '(c)', '©' + | replace: '(p)', '℗' + | replace: '(cleft)', '<span class="copyleft">©</span>' + }}</div> <div>Powered by <a title="Jekyll is a simple, blog-aware, static site generator." href="http://jekyllrb.com/">Jekyll</a> & <a title="Yat, yet another theme." href="https://github.com/jeffreytse/jekyll-theme-yat">Yat Theme</a>.</div> diff --git a/_sass/yat/_layout.scss b/_sass/yat/_layout.scss index 8bc0814..74751c6 100644 --- a/_sass/yat/_layout.scss +++ b/_sass/yat/_layout.scss @@ -210,6 +210,11 @@ html { } } +.copyleft { + display: inline-block; + transform: rotate(180deg); +} + /** * Post header */ |