-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New widgets, tested in posts and in sidebar.
- Loading branch information
Showing
22 changed files
with
337 additions
and
98 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
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,19 @@ | ||
{% assign sidebarName = include.sidebarName | default: "calendar" %} | ||
{% assign title = site.jaytch.layout.sidebars.[sidebarName].title %} | ||
{% assign date = site.jaytch.layout.sidebars.[sidebarName].date %} | ||
{% assign headBG = site.jaytch.layout.sidebars.[sidebarName].hedBGColor %} | ||
{% assign headFG = site.jaytch.layout.sidebars.[sidebarName].headFGColor %} | ||
{% assign grayDateBG = site.jaytch.layout.sidebars.[sidebarName].grayDateBGColor %} | ||
{% assign grayDateFG = site.jaytch.layout.sidebars.[sidebarName].grayDateFGColor %} | ||
{% assign postDateBG = site.jaytch.layout.sidebars.[sidebarName].postDateBGColor %} | ||
{% assign divWidth = site.jaytch.layout.sidebars.[sidebarName].width %} | ||
|
||
<div class="sidebar"> | ||
<div class="postSummary"> | ||
{% if title %}<p class="title">{{ title }}</p>{% endif %} | ||
|
||
{% include jaytch/snips/calendar.liquid date=date width=divWidth headBGColor=headGB headFGColor=headFG grayDateBGColor=grayDateBG grayDateFGColor=grayDateFG postDateBGColor=postDateBG %} | ||
</div> | ||
</div> | ||
|
||
{% assign rendered=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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{% assign sidebarName = include.sidebarName | default: "countdown" %} | ||
{% assign mode = site.jaytch.layout.sidebars.[sidebarName].mode %} | ||
{% assign class = site.jaytch.layout.sidebars.[sidebarName].class %} | ||
{% assign title = site.jaytch.layout.sidebars.[sidebarName].title %} | ||
|
||
<div class="sidebar"> | ||
<div class="postSummary"> | ||
<p class="text"> | ||
{% if title %}<p class="title">{{ title }}</p>{% endif %} | ||
|
||
{% include jaytch/snips/countdown.liquid mode=mode class=class %} | ||
</p> | ||
</div> | ||
</div> | ||
{% assign rendered=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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{% assign sidebarName = include.sidebarName | default: "googleplus" %} | ||
{% assign profileId = site.jaytch.layout.sidebars.[sidebarName].profileId %} | ||
<div class="googleplusfeed">{{ profileId }}</div> | ||
<div class="googleplusfeed">{{ profileId }}</div> | ||
{% assign rendered=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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,24 @@ | ||
{% assign posts = include.posts | default: site.posts %} | ||
{% assign limit = include.limit | default: 3 %} | ||
{% assign words = include.words | default: 25 %} | ||
{% assign showArchiveLink = include.showArchiveLink | default: true %} | ||
{% assign archiveUrl = include.archiveUrl | default: "/archive" %} | ||
{% assign sidebarName = include.sidebarName | default: "posts" %} | ||
{% assign limit = site.jaytch.layout.sidebars.[sidebarName].limit | default: 3 %} | ||
{% assign words = site.jaytch.layout.sidebars.[sidebarName].words | default: 25 %} | ||
{% assign showArchiveLink = site.jaytch.layout.sidebars.[sidebarName].showArchiveLink | default: false %} | ||
{% assign archiveUrl = site.jaytch.layout.sidebars.[sidebarName].archiveUrl | default: "/archive" %} | ||
{% assign showViewPostLink = site.jaytch.layout.sidebars.[sidebarName].showViewPostLink | default: false %} | ||
{% assign category = site.jaytch.layout.sidebars.[sidebarName].category %} | ||
{% assign tag = site.jaytch.layout.sidebars.[sidebarName].tag %} | ||
{% assign title = site.jaytch.layout.sidebars.[sidebarName].title %} | ||
|
||
{% if category %} | ||
{% assign posts = site.categories[category] %} | ||
{% elsif tag %} | ||
{% assign posts = site.tags[tag] %} | ||
{% else %} | ||
{% assign posts = site.posts %} | ||
{% endif %} | ||
|
||
<div class="sidebar"> | ||
|
||
{% for post in posts limit limit %} | ||
|
||
<div class="postSummary"> | ||
<p class="title">{{ post.title }}<br/><small><a href="{{ site.baseurl }}{{ post.url }}">{{ post.date | date: "%B %e, %Y" }}</a></small></p> | ||
<p class="text">{{ post.content | strip_html | truncatewords: words }}</p> | ||
</div> | ||
|
||
{% endfor %} | ||
|
||
{% if showArchiveLink %} | ||
|
||
<div class="postSummary"> | ||
<p class="title">Archive</p> | ||
|
||
<p class="text">The most recent {% if posts.size > limit %}{{ limit }}{% else %}{{ posts.size }}{% endif %} posts are shown above. <a href="{{ site.baseurl }}{{ archiveUrl }}">Click here</a> to view the archive.</p> | ||
{% if title %}<p class="title">{{ title }}</p>{% endif %} | ||
{% include jaytch/snips/posts.liquid limit=limit words=words showArchiveLink=showArchiveLink archiveUrl=archiveUrl posts=posts showViewPostLink=showViewPostLink %} | ||
</div> | ||
|
||
{% endif %} | ||
|
||
</div> | ||
{% if posts | size %}{% assign rendered=true %}{% endif%} |
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,6 +1,15 @@ | ||
{% assign sidebarName = include.sidebarName | default: "quote" %} | ||
{% assign quote = site.jaytch.layout.sidebars.[sidebarName].quote | default: page.quote %} | ||
{% assign title = site.jaytch.layout.sidebars.[sidebarName].title %} | ||
|
||
{% if quote %} | ||
{% include jaytch/snips/quote.liquid quote=quote %} | ||
<div class="sidebar"> | ||
<div class="postSummary"> | ||
{% if title %}<p class="title">{{ title }}</p>{% endif %} | ||
<p class="text"> | ||
{% include jaytch/snips/quote.liquid quote=quote %} | ||
{% assign rendered=true %} | ||
</p> | ||
</div> | ||
</div> | ||
{% endif %} |
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
File renamed without changes.
File renamed without changes.
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 @@ | ||
<span class='{{ include.class | default: "countdown" }} {{ include.mode | default: "inline" }}'> | ||
<span class="value" style="display:none">{{ include.datetime | default: page.date | default: site.time }}</span> | ||
<span class="valueGroup"><span class="valueDays"> </span> days</span> | ||
<span class="valueGroup"><span class="valueHours"> </span> hrs</span> | ||
<span class="valueGroup"><span class="valueMinutes"> </span> min</span> | ||
<span class="valueGroup"><span class="valueSeconds"> </span> sec</span></span> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.