Skip to content

Commit 92dd476

Browse files
committed
Splitting heads, styles, scripts adn modified repository url in package.json
1 parent 9c5b106 commit 92dd476

File tree

8 files changed

+52
-21
lines changed

8 files changed

+52
-21
lines changed

build/index.html

+17-4
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,21 @@
33
<head>
44

55
<title>Web page title</title>
6-
6+
77
<!-- fonts.googleapis.com/css -->
88
<style>@import url('https://fonts.googleapis.com/css?family=Nothing+You+Could+Do%7CRaleway:100,200,300,400,500,600,700,800,900%7CMontserrat:100,200,300,400,500,600,700,800,900');</style>
99

1010
<!-- main.css -->
1111
<link rel="stylesheet" href="assets/css/main.css">
1212
</head>
13-
<body>
14-
<!-- MAIN -->
13+
<body>
14+
<!-- HEADER -->
15+
16+
<header>
17+
<!-- insert your header here -->
18+
</header>
19+
20+
<!-- MAIN -->
1521
<main>
1622

1723
<!-- ================== Block Main Top ================== -->
@@ -26,10 +32,17 @@ <h1 class="display-1 text-warning">Gulp, Twig and SCSS</h1>
2632
<!-- ================== Block Main Bottom ================== -->
2733
<!-- insert your bottom html blocks here -->
2834
</main>
35+
36+
<!-- FOOTER -->
37+
38+
<footer>
39+
<!-- insert your footer here -->
40+
</footer>
41+
<!-- SCRIPTS -->
2942

3043
<!-- jquery.slim.min.js -->
3144
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
3245
<!-- script.js -->
33-
<script src="./assets/js/script.js"></script>
46+
<script src="./assets/js/script.js"></script>
3447
</body>
3548
</html>

client/templates/includes/footer.twig

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
<!-- jquery.slim.min.js -->
3-
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
4-
<!-- script.js -->
5-
<script src="./assets/js/script.js"></script>
2+
<footer>
3+
<!-- insert your footer here -->
4+
</footer>

client/templates/includes/head.twig

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
<title>{{ title }}</title>
3+
{% include "../includes/styles.twig" %}

client/templates/includes/header.twig

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
2-
<title>{{ title }}</title>
3-
4-
<!-- fonts.googleapis.com/css -->
5-
<style>@import url('https://fonts.googleapis.com/css?family=Nothing+You+Could+Do%7CRaleway:100,200,300,400,500,600,700,800,900%7CMontserrat:100,200,300,400,500,600,700,800,900');</style>
6-
7-
<!-- main.css -->
8-
<link rel="stylesheet" href="assets/css/main.css">
1+
2+
<header>
3+
<!-- insert your header here -->
4+
</header>
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
<!-- jquery.slim.min.js -->
3+
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
4+
<!-- script.js -->
5+
<script src="./assets/js/script.js"></script>

client/templates/includes/styles.twig

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
<!-- fonts.googleapis.com/css -->
3+
<style>@import url('https://fonts.googleapis.com/css?family=Nothing+You+Could+Do%7CRaleway:100,200,300,400,500,600,700,800,900%7CMontserrat:100,200,300,400,500,600,700,800,900');</style>
4+
5+
<!-- main.css -->
6+
<link rel="stylesheet" href="assets/css/main.css">

client/templates/layouts/default.twig

+13-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
<!doctype html>
22
<html lang="zxx">
33
<head>
4-
{% include "../includes/header.twig" %}
4+
{% include "../includes/head.twig" %}
55
</head>
6-
<body>
7-
<!-- MAIN -->
6+
<body>
7+
<!-- HEADER -->
8+
{% include "../includes/header.twig" %}
9+
10+
<!-- MAIN -->
811
<main>
912
{% block content %}
1013

1114
{% endblock %}
1215
</main>
13-
{% include "../includes/footer.twig" %}
16+
17+
<!-- FOOTER -->
18+
{% include "../includes/footer.twig" %}
19+
20+
<!-- SCRIPTS -->
21+
{% include "../includes/scripts.twig" %}
22+
1423
</body>
1524
</html>

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"repository": {
1010
"type": "git",
11-
"url": "git+https://[email protected]/dyarfi/gulp-twig-scss.git"
11+
"url": "git+https://github.com/dyarfi/gulp-twig-scss"
1212
},
1313
"keywords": [
1414
"twig",

0 commit comments

Comments
 (0)