File tree 3 files changed +23
-8
lines changed 3 files changed +23
-8
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ source "https://rubygems.org"
3
3
gem "jekyll"
4
4
gem 'rake' # Enable Rakefile to run tasks
5
5
gem 'rinku' # Enable to add links in texts
6
+ gem 'truncato' # Enable to truncate long text
6
7
gem 'mini_racer' # Enable to run 'docker-compose up'
7
8
8
9
group :jekyll_plugins do
Original file line number Diff line number Diff line change 41
41
yell (~> 2.0 )
42
42
zeitwerk (~> 2.5 )
43
43
htmlcompressor (0.4.0 )
44
+ htmlentities (4.3.4 )
44
45
http_parser.rb (0.8.0 )
45
46
i18n (1.14.1 )
46
47
concurrent-ruby (~> 1.0 )
97
98
mercenary (0.4.0 )
98
99
mini_racer (0.8.0 )
99
100
libv8-node (~> 18.16.0.0 )
100
- nokogiri (1.15.3 -aarch64-linux )
101
+ nokogiri (1.15.4 -aarch64-linux )
101
102
racc (~> 1.4 )
102
- nokogiri (1.15.3 -arm64-darwin )
103
+ nokogiri (1.15.4 -arm64-darwin )
103
104
racc (~> 1.4 )
104
- nokogiri (1.15.3 -x86_64-linux )
105
+ nokogiri (1.15.4 -x86_64-linux )
105
106
racc (~> 1.4 )
106
107
pathutil (0.16.2 )
107
108
forwardable-extended (~> 2.6 )
133
134
terminal-table (3.0.2 )
134
135
unicode-display_width (>= 1.1.1 , < 3 )
135
136
timers (4.3.5 )
137
+ truncato (0.7.12 )
138
+ htmlentities (~> 4.3.1 )
139
+ nokogiri (>= 1.7.0 , <= 2.0 )
136
140
ttfunk (1.7.0 )
137
141
typhoeus (1.4.0 )
138
142
ethon (>= 0.9.0 )
@@ -160,6 +164,7 @@ DEPENDENCIES
160
164
mini_racer
161
165
rake
162
166
rinku
167
+ truncato
163
168
164
169
BUNDLED WITH
165
170
2.4.3
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env ruby
2
2
3
3
# require 'pry' unless ENV['JEKYLL_ENV'] == 'production'
4
- require 'yaml' # https://docs.ruby-lang.org/ja/latest/library/yaml.html
5
- require 'rinku' # https://github.com/vmg/rinku
4
+ require 'yaml' # https://docs.ruby-lang.org/ja/latest/library/yaml.html
5
+ require 'rinku' # https://github.com/vmg/rinku
6
+ require 'truncato' # https://github.com/jorgemanrubia/truncato
7
+ t = Truncato
6
8
7
9
# Remove existing files and re-generate them
8
10
# NOTE: もしファイルパスを変更して過去ファイルを消したい場面があれば使う
66
68
</div>
67
69
68
70
<div class="article-navigation" style="margin-bottom: 100px;">
69
- <a href="/expo/#{ project_prev [ :id ] } " class="previous-article">< 前の作品へ</a>
70
- ・
71
- <a href="/expo/#{ project_next [ :id ] } " class="next-article">次の作品へ ></a>
71
+ <a href="/expo/#{ project_prev [ :id ] } " title="#{ project_prev [ :title ] } " style="margin-right: 20px;">
72
+ <i class="fas fa-arrow-left"></i>
73
+ 前の作品へ<br>
74
+ <span style="font-size: 8px;">#{ t . truncate project_prev [ :title ] , max_length : 11 } </span>
75
+ </a>
76
+ <a href="/expo/#{ project_next [ :id ] } " title="#{ project_next [ :title ] } " style="margin-left: 20px;">
77
+ 次の作品へ
78
+ <i class="fas fa-arrow-right"></i><br>
79
+ <span style="font-size: 8px;">#{ t . truncate project_next [ :title ] , max_length : 11 } </span>
80
+ </a>
72
81
</div>
73
82
74
83
<style type="text/css">
You can’t perform that action at this time.
0 commit comments