-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【求助】这是一个求助 #70
Comments
大佬们好,我修改了index.php 这部分的代码 <div class="mdui-card-primary-title"><?php $this->sticky();$this -> title(); ?></div>
<div class="mdui-card-primary-subtitle index-info"><strong>[<?php $this -> tags('] ['); ?>]</strong><br />
<strong>❃<?php $this -> category(','); ?>❃</strong>
<?php $this -> date(); ?>
|<?php get_post_view($this) ?> 浏览|
<?php $this -> commentsNum('没有评论呐', '孤单 の 1 条评论', '%d 条评论'); ?></div>
<div class="mdui-card-primary-subtitle index-subtitle"><?php $this -> excerpt(); ?></div> 用以改变主页面的卡片样式 |
但是只能在第一页正常显示 在主页上,向下滑动至第二页后均会造成布局混乱。 目前博客粗暴的用跳转链接其他页面了。 相关链接: |
混乱前和混乱后的图片可以提供一下吗?还有你修改这段代码的commit有么,有的话可以提供一下 |
commit没得,我都是打包然后上传到服务器直接改的,没用git。 <div class="mdui-card-primary-title"><?php $this->sticky();$this -> title(); ?></div>
<div class="mdui-card-primary-subtitle index-info"><?php $this -> date(); ?>
|<?php $this -> commentsNum('0 条评论', '1 条评论', '%d 条评论'); ?></div>
<div class="mdui-card-primary-subtitle index-subtitle"><?php $this -> excerpt(); ?></div> 修改后代码: <div class="mdui-card-primary-title"><?php $this->sticky();$this -> title(); ?></div>
<div class="mdui-card-primary-subtitle index-info"><strong>[<?php $this -> tags('] ['); ?>]</strong><br />
<strong>❃<?php $this -> category(','); ?>❃</strong>
<?php $this -> date(); ?>
|<?php get_post_view($this) ?> 浏览|
<?php $this -> commentsNum('没有评论呐', '孤单 の 1 条评论', '%d 条评论'); ?></div>
<div class="mdui-card-primary-subtitle index-subtitle"><?php $this -> excerpt(); ?></div> |
相关的achieve.php部分一并修改了。 |
抱歉 来晚力 问题还存在么? |
这几天看了下,出现这个问题的原因是因为你添加的 <?php $this -> tags('] ['); ?>
<?php $this -> category(','); ?> 会解析变成带有 |
要解决这个问题就需要重新规划 a 标签力 |
原来如此 |
@bhaoo 大佬,我想问一下如果我修改这里的a标签用div在外面嵌套里面的话,懒加载部分加载的标签在哪里修改啊 |
@LoCCai 指的是瀑布流加载下一页的那个吗?可以说明再详细一点么,贴上些源码?Σ(・ิ¬・ิ) |
就是我想把article标签里面追加的class为 post 的 a标签改为 div 。 然后不添加href指向。而后将指向性a标签(permalink)添加到index-img 和 index-primary部分。这样里面嵌套的a标签就不会有问题了。但是这样后续加载下一页时。追加到article的标签还是a标签。也就是需要改typecho 博客 下一页获取到的内容模板。但是我没找到在哪里。看那个cuckoo.min.js的IFS函数,没看太懂 |
|
var patt1 = /Powered By <a(.) href="http://www.typecho.org"(.)>Typecho</a>/i; function onPageLoad() { }; |
大概就是这样,想让后面追加到article的a标签变成div,并和php中的一样 |
No description provided.
The text was updated successfully, but these errors were encountered: