Add more support for internationalisation, style changes
This commit is contained in:
parent
5506163cba
commit
46bea4fa58
16 changed files with 125 additions and 1461 deletions
|
@ -13,7 +13,7 @@ block extra_meta_data
|
|||
meta(name="og:article:modified_time", content=content.updated.toISOExtString)
|
||||
|
||||
block content
|
||||
article(itemscope, itemtype="https://schema.org/BlogPosting")
|
||||
article(itemscope, itemtype="https://schema.org/BlogPosting", lang="#{content.language}")
|
||||
- import utils;
|
||||
header
|
||||
h1.title(itemprop="headline") #{content.title}
|
||||
|
|
|
@ -12,4 +12,4 @@ block sidebar
|
|||
block content
|
||||
header
|
||||
h1.title #{content.title}
|
||||
section !{content.content}
|
||||
section(lang="#{content.language}") !{content.content}
|
||||
|
|
|
@ -8,7 +8,7 @@ block meta_data
|
|||
block sidebar
|
||||
|
||||
block content
|
||||
section
|
||||
section(lang="#{content.language}")
|
||||
header.project-header
|
||||
img.project-icon(src="#{content.icon}", alt="Icon of #{content.title}")
|
||||
div
|
||||
|
@ -31,4 +31,8 @@ block content
|
|||
dt Technologies
|
||||
- foreach(technology; content.technologies)
|
||||
dd.tag #{technology}
|
||||
dt Source code
|
||||
- foreach(sourceCodeLink; content.sourceCode)
|
||||
dd
|
||||
a(href="#{sourceCodeLink.url}", rel="external") #{sourceCodeLink.name}
|
||||
| !{content.content}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
doctype html
|
||||
html(prefix="og: http://ogp.me/ns#")
|
||||
- import constants;
|
||||
- import vibe.d;
|
||||
head
|
||||
//- Kick off loading the css as fast as possible
|
||||
meta(name="viewport", content="width=device-width; initial-scale=1")
|
||||
|
@ -40,7 +41,7 @@ html(prefix="og: http://ogp.me/ns#")
|
|||
body
|
||||
- void menuItem(string text, string link)
|
||||
li
|
||||
a(href="#{link}") #{text}
|
||||
a(href="#{link}") #{trWeb(text)}
|
||||
|
||||
section.header-navigation
|
||||
header
|
||||
|
@ -48,9 +49,9 @@ html(prefix="og: http://ogp.me/ns#")
|
|||
p& template.page.name
|
||||
nav
|
||||
ul
|
||||
- menuItem("home", "/");
|
||||
- menuItem("posts", "/posts/");
|
||||
- menuItem("projects", "/projects/");
|
||||
- menuItem("template.menu.home", "/");
|
||||
- menuItem("template.menu.posts", "/posts/");
|
||||
- menuItem("template.menu.projects", "/projects/");
|
||||
block sidebar
|
||||
footer.hide-small
|
||||
block footer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue