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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +18 -3
  3. data/_includes/header.html +2 -4
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d1a6a6b931822ea36a153a5b1eb32ca9cda070ef
4
- data.tar.gz: 5482256c91ac8784c376b15583c7e4f6dd526f9a
3
+ metadata.gz: 9519b985559d00cd17536b8a5765c66340785f2c
4
+ data.tar.gz: 0ab019dafd70d6d683790d4312a1bd4554195041
5
5
  SHA512:
6
- metadata.gz: 8a0d1a5a15cdf8790df18d82406b89bdd800c5ded4e94597de77d716e40e60a8814326e26a3e7c46d2eb47117db0c0bd445af5fc50881b6949d71668e414c596
7
- data.tar.gz: 3c46ab0a6816da5e7291d21e6e8966d97dee7b31e68d678557e98d2c16183258118c914b7308634e15c4736f0d60bcd12b8b8a41e215d855bd0e0779d260737c
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 `.sidenote` and `.retina2x`
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 a `{:.sidenote}` after a paragraph (in a new line just after paragraph)
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 supports image optimized for retina display:
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}
@@ -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
- {% if my_page.title and my_page.url != "/" %}
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>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-kagami
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - kamikat