Compare commits

...

4 Commits
v2.23 ... main

Author SHA1 Message Date
Meekdai
35263fd99d 修改首页h1标签为div 2024-08-16 12:07:27 +08:00
Meekdai
f7ea52be7f 修复关闭状态的issue编辑后会被抓取的BUG 2024-08-15 18:19:40 +08:00
Meekdai
8beb6d388a Update plist.html 2024-08-14 14:15:36 +08:00
Meekdai
9f02e2620b Update post.html 2024-08-11 22:17:33 +08:00
3 changed files with 14 additions and 11 deletions

View File

@ -422,11 +422,14 @@ class GMEEK():
def runOne(self,number_str): def runOne(self,number_str):
print("====== start create static html ======") print("====== start create static html ======")
issue=self.repo.get_issue(int(number_str)) issue=self.repo.get_issue(int(number_str))
listJsonName=self.addOnePostJson(issue) if issue.state == "open":
self.createPostHtml(self.blogBase[listJsonName]["P"+number_str]) listJsonName=self.addOnePostJson(issue)
self.createPlistHtml() self.createPostHtml(self.blogBase[listJsonName]["P"+number_str])
self.createFeedXml() self.createPlistHtml()
print("====== create static html end ======") self.createFeedXml()
print("====== create static html end ======")
else:
print("====== issue is closed ======")
def createFileName(self,issue,useLabel=False): def createFileName(self,issue,useLabel=False):
if useLabel==True: if useLabel==True:

View File

@ -13,7 +13,7 @@
<style> <style>
.avatar {transition: 0.8s;width:64px;height:64px;object-fit: cover;} .avatar {transition: 0.8s;width:64px;height:64px;object-fit: cover;}
.avatar:hover{transform: scale(1.15) rotate(360deg);} .avatar:hover{transform: scale(1.15) rotate(360deg);}
#header h1 a{color:inherit;text-decoration:none;vertical-align: bottom;font-size:40px;font-family:Monaco;margin-left:8px;} .title-left a{color:inherit;text-decoration:none;vertical-align: bottom;font-size:40px;font-weight: bold;font-family:Monaco;margin-left:8px;}
.title-right{display:flex;margin:auto 0 0 auto;} .title-right{display:flex;margin:auto 0 0 auto;}
.title-right button{margin-right:8px;padding:16px;} .title-right button{margin-right:8px;padding:16px;}
.title-right .circle{padding: 14px 16px;} .title-right .circle{padding: 14px 16px;}
@ -38,14 +38,14 @@
{% endblock %} {% endblock %}
{% block header %} {% block header %}
<h1> <div class="title-left">
<img src="{{ blogBase['avatarUrl'] }}" class="avatar circle" id="avatarImg" alt="avatar"> <img src="{{ blogBase['avatarUrl'] }}" class="avatar circle" id="avatarImg" alt="avatar">
{%- if blogBase['displayTitle']=='eekdai' -%} {%- if blogBase['displayTitle']=='Meekdai' -%}
<a class="blogTitle" href="https://meekdai.com">{{ blogBase['displayTitle'] }}</a> <a class="blogTitle" href="https://meekdai.com"><span style="font-size:0;">M</span>eekdai</a>
{% else -%} {% else -%}
<a class="blogTitle">{{ blogBase['displayTitle'] }}</a> <a class="blogTitle">{{ blogBase['displayTitle'] }}</a>
{%- endif -%} {%- endif -%}
</h1> </div>
<div class="title-right"> <div class="title-right">
<a href="{{ blogBase['homeUrl'] }}/tag.html" id="buttonSearch" class="btn btn-invisible circle" title="{{ i18n['Search'] }}"> <a href="{{ blogBase['homeUrl'] }}/tag.html" id="buttonSearch" class="btn btn-invisible circle" title="{{ i18n['Search'] }}">
<svg class="octicon" width="16" height="16" > <svg class="octicon" width="16" height="16" >

View File

@ -79,7 +79,7 @@
{% block script %} {% block script %}
<script> <script>
document.getElementById("pathHome").setAttribute("d",IconList["home"]); document.getElementById("pathHome").setAttribute("d",IconList["home"]);
document.getElementById("pathIssue").setAttribute("d",IconList["github"]); {% if blogBase['showPostSource']==1 %}document.getElementById("pathIssue").setAttribute("d",IconList["github"]);{% endif %}
{% if blogBase['commentNum']>0 -%} {% if blogBase['commentNum']>0 -%}
cmButton=document.getElementById("cmButton"); cmButton=document.getElementById("cmButton");
span=document.createElement("span"); span=document.createElement("span");