forked from kitian616/jekyll-TeXt-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: new footer, add show_subscribe config for article layout
- Loading branch information
Showing
24 changed files
with
259 additions
and
280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -198,6 +198,7 @@ defaults: | |
aside: | ||
toc: true | ||
show_edit_on_github: true | ||
show_subscribe: true | ||
pageview: true | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{%- include snippets/assign.html | ||
target=site.data.variables.default.page.show_author_profile | ||
source0=layout.show_author_profile source1=page.show_author_profile -%} | ||
{%- assign _show_author_profile = __return -%} | ||
|
||
{%- include snippets/assign.html | ||
target=site.data.variables.default.page.show_subscribe | ||
source0=layout.show_subscribe source1=page.show_subscribe -%} | ||
{%- assign _show_subscribe = __return -%} | ||
|
||
{%- include snippets/assign.html | ||
target=site.data.variables.default.page.license | ||
source0=layout.license source1=page.license -%} | ||
{%- assign _license = __return -%} | ||
|
||
<footer class="article__footer"> | ||
{%- if page.modify_date -%} | ||
{%- include snippets/locale-to-string.html locale=site.data.locale.ARTICLE_DATE_FORMAT -%} | ||
{%- assign _locale_date_format = __return -%} | ||
|
||
{%- include snippets/locale-to-string.html locale=site.data.locale.LAST_UPDATED -%} | ||
{%- assign _locale_last_update = __return -%} | ||
<span>{{ _locale_last_update }} | ||
<time itemprop="dateModified" datetime="{{ page.modify_date | date_to_xmlschema }}">{{ page.modify_date | date: _locale_date_format }}</time> | ||
</span> | ||
{%- elsif page.date -%} | ||
<meta itemprop="dateModified" content="{{ page.date | date_to_xmlschema }}"> | ||
{%- endif -%} | ||
|
||
{%- include article/footer/custom.html -%} | ||
|
||
{%- if _show_author_profile -%} | ||
{%- if page.author -%} | ||
{%- assign _author = site.data.authors[page.author] -%} | ||
{%- else -%} | ||
{%- assign _author = site.author -%} | ||
{%- endif -%} | ||
{%- include article/footer/author-profile.html author=_author -%} | ||
{%- endif -%} | ||
|
||
{%- if _show_subscribe -%} | ||
<div class="article__subscribe">{%- include article/footer/subscribe.html -%}</div> | ||
{%- endif -%} | ||
|
||
{%- if _license != false -%} | ||
{%- assign _data_license = site.data.licenses-%} | ||
{%- if site.license -%} | ||
{%- assign _license_data = _data_license[site.license] -%} | ||
{%- endif -%} | ||
{%- if _license != true -%} | ||
{%- assign _license_data = _data_license[_license] -%} | ||
{%- endif -%} | ||
<div class="article__license">{%- include article/footer/license.html license=_license_data -%}</div> | ||
{%- endif -%} | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{%- assign _paths_rss = site.paths.rss | default: site.data.variables.default.paths.rss -%} | ||
{%- include snippets/get-nav-url.html path=_paths_rss -%} | ||
{%- assign _paths_rss = __return -%} | ||
{%- include snippets/locale-to-string.html locale=site.data.locale.SUBSCRIBE -%} | ||
{%- assign _locale_nav_subscribe = __return -%} | ||
<div class="subscribe"><i class="fas fa-rss"></i> <a type="application/rss+xml" href="{{ _paths_rss }}">{{ _locale_nav_subscribe }}</a></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.article__footer { | ||
margin: map-get($spacers, 4) 0; | ||
font-size: map-get($base, font-size-sm); | ||
} | ||
|
||
.article__license, .article__subscribe { | ||
a { | ||
@include link-colors($text-color, $main-color-1); | ||
} | ||
} | ||
|
||
.article__license { | ||
color: $text-color-l; | ||
img { | ||
height: map-get($base, font-size) * 1.6; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,29 @@ | ||
.layout--article { | ||
.article__sharing { | ||
margin: map-get($spacers, 4) 0; | ||
} | ||
.article__footer { | ||
margin: map-get($spacers, 4) 0; | ||
font-size: map-get($base, font-size-sm); | ||
.article__license { | ||
.article__sharing { | ||
margin: map-get($spacers, 4) 0; | ||
} | ||
.article__section-navigator { | ||
padding-top: map-get($spacers, 3); | ||
margin: map-get($spacers, 4) 0 map-get($spacers, 3) 0; | ||
word-wrap: break-word; | ||
@include split-line(top, 4px); | ||
& > .previous, & > .next { | ||
width: 50%; | ||
& > span { | ||
font-weight: map-get($base, font-weight-bold); | ||
color: $text-color-l; | ||
img { | ||
height: map-get($base, font-size) * 1.6; | ||
} | ||
a { | ||
@include link-colors($text-color, $main-color-1); | ||
} | ||
} | ||
} | ||
.article__section-navigator { | ||
padding-top: map-get($spacers, 3); | ||
margin: map-get($spacers, 4) 0 map-get($spacers, 3) 0; | ||
word-wrap: break-word; | ||
@include split-line(top, 4px); | ||
& > .previous, & > .next { | ||
width: 50%; | ||
& > span { | ||
font-weight: map-get($base, font-weight-bold); | ||
color: $text-color-l; | ||
} | ||
& > a { | ||
display: block; | ||
@include link-colors($text-color, $main-color-1); | ||
} | ||
} | ||
& > .previous { | ||
float: left; | ||
padding-right: map-get($spacers, 2); | ||
} | ||
& > .next { | ||
float: right; | ||
padding-left: map-get($spacers, 2); | ||
text-align: right; | ||
& > a { | ||
display: block; | ||
@include link-colors($text-color, $main-color-1); | ||
} | ||
} | ||
& > .previous { | ||
float: left; | ||
padding-right: map-get($spacers, 2); | ||
} | ||
& > .next { | ||
float: right; | ||
padding-left: map-get($spacers, 2); | ||
text-align: right; | ||
} | ||
} |
Oops, something went wrong.