|
1 | 1 | block variables |
2 | 2 |
|
3 | 3 | - |
4 | | - var time =new Date(Date.parse(achievementData.date)) |
| 4 | + var time = new Date(Date.parse(achievementData.date)) |
5 | 5 |
|
6 | 6 | doctype html |
7 | 7 | html(lang="ru") |
8 | | - head |
9 | | - meta(charset="UTF-8") |
10 | | - meta(http-equiv="X-UA-Compatible" content="IE=edge") |
11 | | - meta(name="viewport" content="width=device-width, initial-scale=1.0") |
12 | | - title RTUITLab — #{achievementData.title} |
13 | | - |
14 | | - script(async="async"). |
15 | | - let scripts = [ |
16 | | - process.env.MARKDOWN_IT, process.env.SWIPER_LINK |
17 | | - ] |
18 | | - for (let i of scripts) { |
19 | | - var js = document.createElement('script'); |
20 | | - js.src = i; |
21 | | - js.async = "async" |
22 | | - var head = document.getElementsByTagName('head')[0]; |
23 | | - head.appendChild(js); |
24 | | - } |
25 | | - |
26 | | - meta(name="description" content=achievementData.shortdescription.replaceAll("\\n", "")) |
27 | | - link(rel="stylesheet" href="../layout/swiper/swiper-bundle.min.css") |
28 | | - link(rel="canonical" href="https://rtuitlab.dev") |
29 | | - link(rel="stylesheet" href="../layout/achievementPageTemplate/achievementPageTemplate.scss") |
30 | | - script(src="../js/achievementPageTemplate/achievementPageTemplate.js",defer) |
31 | | - link(rel="stylesheet" href="../indexStyles.scss") |
32 | | - |
33 | | - |
34 | | - |
35 | | - script(defer="defer"). |
36 | | - window.onload = function() { |
37 | | - |
38 | | - function decodeHtml(html) { |
39 | | - var txt = document.createElement("textarea"); |
40 | | - txt.innerHTML = html; |
41 | | - return txt.value; |
42 | | - } |
43 | | - |
44 | | - var md = window.markdownit({ |
45 | | - html: true, |
46 | | - xhtmlOut: true, |
47 | | - breaks: true, |
48 | | - linkify: true, |
49 | | - typographer: true, |
50 | | - quotes: '«»'}) |
51 | | - document.getElementById("longdescription").innerHTML=md.render(decodeHtml("#{achievementData.longdescription}")) |
52 | | - } |
53 | | - |
54 | | - |
55 | | - script(type='application/ld+json'). |
56 | | - { |
57 | | - "@context": "https://schema.org", |
58 | | - "@type": "BlogPosting", |
59 | | - "mainEntityOfPage": { |
60 | | - "@type": "WebPage", |
61 | | - "@id": "https://rtuitlab.dev" |
62 | | - }, |
63 | | - "headline": "#{achievementData.title}", |
64 | | - "image": "#{achievementData.images[0]}", |
65 | | - "author": { |
66 | | - "@type": "Organization", |
67 | | - "name": "RTUITLab", |
68 | | - "url": "https://rtuitlab.dev" |
69 | | - }, |
70 | | - "publisher": { |
71 | | - "@type": "Organization", |
72 | | - "name": "RTUITLab", |
73 | | - "logo": { |
74 | | - "@type": "ImageObject", |
75 | | - "url": "" |
76 | | - } |
77 | | - }, |
78 | | - "datePublished": "" |
79 | | - } |
80 | | - |
81 | | - body.achievementsPageTemplate |
82 | | - header |
83 | | - section.buttonContainer |
84 | | - button(onclick="if(window.history.length>2)window.history.back();else{window.location=\"/\"}") |
85 | | - img(src="../images/icons/buttonArrow.svg" alt="") |
86 | | - | Назад |
87 | | - |
88 | | - .titleContainer |
89 | | - h1 #{achievementData.title} |
90 | | - |
91 | | - section.desc #{achievementData.shortdescription} |
92 | | - |
93 | | - main |
94 | | - section.content |
95 | | - .galleryParent |
96 | | - .swiper.achievementsSwiperParent |
97 | | - .swiper-wrapper |
98 | | - each object in achievementData.images |
99 | | - .swiper-slide |
100 | | - img(src="../"+object, alt="" loading='lazy') |
101 | | - each object in achievementData.videos |
102 | | - .swiper-slide |
103 | | - video(src=object, alt="" loop autoplay muted) |
104 | | - .swiper-pagination.achievementsSwiperPagination |
105 | | - |
106 | | - article.info |
107 | | - h3 О событии |
108 | | - section#longdescription |
109 | | - p |
110 | | - strong |
111 | | - |Дата проведения: #{(time).toLocaleDateString("ru")} |
112 | | - |
113 | | - if achievementData.members.length>0 |
114 | | - section.members |
115 | | - h2 Участники |
116 | | - section.itemsParent |
117 | | - each obj in achievementData.members |
118 | | - .item |
119 | | - p #{obj} |
| 8 | + head |
| 9 | + meta(charset="UTF-8") |
| 10 | + meta(http-equiv="X-UA-Compatible" content="IE=edge") |
| 11 | + meta(name="viewport" content="width=device-width, initial-scale=1.0") |
| 12 | + title RTUITLab — #{achievementData.title} |
| 13 | + |
| 14 | + script(async="async"). |
| 15 | + let scripts = [ |
| 16 | + process.env.MARKDOWN_IT, process.env.SWIPER_LINK |
| 17 | + ] |
| 18 | + for (let i of scripts) { |
| 19 | + var js = document.createElement('script'); |
| 20 | + js.src = i; |
| 21 | + js.async = "async" |
| 22 | + var head = document.getElementsByTagName('head')[0]; |
| 23 | + head.appendChild(js); |
| 24 | + } |
| 25 | + |
| 26 | + meta(name="description" content=achievementData.shortdescription.replaceAll("\\n", "")) |
| 27 | + link(rel="stylesheet" href="../layout/swiper/swiper-bundle.min.css") |
| 28 | + link(rel="canonical" href="https://rtuitlab.dev") |
| 29 | + link(rel="stylesheet" href="../layout/achievementPageTemplate/achievementPageTemplate.scss") |
| 30 | + script(src="../js/achievementPageTemplate/achievementPageTemplate.js",defer) |
| 31 | + link(rel="stylesheet" href="../indexStyles.scss") |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + script(defer="defer"). |
| 36 | + window.onload = function() { |
| 37 | + |
| 38 | + function decodeHtml(html) { |
| 39 | + var txt = document.createElement("textarea"); |
| 40 | + txt.innerHTML = html; |
| 41 | + return txt.value; |
| 42 | + } |
| 43 | + |
| 44 | + var md = window.markdownit({ |
| 45 | + html: true, |
| 46 | + xhtmlOut: true, |
| 47 | + breaks: true, |
| 48 | + linkify: true, |
| 49 | + typographer: true, |
| 50 | + quotes: '«»' |
| 51 | + }) |
| 52 | + document.getElementById("longdescription").innerHTML = md.render(decodeHtml("#{achievementData.longdescription}")) |
| 53 | + } |
| 54 | + |
| 55 | + |
| 56 | + script(type='application/ld+json'). |
| 57 | + { |
| 58 | + "@context": "https://schema.org", |
| 59 | + "@type": "BlogPosting", |
| 60 | + "mainEntityOfPage": { |
| 61 | + "@type": "WebPage", |
| 62 | + "@id": "https://rtuitlab.dev" |
| 63 | + }, |
| 64 | + "headline": "#{achievementData.title}", |
| 65 | + "image": "#{achievementData.images[0]}", |
| 66 | + "author": { |
| 67 | + "@type": "Organization", |
| 68 | + "name": "RTUITLab", |
| 69 | + "url": "https://rtuitlab.dev" |
| 70 | + }, |
| 71 | + "publisher": { |
| 72 | + "@type": "Organization", |
| 73 | + "name": "RTUITLab", |
| 74 | + "logo": { |
| 75 | + "@type": "ImageObject", |
| 76 | + "url": "" |
| 77 | + } |
| 78 | + }, |
| 79 | + "datePublished": "" |
| 80 | + } |
| 81 | + |
| 82 | + body.achievementsPageTemplate |
| 83 | + header |
| 84 | + section.buttonContainer |
| 85 | + button(onclick="if(window.history.length>2)window.history.back();else{window.location=\"/\"}") |
| 86 | + img(src="../images/icons/buttonArrow.svg" alt="") |
| 87 | + | Назад |
| 88 | + |
| 89 | + .titleContainer |
| 90 | + h1 #{achievementData.title} |
| 91 | + |
| 92 | + section.desc #{achievementData.shortdescription} |
| 93 | + |
| 94 | + main |
| 95 | + section.content |
| 96 | + .galleryParent |
| 97 | + .swiper.achievementsSwiperParent |
| 98 | + .swiper-wrapper |
| 99 | + each object in achievementData.images |
| 100 | + .swiper-slide |
| 101 | + img(src="../" + object, alt="" loading='lazy') |
| 102 | + each object in achievementData.videos |
| 103 | + .swiper-slide |
| 104 | + video(src=object, alt="" loop autoplay muted) |
| 105 | + .swiper-pagination.achievementsSwiperPagination |
| 106 | + |
| 107 | + article.info |
| 108 | + h3 О событии |
| 109 | + section#longdescription |
| 110 | + p |
| 111 | + strong |
| 112 | + | Дата новости: #{(time).toLocaleDateString("ru")} |
| 113 | + |
| 114 | + if achievementData.members.length > 0 |
| 115 | + section.members |
| 116 | + h2 Участники |
| 117 | + section.itemsParent |
| 118 | + each obj in achievementData.members |
| 119 | + .item |
| 120 | + p #{obj} |
0 commit comments