chakhsu / pinghsu Goto Github PK
View Code? Open in Web Editor NEWPinghsu, A Typecho Theme
Home Page: https://www.linpx.com/p/pinghsu-a-typecho-theme.html
License: MIT License
Pinghsu, A Typecho Theme
Home Page: https://www.linpx.com/p/pinghsu-a-typecho-theme.html
License: MIT License
thumb
字段,最新的两篇文章为啥没生效……启用大佬的主题后 没有进入后台的接口?
刚启用的时候 在文章评论区还可以看到管理员已登陆以及进入后台。
关闭网页。 之后再开博客便找不到登陆选项了。
同时开启pjax和google统计时会有Bug
会多次发起pv统计
原因是ajax加载的html也会带上ga统计初始化代码
造成analytics.js多次加载,pv打点重复
简单的解法
if(typeof ga == 'undefined'){
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-xxx-x', 'auto');
ga('send', 'pageview', location.pathname + location.search);
}
判断 typeof ga == 'undefined'
ga不存在时才加载初始化代码
我不太会typecho, 主题层面不知你有没有修复方案
为啥放到themes目录下识别不出来呢,其它主题能正常识别……😓
怎么配置加密封面呢
首页带图片那块?那个属于缩略图的部分,怎么显示出来?遵循下面的规则
自定义字段thumb -> 附件第一张图片 -> 文章内容的图片 -> 默认缩略图 -> 无
想默认是无 但是首页则会出现灰色方形块 在function里面删除相关代码吗
RT,本来想通过独立页面建一个留言栏的,却发现能正常评论,但是却无法显示评论
首页如何设置三栏显示
请问Shell Session应该用bash还是shell呢?
感觉应该用```bash,```shell不起作用?
另外好像并没有高亮多少关键词啊。
HOT TAGS
Warning: Undefined array key "cid" in /www/wwwroot/typecho/var/Widget/Base/Contents.php on line 500
Warning: Undefined array key "created" in /www/wwwroot/typecho/var/Widget/Base/Contents.php on line 525
\frac \over无法渲染
和EditorMD共用时,code显示会出现问题, 代码行间距离特别大.能优化一下吗
very cool theme! 赞!
我会使用Python的Django框架。您的Pingshu能够应用到Django上吗?
上传到wordpress后,提示缺少样式表
I wrote some custom pages, but I don't want it to show on the navigation bar, what should I do?
我说试了半天怎么替换功能没生效
大佬好!我现在在使用你的主题,但是遇到一个问题,问题如题,请大佬有空解答
文章开启生成目录,但目录有些长,部分内容无法显示
你好,请问是否支持代码高亮自定义css
网站迁移,新环境下,仅此主题的博客,一旦恢复主题,https就失效。
环境Ubuntu16,lnmp 部署
您好,我第一次使用typecho,对于自定义字段不是很了解,网上查了许久也没有搞明白。
对于您的介绍里:
在文章编辑内填写自定义字段,支持的字段如下:lock、。。。。
请问我添加自定义字段后lock,该如何使其生效?
求大佬指点下
你好,有一个小问题手机端三明治按钮弹出后不能收回。
为了使用WEBPG格式图片,我在function文件中加多了这个函数
function is_webp(){
return strstr($_SERVER['HTTP_ACCEPT'],'image/webp');
}
parseFieldsThumb函数调整如下
function parseFieldsThumb($obj){
$options = Typecho_Widget::widget('Widget_Options');
if(!empty($options->src_add) && !empty($options->cdn_add)){
$fieldsThumb = str_ireplace($options->src_add,$options->cdn_add,$obj->fields->thumb);
echo trim($fieldsThumb);
}else{
if(is_webp()){
$wt = $obj->fields->thumb();
$wp = str_replace("jpg","?imageView2/0/format/webp/q/85",$wt);
return $wp;
}
else{
return $obj->fields->thumb();
}
}
}
但并没有生效。。
自己水平有限求大佬指点
我想要基于python框架django实现pinghsu的后台,但是不知道具体应该怎么让pinghsu与django结合
毕竟一般来说只有文章页需要使用代码高亮,通过增加判断来选择是否加载highlight.js可以稍微加快首页的打开速度
并且有pjax的优势,对文章内容的高亮显示速度应该影响甚小
不知是什么原因
在chrome中查看,发现color属性均列成了删除线(即不实现)?
如题,右边栏的目录如果解析的标题太多,下部分会看不见,目录无法滚动
在设置为单列的情况下,在手机上滑动文章列表时,如果点到了题图,有概率图片会消失,变成空白。
https://adms.cn 这是我的blog 我永远跳不到正文里面去,点击任何一篇文章一直是首页,你知道什么问题吗
文章内容只有一个iframe:
<iframe src="//player.bilibili.com/player.html?aid=23743513&cid=39683004&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" width="650" height="500"> </iframe>
而首页相应文章的缩略图地址匹配成那iframe的地址:
<div class="onelist-item-thumb bg-deepgrey" style="background-image:url(//player.bilibili.com/player.html?aid=23743513&cid=39683004&page=1);"></div>
导致该文章无缩略图
好精简的代码,好漂亮的主题。很感谢你的分享。已经收藏在博客了,但是还没换。现在用的Junichi,自己乱七八糟地改了不少,对于只会基本的html的我不敢随意换。笑cry……
在使用这个 QPlayer 插件的时候,发现这个插件在加载页面的时候还是会停止播放歌曲,而不是像有 Pjax 一样跨页面播放歌曲
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.