排除“鬼怪" < marquee>中的页面Jekyll制成的页面行列表 [英] Excluding a "spook" pages from <marquee> line made from Jekyll list of page

查看:45
本文介绍了排除“鬼怪" < marquee>中的页面Jekyll制成的页面行列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用以下表达式

<ul>

{% assign mypages = site.pages | sort: "order" %}
{% for page in mypages %}

<li class="intro">
<a href="{{ page.url | absolute_url }}">{{ 
page.title }}</a>
</li>
{% endfor %}
 </ul>

在我的网站的 index.md中生成所有页面的列表,并且所有作品都完美

at my site's index.md to generate list of all pages and all works perfect

我也在使用上述代码的修改版本

Also I am using modified version of the above-mentioned code

<marquee behavior="scroll" scrollamount="17" 
direction="left" height="80px" loop="-1" 
style="border:0px" width="99%" padding="0px" 
onmouseover="this.stop();" 
onmouseout="this.start();">

{% assign mypages = site.pages | sort: "order" %} 
{% for page in mypages %}

<a href="{{page.url|absolute_url}}"> {{ 
page.shortname }} <span class="rate">{% include 
indexmod.html %}</a></span> <span class="rex"> | 
</span> {% endfor %}
</marquee>

生成由一些元数据和评级值(包括indexmod.html)制成的类似于彭博社的滚动选取框区域,但是出现了7个无标题"页面,没有标题,并且链接到:404.html,feed.xml,sitemap .xml,robots.txt,redirects.json,style.css ...

to generate Bloomberg-like scroll marquee area made from some meta data and rating value (include indexmod.html), but there are appearing 7 "spook" pages without title and linking to: 404.html, feed.xml, sitemap.xml, robots.txt, redirects.json, style.css...

我尝试将thouse页面添加到_config.yml的忽略列表中

I have try to add thouse pages into ignore list in _config.yml

提前感谢技巧,如何将它们全部添加到某些排除过滤器中.

Thanks in advance for trick how to add all of them into some exclude filter.

这是我网站上提到的选框的屏幕.主题032C 0.24链接到标题为"032C"的真实文章,比率为0.24,下一个主题错误,并链接到404.html,比率为0.0,下一个主题再次为4S4R,其余所有零均为技术文件的标题空比率我的网站.我在网站上只留下了2条真实的文章,以便更轻松地解决故障.

Here is screen of the mentioned marquee on my site. Topic 032C 0.24 is linking to a real article with title "032C" with rate 0.24, next topic is wrong and linking to 404.html with rating 0.0, next topic is good again 4S4R, and all rest zeros are titles empty rates for technical files of my site. I have left only 2 real articles on my site for easier fixing the glitch.

推荐答案

我看到没有任何评论.我已经修复了在404.md前面使用排除行的问题的一部分.但是对于其他5个扩展名为.css .json .xml .txt的文件仍然有疑问.

I see there is no any comments. I have fixed part of problem using exclude line in front matter for 404.md. But still have question about other 5 files with extensions .css .json .xml .txt.

因此,我将其余问题重定向到 a新主题

Therefore I am redirecting rest of question to a new topic

这篇关于排除“鬼怪" &lt; marquee&gt;中的页面Jekyll制成的页面行列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆