Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
K
kpp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alexandr Veselov
kpp
Commits
9283175c
Commit
9283175c
authored
Feb 03, 2019
by
Nikolay Gromov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Оптимизация шаблона страниц
parent
06193550
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
11 deletions
+9
-11
index.pug
src/pages/index.pug
+2
-4
layout.pug
src/pug/layout.pug
+7
-7
No files found.
src/pages/index.pug
View file @
9283175c
...
...
@@ -10,19 +10,17 @@ block meta
block header
+page-header()
+logo('/')
img(src='img/demo-logo.svg', alt='Logo', height='15')
img(src='img/demo-logo.svg', alt='Logo',
width='64',
height='15')
+main-nav('10')
block content
h1 Заголовок
p Содержимое. #[a(href='blocks-demo.html') Библиотека блоков].
svg(xmlns='http://www.w3.org/2000/svg', width='32', height='32', viewBox='0 0 470.513 470.513')
path(d='M271.521 154.17v-40.541c0-6.086.28-10.8.849-14.13.567-3.335 1.857-6.615 3.859-9.853 1.999-3.236 5.236-5.47 9.706-6.708 4.476-1.24 10.424-1.858 17.85-1.858h40.539V0h-64.809c-37.5 0-64.433 8.897-80.803 26.691-16.368 17.798-24.551 44.014-24.551 78.658v48.82h-48.542v81.086h48.539v235.256h97.362V235.256h64.805l8.566-81.086h-73.37z')
block footer
+page-footer()
p «Подвал»
p Контактный телефон: #[a(href='tel:+70000000000') +7 000 000 00 00]
//- block page-bottom
//- block
append
page-bottom
//- script(src='js/some.js')
src/pug/layout.pug
View file @
9283175c
...
...
@@ -3,7 +3,7 @@
include mixins.pug
doctype html
html(class='
no-js page
', lang='ru')
html(class='
page no-js
', lang='ru')
head
meta(charset='utf-8')
...
...
@@ -21,9 +21,9 @@ html(class='no-js page', lang='ru')
//- link(rel='manifest', href='/img/favicon/site.webmanifest')
//- link(rel='mask-icon', href='/img/favicon/safari-pinned-tab.svg', color='#5bbad5')
//- meta(name='msapplication-TileColor', content='#5bbad5')
meta(name='theme-color', content='#000')
meta(name='msapplication-navbutton-color', content='#000')
meta(name='apple-mobile-web-app-status-bar-style', content='#000')
//-
meta(name='theme-color', content='#000')
//-
meta(name='msapplication-navbutton-color', content='#000')
//-
meta(name='apple-mobile-web-app-status-bar-style', content='#000')
block meta
title Home
...
...
@@ -39,12 +39,12 @@ html(class='no-js page', lang='ru')
.page__inner
.page__content
block header
p
«шапка»
p
шапка
block content
p содержимое
страницы
p содержимое
.page__footer-wrapper
block footer
p
«подвал»
p
подвал
block page-bottom
script(src='js/bundle.js')
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment