Skip to content

Commit

Permalink
fix: issues for displaying
Browse files Browse the repository at this point in the history
  • Loading branch information
ourai committed Mar 23, 2023
1 parent fd7561e commit d35646a
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 18 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"scripts": {
"build": "node bin generate",
"clean": "rm -rf src/jekyll/.asset-cache",
"start": "node bin serve",
"start": "node bin site serve",
"predeploy": "npm run clean",
"deploy": "node bin deploy"
"deploy": "node bin site deploy"
},
"repository": {
"type": "git",
Expand Down
File renamed without changes.
11 changes: 2 additions & 9 deletions src/jekyll/_includes/ksio/components/link.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
{% assign _inc_link = include.link %}
{% if include.wrap == true %}
{% capture _inc_text %}<span>{{ _inc_link.text }}</span>{% endcapture %}
{% else %}
{% assign _inc_text = _inc_link.text %}
{% endif %}
{% if _inc_link.url contains "http" %}
{% assign _inc_link = include.link %}{% if _inc_link.url contains "http" %}
{% assign _inc_link_url = _inc_link.url | append: "?" | append: include.utm %}
{% assign _inc_external = true %}
{% else %}
Expand All @@ -14,5 +8,4 @@
{% assign _inc_link_url = "javascript:void(0);" %}
{% endif %}
{% assign _inc_external = false %}
{% endif %}
<a href="{{ _inc_link_url }}"{% if _inc_external %} target="_blank" rel="external "{% endif %}>{{ _inc_text }}</a>
{% endif %}<a href="{{ _inc_link_url }}"{% if _inc_external %} target="_blank" rel="external "{% endif %}>{% if include.wrap == true %}<span>{{ _inc_link.text }}</span>{% else %}{{ _inc_link.text }}{% endif %}</a>
6 changes: 1 addition & 5 deletions src/jekyll/_includes/ksio/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
{% if site.ksio.links and site.ksio.links.size > 0 %}
<!-- Important links -->
<nav class="Footer-navs">
<ul>
{% for link in site.ksio.links %}
<li>{% include ksio/components/link.html link=link wrap=true utm=utm_params %}</li>
{% endfor %}
</ul>
<ul>{% for link in site.ksio.links %}<li>{% include ksio/components/link.html link=link wrap=true utm=utm_params %}</li>{% endfor %}</ul>
</nav>
{% endif %}
<!-- Copyright -->
Expand Down
2 changes: 1 addition & 1 deletion src/jekyll/_includes/ksio/meta/brand.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{% if site.ksio.brand.color %}<meta name="theme-color" content="{{ site.ksio.brand.color }}">{% endif %}
<link rel="icon" href="{{ 'favicon' | asset_path }}">
<link rel="icon" href="{{ site.ksio.brand.icon | default: 'ksio/favicon' | asset_path }}">
2 changes: 1 addition & 1 deletion src/jekyll/_layouts/ksio/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<head>
{% include ksio/head.html %}
<!-- 静态资源 -->
{% stylesheet ksio/vendors/disqusjs.min %}
{% if site.ksio.modules.social.comment.disqus.proxy %}{% stylesheet ksio/vendors/disqusjs.min %}{% endif %}
{% stylesheet global %}
{% if layout.css %}
{% for css in layout.css %}{{ css | stylesheet }}{% endfor %}
Expand Down

0 comments on commit d35646a

Please sign in to comment.