Skip to content

Commit 09b4ab3

Browse files
authored
Refactoring *.pug code (#659)
1 parent 08bb2ab commit 09b4ab3

File tree

7 files changed

+17
-18
lines changed

7 files changed

+17
-18
lines changed

src/html/blocks/links.pug

-5
This file was deleted.
File renamed without changes.

src/html/includes/links.pug

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
-
2+
var links = [
3+
{ title: 'Github', icon: 'github', url: 'https://github.com/r3nya' },
4+
{ title: 'LinkedIn', icon: 'linkedin', url: 'https://www.linkedin.com/in/r3nya' },
5+
{ title: 'Twitter', icon: 'twitter', url: 'https://twitter.com/r3nya' },
6+
{ title: 'Telegram', icon: 'paper-plane', url: 'https://t.me/r3nya' }
7+
]
8+
9+
main.one-half
10+
each link in links
11+
+link(link.title, link.icon, link.url)
File renamed without changes.
File renamed without changes.

src/html/index.pug

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
extends ./layout.pug
22

3-
block head
4-
include ./blocks/head.pug
5-
6-
block name
7-
include ./blocks/name.pug
8-
9-
block links
10-
include ./blocks/links.pug
3+
block content
4+
include includes/name.pug
5+
include includes/links.pug

src/html/layout.pug

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
include ./mixins.pug
1+
include includes/mixins.pug
22

33
doctype html
44
html(lang='en')
5-
block head
5+
include includes/head.pug
66

77
body
88
.container
9-
block name
10-
11-
block links
9+
block content

0 commit comments

Comments
 (0)