hematite 0.0.1 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1db52ef0febaa2a32beb6313442243f90416063b26eb923c30edbfe8dc3f831b
4
- data.tar.gz: 18033f6c9e0d8ca6e76fa00982ab3be14995f255fa64ed68fb14b62767f6cef9
3
+ metadata.gz: 893f10d4430904f93e1c546b2906340491a3ed429dffec87e0e3f9633c312e86
4
+ data.tar.gz: fac3b2e1aab02fcf932f49bbc04d5ba89ee9e3b81c6f6a25b5fbb5381d1363f6
5
5
  SHA512:
6
- metadata.gz: 5e89fe9507664d740d9ce0e0f6c23b4f417cb73606676fb646929df4fa712ee88cf4dd86d6bbd9edac6c758f7f2546567743597b87bcf05435e8f4169c668b2e
7
- data.tar.gz: 7f694307b34129302f6e1154d855e444b54bab2f24305243d292b87047dca1e34ca3f2db86847c91047b4f2847679f2d28b8c71ceb1f3b23e54b870b421c6f96
6
+ metadata.gz: c2de98b2f254eb5349571abeb295e1e640f9efcdd9a193414249d099b4ac463470bcbe1f51eb621c3d139a6c9d1ffb9ca5694f7ad6749d3b981e67de637d420b
7
+ data.tar.gz: 7d802505e816146b412af056db60a8a9dc82c312f7015181e036d440f6624bce662b99de84616a1a6f18fa324199b9aa251146bf649c1e49947844072c3d8f66
@@ -1,3 +1,7 @@
1
+ ---
2
+ title: Untitled
3
+ ---
4
+
1
5
  <!DOCTYPE html>
2
6
  <html lang="{{ page.lang | default: site.lang | default: "en-US" }}">
3
7
  <head>
@@ -0,0 +1,9 @@
1
+ ---
2
+ layout: default
3
+ title: Home
4
+ sidebarindex: 1
5
+ ---
6
+
7
+ <main>
8
+ {{ content }}
9
+ </main>
data/_layouts/page.html CHANGED
@@ -2,4 +2,8 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
+ <h1>{{page.title}}</h1>
6
+
7
+ <main>
5
8
  {{ content }}
9
+ </main>
data/assets/js/search.mjs CHANGED
@@ -116,13 +116,13 @@ class Searcher {
116
116
  for (const page of data) {
117
117
  // Remove HTML tags.
118
118
  let content = this.filterContent_(page.content);
119
- content += '\n' + page.title;
119
+ content += '\n' + (page.title ?? "");
120
120
 
121
121
  let pageData = {
122
122
  title: page.title,
123
123
  url: page.url,
124
124
  numMatches: 0,
125
- titleMatches: (page.title.toLowerCase().indexOf(query) != -1)
125
+ titleMatches: (page.title?.toLowerCase()?.indexOf(query) != -1)
126
126
  };
127
127
 
128
128
 
@@ -1,15 +1,9 @@
1
- ---
2
- permalink: /assets/js/string_data.mjs
3
- ---
1
+ import en from "../string_data/en.mjs";
2
+ import es from "../string_data/es.mjs";
4
3
 
5
4
  const STRING_TABLE = {
6
- {% for language in site.data.strings %}
7
- {{ language[0] }}: {
8
- {% for string in language[1] %}
9
- "{{ string[0] }}": {{ string[1] | jsonify }},
10
- {% endfor %}
11
- },
12
- {% endfor %}
5
+ en,
6
+ es,
13
7
  };
14
8
 
15
9
  // Locales to check if a string isn't localized in any of the
@@ -0,0 +1,33 @@
1
+ // See also assets/js/string_data.mjs
2
+ export default {
3
+ open_sidebar: 'Open sidebar',
4
+ close_sidebar: 'Close sidebar',
5
+ search_site_placeholder: 'Find in site...',
6
+ search_site_action: 'Search for "{0}"',
7
+ search_disabled_no_content: 'Missing text to search for!',
8
+ search_error: 'Error searching: {0}',
9
+ hide_search_results_action: 'Hide search results',
10
+ found_search_results: 'Found {0} result(s):',
11
+ copy_link_to_header: 'Copy link to section: "{0}"',
12
+ link_to_header_copied_alert: 'Link to "{0}" copied!',
13
+ sidebar_opened_announcement: 'Sidebar opened!',
14
+ sidebar_closed_announcement: 'Sidebar closed!',
15
+
16
+ invalid_date: 'Invalid date: {0}',
17
+ calendar_prev_btn: 'Previous {0}',
18
+ calendar_next_btn: 'Next {0}',
19
+ calendar_mode_week: 'Week',
20
+ calendar_mode_day: 'Day',
21
+ calendar_mode_month: 'Month',
22
+ calendar_choose_view_mode: 'Change calendar mode: ',
23
+ calendar_went_next: 'Showing next {0}',
24
+ calendar_went_prev: 'Showing previous {0}',
25
+ calendar_changed_mode: 'Switched view mode to {0}',
26
+ calendar_header_date_range: '{0} through {1}',
27
+
28
+ tags: 'Tags',
29
+ untitled: 'Untitled',
30
+ all_tags_header: 'All Tags',
31
+ prev_post: '← {0}',
32
+ next_post: '{0} →',
33
+ };
@@ -0,0 +1,34 @@
1
+
2
+ export default {
3
+ open_sidebar: 'Abre Navegación',
4
+ close_sidebar: 'Cierre Navegación',
5
+ search_site_placeholder: 'Encuentre en el sitio...',
6
+ search_site_action: 'Busque «{0}»',
7
+ search_disabled_no_content: 'No hay texto con que puede buscar.',
8
+ search_error: 'Fue un error: «{0}»',
9
+ hide_search_results_action: 'Esconder resultados',
10
+ found_search_results: 'Encontrado {0} cosa(s):',
11
+ copy_link_to_header: 'Copie enlace de «{0}»',
12
+ link_to_header_copied_alert: '¡El enlace por «{0}» fue copiado!',
13
+ sidebar_opened_announcement: 'Navegación fue abierto.',
14
+ sidebar_closed_announcement: 'Navegación fue cerrado.',
15
+
16
+ invalid_date: 'Inválida fecha: {0}',
17
+ calendar_prev_btn: 'Anterior {0}',
18
+ calendar_next_btn: 'Próxima {0}',
19
+ calendar_mode_week: 'Semana',
20
+ calendar_mode_day: 'Día',
21
+ calendar_mode_month: 'Mes',
22
+ calendar_choose_view_mode: 'Cambia el modo del calendario: ',
23
+ // TODO: Properly handle articles here
24
+ calendar_went_next: 'Mostrando la próxima {0}',
25
+ calendar_went_prev: 'Mostrando la próxima {0}',
26
+ calendar_changed_mode: 'Modo fue cambiado a {0}',
27
+ calendar_header_date_range: '{0} hasta {1}',
28
+
29
+ tags: 'Etiquetas',
30
+ untitled: 'No titulo',
31
+ all_tags_header: 'Todas las etiquetas',
32
+ prev_post: '← {0}',
33
+ next_post: '{0} →',
34
+ };
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hematite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henry Heino
@@ -34,8 +34,6 @@ files:
34
34
  - LICENSE.txt
35
35
  - README.md
36
36
  - _config.yml
37
- - _data/strings/en.yml
38
- - _data/strings/es.yml
39
37
  - _includes/img/hamburger_menu.svg
40
38
  - _includes/img/search_icon.svg
41
39
  - _includes/katex_includes.html
@@ -45,6 +43,7 @@ files:
45
43
  - _includes/nav/sidebar.html
46
44
  - _layouts/calendar.html
47
45
  - _layouts/default.html
46
+ - _layouts/home.html
48
47
  - _layouts/page.html
49
48
  - _layouts/post.html
50
49
  - _sass/_animations.scss
@@ -143,6 +142,8 @@ files:
143
142
  - assets/plugin/katex/katex.min.css
144
143
  - assets/plugin/katex/katex.min.js
145
144
  - assets/search_data.json
145
+ - assets/string_data/en.mjs
146
+ - assets/string_data/es.mjs
146
147
  - assets/style.scss
147
148
  homepage: https://github.com/personalizedrefrigerator/jekyll-hematite-theme
148
149
  licenses:
data/_data/strings/en.yml DELETED
@@ -1,32 +0,0 @@
1
- # See also assets/js/string_data.mjs
2
-
3
- open_sidebar: 'Open sidebar'
4
- close_sidebar: 'Close sidebar'
5
- search_site_placeholder: 'Find in site...'
6
- search_site_action: 'Search for "{0}"'
7
- search_disabled_no_content: 'Missing text to search for!'
8
- search_error: 'Error searching: {0}'
9
- hide_search_results_action: 'Hide search results'
10
- found_search_results: 'Found {0} result(s):'
11
- copy_link_to_header: 'Copy link to section: "{0}"'
12
- link_to_header_copied_alert: 'Link to "{0}" copied!'
13
- sidebar_opened_announcement: 'Sidebar opened!'
14
- sidebar_closed_announcement: 'Sidebar closed!'
15
-
16
- invalid_date: 'Invalid date: {0}'
17
- calendar_prev_btn: 'Previous {0}'
18
- calendar_next_btn: 'Next {0}'
19
- calendar_mode_week: 'Week'
20
- calendar_mode_day: 'Day'
21
- calendar_mode_month: 'Month'
22
- calendar_choose_view_mode: 'Change calendar mode: '
23
- calendar_went_next: 'Showing next {0}'
24
- calendar_went_prev: 'Showing previous {0}'
25
- calendar_changed_mode: 'Switched view mode to {0}'
26
- calendar_header_date_range: '{0} through {1}'
27
-
28
- tags: 'Tags'
29
- untitled: 'Untitled'
30
- all_tags_header: 'All Tags'
31
- prev_post: '← {0}'
32
- next_post: '{0} →'
data/_data/strings/es.yml DELETED
@@ -1,33 +0,0 @@
1
-
2
-
3
- open_sidebar: 'Abre Navegación'
4
- close_sidebar: 'Cierre Navegación'
5
- search_site_placeholder: 'Encuentre en el sitio...'
6
- search_site_action: 'Busque «{0}»'
7
- search_disabled_no_content: 'No hay texto con que puede buscar.'
8
- search_error: 'Fue un error: «{0}»'
9
- hide_search_results_action: 'Esconder resultados'
10
- found_search_results: 'Encontrado {0} cosa(s):'
11
- copy_link_to_header: 'Copie enlace de «{0}»'
12
- link_to_header_copied_alert: '¡El enlace por «{0}» fue copiado!'
13
- sidebar_opened_announcement: 'Navegación fue abierto.'
14
- sidebar_closed_announcement: 'Navegación fue cerrado.'
15
-
16
- invalid_date: 'Inválida fecha: {0}'
17
- calendar_prev_btn: 'Anterior {0}'
18
- calendar_next_btn: 'Próxima {0}'
19
- calendar_mode_week: 'Semana'
20
- calendar_mode_day: 'Día'
21
- calendar_mode_month: 'Mes'
22
- calendar_choose_view_mode: 'Cambia el modo del calendario: '
23
- # TODO: Properly handle m/f articles here.
24
- calendar_went_next: 'Mostrando la próxima {0}'
25
- calendar_went_prev: 'Mostrando la próxima {0}'
26
- calendar_changed_mode: 'Modo fue cambiado a {0}'
27
- calendar_header_date_range: '{0} hasta {1}'
28
-
29
- tags: 'Etiquetas'
30
- untitled: 'No titulo'
31
- all_tags_header: 'Todas las etiquetas'
32
- prev_post: '← {0}'
33
- next_post: '{0} →'