litten / hexo-theme-yilia

一个简洁优雅的hexo主题 A simple and elegant theme for hexo.
http://litten.me/
8.36k stars 2.41k forks source link

翻页按钮问题 #855

Closed LourisXu closed 2 years ago

LourisXu commented 4 years ago

image 如图所示,最近忽然出现这个问题,之前都没有

yansheng836 commented 4 years ago

HTML字符转义问题

转义字符,意义,字符
  空格 
&lt; 小于 <
&gt; 大于 >
&laquo; 双小于  <<
&raquo; 双大于 >>
LourisXu commented 4 years ago

HTML字符转义问题

转义字符,意义,字符
&nbsp; 空格 
&lt; 小于 <
&gt; 大于 >
&laquo; 双小于  <<
&raquo; 双大于 >>

这不是主题弄好的嘛,感觉是识别的问题,不知道咋回事

yaolang-hpc commented 4 years ago

我得也出现了同样的问题,请问修复好了么 $ hexo -v hexo-cli: 3.1.0 os: Windows_NT 10.0.17763 win32 x64 node: 12.14.0 v8: 7.7.299.13-node.16 uv: 1.33.1 zlib: 1.2.11 brotli: 1.0.7 ares: 1.15.0 modules: 72 nghttp2: 1.39.2 napi: 5 llhttp: 1.1.4 http_parser: 2.8.0 openssl: 1.1.1d cldr: 35.1 icu: 64.2 tz: 2019c unicode: 12.1

yolia-ed commented 4 years ago

降低hexo版本就行,但是降低版本会有其他一些小问题。。

caoxingdong commented 4 years ago

同问

caoxingdong commented 4 years ago

一个思路: 在\themes\yilia\layout_partial 文件夹下面,把所有的 &laquo &raquo 改成 &lt &gt Snipaste_2020-02-21_19-21-56 https://caoxingdong.github.io/

b1gdea1 commented 4 years ago

有没有操作能把所有文章放在同一页

shona3n commented 4 years ago

我也出现了这个问题,请问有解么?

carytseng commented 4 years ago

求解,同问

yangbh commented 3 years ago

只把这个文件里的« »替换下就好了themes/yilia/layout/_partial/archive.ejs

    <nav id="page-nav">
      <%- paginator({
        prev_text: "« Prev",
        next_text: "Next »"
      }) %>
    </nav>
moxia commented 3 years ago

正确的解决办法:

<%- paginator({
  prev_text: '&laquo; Prev',
  next_text: 'Next &raquo;',
  escape: false
}) %>
LourisXu commented 2 years ago

正确的解决办法:

<%- paginator({
  prev_text: '&laquo; Prev',
  next_text: 'Next &raquo;',
  escape: false
}) %>

已解决