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

求教,天气位置改为子页面导航 #3

Open
san-ren opened this issue Mar 23, 2024 · 2 comments
Open

求教,天气位置改为子页面导航 #3

san-ren opened this issue Mar 23, 2024 · 2 comments

Comments

@san-ren
Copy link

san-ren commented Mar 23, 2024

网站内容太多了,一个页面显得臃肿,左侧导航栏也没有滚动条,
我看了别的主题,天气的位置可以是子页面导航,我该修改哪个文件呢?

@oulh
Copy link
Owner

oulh commented Mar 23, 2024

天气:

<li>
<div id="he-plugin-simple"></div>
<script>WIDGET = {CONFIG: {"modules": "12034","background": 5,"tmpColor": "aaa","tmpSize": 16,"cityColor": "aaa","citySize": 16,"aqiSize": 16,"weatherIconSize": 24,"alertIconSize": 18,"padding": "30px 10px 30px 10px","shadow": "1","language": "auto","borderRadius": 5,"fixed": "false","vertical": "middle","horizontal": "left","key": "a922adf8928b4ac1ae7a31ae7375e191"}}</script>
<script src="https://widget.heweather.net/simple/static/js/he-simple-common.js?v=1.1"></script>
</li>

可以替换成链接子页面的 li -> a 标签,或者并列添加 li -> a 标签。
修改方式:可以直接修改主题文件,也可以在仓库根目录创建 layouts/index.html 并修改。
如果只是想快速定位子页面,其实可以把它当作导航网址放在最开头。

@san-ren
Copy link
Author

san-ren commented Mar 24, 2024

ok,成功添加并列标签导航到子页面,感谢感谢😆
看来要想把网站做下去,多多少少得学一点html了😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants