Skip to content

Commit 2391698

Browse files
committed
update
1 parent 5e66227 commit 2391698

10 files changed

+27
-11
lines changed

HTML-Template.7z

34.3 KB
Binary file not shown.

LICENSE

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
The MIT License (MIT)
2+
3+
Copyright 2020 Igor Agapov
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
44

5+
![logo](https://htmltemplate.site/logo.png)
6+
57
## Homepage
68

79
[https://htmltemplate.site/](https://htmltemplate.site/)
@@ -21,7 +23,7 @@
2123
- .gitignore
2224
- Local Express.js Server Example
2325
- Error 404 Page Example
24-
- README.md
26+
- And More
2527

2628
## Installation
2729

@@ -33,13 +35,13 @@ npm i / yarn
3335

3436
## Usage
3537

36-
## Development Server
38+
### Development Server
3739

3840
```bash
3941
npm run dev / yarn dev
4042
```
4143

42-
## Production Server
44+
### Production Server
4345

4446
```bash
4547
npm start / yarn start

css/style.css

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* CSS3 */
2+
/* Modules */
23
@import './modules/header.css';
34
@import './modules/main.css';
45
@import './modules/footer.css';

index.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,10 @@ <h1>
189189
<footer>
190190
<p>
191191
&copy; 2020.
192-
<a href="https://github.com/harryheman" target="_blank" rel="noopener"
192+
<a
193+
href="https://github.com/harryheman"
194+
target="_blank"
195+
rel="noopener"
193196
>
194197
Igor Agapov
195198
</a>

logo.png

35.8 KB
Loading

server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ app.use((req, res) => {
1010
res.setHeader('X-Frame-Options', 'sameorigin')
1111
res.setHeader('Content-Security-Policy', "frame-ancestors 'self';")
1212

13-
// for production
13+
// for production only
1414
// res.setHeader('Content-Encoding', 'br', 'gzip', 'deflate')
1515

1616
res.setHeader('Cache-Control', 'no-cache')

service-worker.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const NAME = 'cache-name-v1'
1+
const NAME = 'html-template-v1'
22

33
const FILES = [
44
'./index.html',
@@ -20,7 +20,7 @@ const FILES = [
2020
'./icons/128x128.png',
2121
'./icons/150x150.png',
2222
'./icons/256x256.png',
23-
'./icons/512x512.png'
23+
'./icons/512x512.png',
2424
]
2525

2626
self.addEventListener('install', (e) => {
@@ -45,7 +45,8 @@ self.addEventListener('activate', (e) => {
4545

4646
self.addEventListener('fetch', (e) => {
4747
e.respondWith(
48-
caches.match(e.request)
48+
caches
49+
.match(e.request)
4950
.then(
5051
(response) =>
5152
response ||

sitemap.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
33
<url>
44
<loc>https://example.com</loc>
5-
<lastmod>2020-11-20</lastmod>
5+
<lastmod>2020-11-26</lastmod>
66
<changefreq>monthly</changefreq>
77
<priority>1.0</priority>
88
</url>

vscode-html-snippet.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
"\t\t<header>",
113113
"\t\t\t<h1>$1</h1>",
114114
"\t\t\t<nav>",
115-
"\t\t\t\t<a href='#'>Link 1</a>",
115+
"\t\t\t\t<a href='#' target='_blank' rel='noopener'>Link 1</a>",
116116
"\t\t\t\t<a href='#' target='_blank' rel='noopener'>Link 2</a>",
117117
"\t\t\t</nav>",
118118
"\t\t</header>",
@@ -125,7 +125,7 @@
125125
"",
126126
"\t\t<script src='./script.js' type='module'></script>",
127127
"\t</body>",
128-
"</html>",
128+
"</html>"
129129
],
130130
"description": "Create Modern HTML Template"
131131
}

0 commit comments

Comments
 (0)