1、增加访问数量

2、主页的样式修改
3、头像自定义实现
4、注册修改为自动跳转到登录页面,登录失败友好提示,不进行跳转页面处理
5、博客增加私密的功能
This commit is contained in:
limqhz
2022-05-15 18:40:41 +08:00
parent 12ff775d36
commit e51efb81f4
64 changed files with 358 additions and 317 deletions

View File

@@ -37,15 +37,14 @@
</li>
</ul>
<!--如果未登录-->
<div>
<form th:action="@{/search}" method="get">
<ul class="navbar-nav mr-2">
<ul class="navbar-nav">
<li>
<input class="mr-2" name="findWhat" type="text" placeholder="大佬想找什么呢?"/>
<input class="mr-2 mt-2" name="findWhat" type="text" placeholder="大佬想找什么呢?"/>
</li>
<li>
<button type="submit" class="btn btn-sm btn-primary mr-2">
<button type="submit" class="btn btn-sm btn-primary mr-2 mt-2">
全站搜索
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16">
<path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>
@@ -57,8 +56,8 @@
</div>
<!--如果未登录-->
<div sec:authorize="!isAuthenticated()">
<a class="btn btn-sm btn-primary" th:href="@{/toLogin}" role="button">
<div class="mt-2" sec:authorize="!isAuthenticated()">
<a class="btn btn-sm btn-primary mr-auto" th:href="@{/toLogin}" role="button">
<svg class="bi bi-person-fill" width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/>
</svg>