mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
RTL support (#29)
This commit is contained in:
committed by
Luiz F. A. de Prá
parent
7207be04f0
commit
fe847fb152
@@ -18,6 +18,10 @@
|
||||
<link rel="stylesheet" href="//cdn.rawgit.com/necolas/normalize.css/master/normalize.css">
|
||||
<link rel="stylesheet" href="{{ "css/style.min.css" | absURL }}">
|
||||
|
||||
{{ if .Site.Params.rtl}}
|
||||
<link rel="stylesheet" href="{{ "css/style-rtl.min.css" | absURL }}">
|
||||
{{ end }}
|
||||
|
||||
{{ range .Site.Params.custom_css }}
|
||||
<link rel="stylesheet" href="{{ . | absURL }}">
|
||||
{{ end }}
|
||||
@@ -33,7 +37,7 @@
|
||||
{{ .Hugo.Generator }}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body class="{{ if .Site.Params.rtl }}rtl{{ end }}">
|
||||
<main class="wrapper">
|
||||
{{ partial "header.html" . }}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
{{ .Site.Title }}
|
||||
</a>
|
||||
{{ with .Site.Menus.main }}
|
||||
<ul class="navigation-list float-right">
|
||||
<ul class="navigation-list {{ if $.Site.Params.rtl }} float-left {{ else }} float-right {{ end }}">
|
||||
{{ range sort . }}
|
||||
<li class="navigation-item">
|
||||
<a class="navigation-link" href="{{ .URL }}">{{ .Name }}</a>
|
||||
|
||||
Reference in New Issue
Block a user