jekyll-theme-kagami 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +18 -3
- data/_includes/header.html +2 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9519b985559d00cd17536b8a5765c66340785f2c
|
4
|
+
data.tar.gz: 0ab019dafd70d6d683790d4312a1bd4554195041
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01cb2200b9862b0b286016b97ce6915d25385ba512b87c973f3eff34e80c2821e07931d9daa190a23f1f9be46bdd42b95710bd5add3e0ebe1aaab6f3842d499a
|
7
|
+
data.tar.gz: 1d7e832a297a9a1c1e97218823689ccf50c09c62a14dffd9a59c67c72189d617c331d6f0f7716f1dcb137ba3b784f872e984b651108db99faaf4a91ee585035b
|
data/README.md
CHANGED
@@ -79,6 +79,21 @@ google_analytics: UA-NNNNNNNN-N
|
|
79
79
|
|
80
80
|
Google Analytics will only appear in production, i.e., `JEKYLL_ENV=production`
|
81
81
|
|
82
|
+
### Navigation
|
83
|
+
|
84
|
+
Pages and posts can be listed as navigation item in header of pages. Add following frontmatter will make it
|
85
|
+
|
86
|
+
```yaml
|
87
|
+
navlevel: header
|
88
|
+
navtitle: Awesome Title # optional, specifies the text to display on navigation item
|
89
|
+
```
|
90
|
+
|
91
|
+
Navigation items are ordered in alphabetical order by default in Jekyll. While you can adjust the order manually using
|
92
|
+
|
93
|
+
```yaml
|
94
|
+
position: 999
|
95
|
+
```
|
96
|
+
|
82
97
|
### Tags and category
|
83
98
|
|
84
99
|
Layout file `post-list` supports filters by tag or category. Create pages with following frontmatter will generate a filtered post list.
|
@@ -113,16 +128,16 @@ or post's front matter stuff:
|
|
113
128
|
mathjax: true
|
114
129
|
```
|
115
130
|
|
116
|
-
### Use `.
|
131
|
+
### Use `.side-note` and `.retina2x`
|
117
132
|
|
118
133
|
Taking advantages of [Block/span IAL](https://kramdown.gettalong.org/syntax.html#block-ials),
|
119
134
|
Kagami supports extra elements in writing.
|
120
135
|
|
121
|
-
Add
|
136
|
+
Add `{:.side-note}` notation after a paragraph (in a new line just after paragraph WITHOUT extra line breaks)
|
122
137
|
will style the paragraph as a sidenote. Sidenote will be pull to the left of
|
123
138
|
the page and only be visible in desktop mode.
|
124
139
|
|
125
|
-
Kagami
|
140
|
+
Kagami is also optimized for high-res image display:
|
126
141
|
|
127
142
|
```markdown
|
128
143
|
![image@2x](path-to-image@2x.png){:.retina2x}
|
data/_includes/header.html
CHANGED
@@ -3,11 +3,9 @@
|
|
3
3
|
<h1 class="post-title">{{ page.title }}</h1>
|
4
4
|
<nav class="site-nav">
|
5
5
|
<div class="page-list">
|
6
|
-
{% assign sorted_pages = site.pages | sort: "position" %}
|
6
|
+
{% assign sorted_pages = site.pages | where_exp: "page", "page.navlevel == 'header'" | sort: "position" %}
|
7
7
|
{% for my_page in sorted_pages %}
|
8
|
-
{
|
9
|
-
<a class="page-link" href="{{ my_page.url | relative_url }}" >{{ my_page.name | downcase | remove: ".md" | escape }}</a>
|
10
|
-
{% endif %}
|
8
|
+
<a class="page-link" href="{{ my_page.url | relative_url }}" >{{ my_page.navtitle | default: my_page.title | escape }}</a>
|
11
9
|
{% endfor %}
|
12
10
|
</div>
|
13
11
|
</nav>
|