Skip to content
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

tagcloud无法在icarus主题下的右侧widget处显示。 #31

Closed
wangyx1107 opened this issue Feb 17, 2020 · 2 comments
Closed

tagcloud无法在icarus主题下的右侧widget处显示。 #31

wangyx1107 opened this issue Feb 17, 2020 · 2 comments

Comments

@wangyx1107
Copy link

wangyx1107 commented Feb 17, 2020

Tag cloud无法在icarus主题下的右侧widget处显示。
在左侧和下方都显示正常,但在右侧无法显示(有tagcloud的标题,看不到球体)


用朋友的icarus主题blog的tag cloud放在右侧显示,也出现同样的问题,应该不是我的个例问题。

左侧(正常)

右侧(异常)

[click]我的icarus主题blog链接(tagcloud暂时放右侧)
查看tagcloud在左侧的显示效果可将网页以一半屏幕大小显示

另:作者您提供的ejs代码无法在icarus主题下正常显示widget的白色背景
可以使用以下代码替换(~/themes/icarus/layout/widget/tagcloud.ejs)

<% if (site.tags.length) { %>
<div class="card widget">
    <div class="card-content">
        <h3 class="menu-label">
            <%= __('widget.tag_cloud') %>
        </h3>
        <script type="text/javascript" charset="utf-8" src="<%- url_for('/js/tagcloud.js') %>"></script>
        <script type="text/javascript" charset="utf-8" src="<%- url_for('/js/tagcanvas.js') %>"></script>
        <canvas width="250" height="250" id="resCanvas" style="width:100%">
            <%- tagcloud() %>
        </canvas>
    </div>
</div>
<% } %>
@D0n9X1n
Copy link
Owner

D0n9X1n commented Feb 17, 2020

抱歉, 未能找到原因.. 目前只能先放在左边栏吧.

@wangyx1107
Copy link
Author

没事,大概和主题的具体机制有关。
诡异的问题。。。

@D0n9X1n D0n9X1n closed this as completed May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants