Compare commits

...

5 Commits

Author SHA1 Message Date
09b81b4c1e Change: image width to max 100
fix the problem when use a very small low quality pic
2022-05-03 02:37:34 +08:00
44604f2dc4 Personalize: page button style 2021-08-26 22:43:01 +08:00
2a36ad6fbc Merge branch 'patch-minify' into hmsy 2021-08-26 10:57:07 +08:00
45fc1a2d56 Make css and js resources minify 2021-08-26 10:56:49 +08:00
96a4c93c65 Adjust home header margin 2021-08-26 02:19:45 +08:00
3 changed files with 17 additions and 9 deletions

View File

@@ -24,7 +24,7 @@ p {
}
.home-header {
max-width: 50rem;
margin: 0 -1.2rem 0rem -1.2rem;
margin: 3rem 0;
padding: 1.2rem;
display: flex;
flex-direction: column;
@@ -302,13 +302,18 @@ p {
z-index: 2;
}
.pagination-nav {
margin: 2em 0;
padding: 2em 0;
width: 100%;
max-width: 47rem;
}
/* .pagination-text {
font-family: 'LatoLatinWebMedium';
} */
.pagination-text {
background-color: pink;
padding: 0.5rem;
border-radius: 0.5rem;
box-shadow: 0 0 0.5rem;
text-decoration: none;
color: darkred;
}
.pagination-newer {
float:left;
}
@@ -377,7 +382,7 @@ h1, h2, h3, h4, h5, h6 {
}
img {
display: block;
width: 100%;
max-width: 100%;
height: auto;
margin: 1.5em 0;
}

View File

@@ -23,7 +23,8 @@
{{ partial "meta-tags.html" . }}
{{ end -}}
{{ with resources.Get "css/katex.css" -}}
<link href="{{ .Permalink }}" rel="stylesheet">
{{ $katexcss := resources.Get "css/katex.css" | minify }}
<link href="{{ $katexcss.Permalink }}" rel="stylesheet">
{{ end -}}
{{ $normalizeStyle := resources.Get "css/normalize.css" }}
{{ $mainStyle := resources.Get "css/style.css" }}

View File

@@ -1,8 +1,10 @@
{{ with resources.Get "js/katex.js" }}
<script defer src="{{ .Permalink }}"></script>
{{ $katexjs := resources.Get "js/katex.js" | minify }}
<script defer src="{{ $katexjs.Permalink }}"></script>
{{ end }}
{{ with resources.Get "js/auto-render.js" }}
<script defer src="{{ .Permalink }}" onload="renderMathInElement(document.body);"></script>
{{ $autorenderjs := resources.Get "js/auto-render.js" | minify }}
<script defer src="{{ $autorenderjs.Permalink }}" onload="renderMathInElement(document.body);"></script>
{{ end }}
{{ $corejs := resources.Get "js/core.js" | minify }}
<script src="{{ $corejs.Permalink }}"></script>