-
Notifications
You must be signed in to change notification settings - Fork 564
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
1.2.6 #121
Conversation
Canary 1.2.5
…104) * Add bilibili, changed config * Update footer-left.ejs * Improve the way of openning a new windows from SNS
Update _config.yml
Canary Sync
Edit blog_info.ejs to avoid href is null instead of update _config.yml
Update from source
Pull canary
Feat/telegram
Pr Canary from viosey branch
fixed view_window to _blank
fix(lang): minor improvements for french
fix(lang): minor improvements for english
refactor(sns): simplify conditional display
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Except for minor details, this is ok for me :)
@@ -6,7 +6,7 @@ | |||
|
|||
<!-- LOGO --> | |||
<div class="something-else-logo mdl-color--white mdl-color-text--grey-600"> | |||
<a href="<%= theme.url.logo %>"> | |||
<a href="<% if(theme.url.logo !=null) { %> <%= theme.url.logo %> <% } else { %> # <% } %>"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would have written:
<a href="<%= theme.url.logo || '#' %>">
which is prettier, covers every falsy value and uses strict equality
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -13,7 +13,7 @@ | |||
<div id="comments"> | |||
<!-- 多说评论框 start --> | |||
<div class="ds-thread" | |||
data-thread-key="<% if(theme.comment.duoshuo_thread_key == "id"){ %><%= page.id %><% } else { %><%= page.path %><% } %>" | |||
data-thread-key="<% if(theme.comment.duoshuo_thread_key_type == "id"){ %><%= page.id %><% } else { %><%= page.path %><% } %>" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would have written:
data-thread-key="<% theme.comment.duoshuo_thread_key_type === 'id' ? page.id : page.path %>"
which is less verbose and uses strict equality
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -425,7 +426,7 @@ a { | |||
border-radius: 3px; | |||
} | |||
#post-content.markdown-Github code { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the block since it is empty now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think pidupuis changes is better
`data-thread-key="<% theme.comment.duoshuo_thread_key_type === 'id' ? page.id : page.path %>"` instead of `data-thread-key="<% if(theme.comment.duoshuo_thread_key_type == "id"){%><%= page.id %><% } else { %><%= page.path %><% } %>" `
feat(pages): allow page icons in sidebar
refactor(url): improve logo url decision making
refactor(duoshuo): improve thread key statement
style(markdown): remove .markdown-Github code block
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- There a bug with footer sns icon.
- The version in head.ejs mismatch.
style(all): beautify code
refactor(sns): add two default icons
Footer icon bug fixed |
New features
Changes
duoshuo_thread_key
->duoshuo_thread_key_type
refactor(duoshuo): change duoshuo_thread_key to duoshuo_thread_key_type #105no-wrap
style of.markdown-Github code
Bugs fixed