reorganized folder structure
This commit is contained in:
4
gharbeia.net/themes/hyde-rtl/layouts/404.html
Normal file
4
gharbeia.net/themes/hyde-rtl/layouts/404.html
Normal file
@@ -0,0 +1,4 @@
|
||||
{{ define "main" -}}
|
||||
<h1>404: Page not found</h1>
|
||||
<p class="lead">Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. <a href="{{ .Site.BaseURL }}">Head back home</a> to try finding it again.</p>
|
||||
{{- end }}
|
||||
10
gharbeia.net/themes/hyde-rtl/layouts/_default/baseof.html
Normal file
10
gharbeia.net/themes/hyde-rtl/layouts/_default/baseof.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{{ partial "head.html" . }}
|
||||
<body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">
|
||||
{{ partial "sidebar.html" . }}
|
||||
<main class="content container">
|
||||
{{ block "main" . -}}{{- end }}
|
||||
</main>
|
||||
|
||||
{{ template "_internal/google_analytics_async.html" . }}
|
||||
</body>
|
||||
</html>
|
||||
9
gharbeia.net/themes/hyde-rtl/layouts/_default/list.html
Normal file
9
gharbeia.net/themes/hyde-rtl/layouts/_default/list.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{{ define "main" -}}
|
||||
<ul class="posts">
|
||||
{{ range .Data.Pages -}}
|
||||
<li>
|
||||
<span><a href="{{ .Permalink }}">{{ .Title }}</a> <time class="pull-right post-list" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></span>
|
||||
</li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
{{- end }}
|
||||
13
gharbeia.net/themes/hyde-rtl/layouts/_default/single.html
Normal file
13
gharbeia.net/themes/hyde-rtl/layouts/_default/single.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{{ define "main" -}}
|
||||
<div class="post">
|
||||
<h1>{{ .Title }}</h1>
|
||||
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}" class="post-date" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}"> نُشر في {{ .Date.Day }} {{ index $.Site.Data.months_ar (printf "%d" .Date.Month) }} {{ .Date.Year }} (آخر تعديل {{ .Lastmod.Day }} {{ index $.Site.Data.months_ar (printf "%d" .Lastmod.Month) }} {{ .Lastmod.Year }})</time>
|
||||
{{.TableOfContents}}
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
{{ if .Site.DisqusShortname -}}
|
||||
<h2>{{ i18n "Comments" }}</h2>
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
19
gharbeia.net/themes/hyde-rtl/layouts/index.html
Normal file
19
gharbeia.net/themes/hyde-rtl/layouts/index.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{{ define "main" -}}
|
||||
<div class="posts">
|
||||
{{ range .Data.Pages -}}
|
||||
<article class="post">
|
||||
<h1 class="post-title">
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
</h1>
|
||||
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}" class="post-date" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}"> نُشر في {{ .Date.Day }} {{ index $.Site.Data.months_ar (printf "%d" .Date.Month) }} {{ .Date.Year }} (آخر تعديل {{ .Lastmod.Day }} {{ index $.Site.Data.months_ar (printf "%d" .Lastmod.Month) }} {{ .Lastmod.Year }})</time>
|
||||
|
||||
{{ .Summary }}
|
||||
{{ if .Truncated }}
|
||||
<div class="read-more-link">
|
||||
<a href="{{ .RelPermalink }}">{{ i18n "readmore" }}</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
</article>
|
||||
{{- end }}
|
||||
</div>
|
||||
{{- end }}
|
||||
35
gharbeia.net/themes/hyde-rtl/layouts/partials/head.html
Normal file
35
gharbeia.net/themes/hyde-rtl/layouts/partials/head.html
Normal file
@@ -0,0 +1,35 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"{{with .Site.LanguageCode}} xml:lang="{{.}}" lang="{{.}}"{{end}}>
|
||||
<head>
|
||||
<link href="//gmpg.org/xfn/11" rel="profile">
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
{{ .Hugo.Generator }}
|
||||
|
||||
<!-- Enable responsiveness on mobile devices-->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
{{ if .IsHome -}}
|
||||
<title>{{ .Site.Title }}</title>
|
||||
{{- else -}}
|
||||
<title>{{ .Title }} · {{ .Site.Title }}</title>
|
||||
{{- end }}
|
||||
|
||||
<!-- CSS -->
|
||||
<link type="text/css" rel="stylesheet" href="{{ .Site.BaseURL }}css/print.css" media="print">
|
||||
<link type="text/css" rel="stylesheet" href="{{ .Site.BaseURL }}css/poole.css">
|
||||
<link type="text/css" rel="stylesheet" href="{{ .Site.BaseURL }}css/poole-rtl.css">
|
||||
<link type="text/css" rel="stylesheet" href="{{ .Site.BaseURL }}css/syntax.css">
|
||||
<link type="text/css" rel="stylesheet" href="{{ .Site.BaseURL }}css/hyde.css">
|
||||
<link type="text/css" rel="stylesheet" href="{{ .Site.BaseURL }}css/hyde-rtl.css">
|
||||
|
||||
{{ partial "head_fonts.html" . }}
|
||||
|
||||
<!-- Icons -->
|
||||
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144-precomposed.png">
|
||||
<link rel="shortcut icon" href="/favicon.png">
|
||||
|
||||
<!-- RSS -->
|
||||
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
|
||||
|
||||
{{ partial "hook_head_end.html" . }}
|
||||
</head>
|
||||
@@ -0,0 +1 @@
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Abril+Fatface|PT+Sans:400,400i,700">
|
||||
21
gharbeia.net/themes/hyde-rtl/layouts/partials/sidebar.html
Normal file
21
gharbeia.net/themes/hyde-rtl/layouts/partials/sidebar.html
Normal file
@@ -0,0 +1,21 @@
|
||||
<aside class="sidebar">
|
||||
<div class="container sidebar-sticky">
|
||||
<div class="sidebar-about">
|
||||
<a href="{{ .Site.BaseURL }}"><h1>{{ .Site.Title }}</h1></a>
|
||||
<p class="lead">
|
||||
{{ with .Site.Params.description }} {{.}} {{ else }}An elegant open source and mobile first theme for <a href="http://hugo.spf13.com">hugo</a> made by <a href="http://twitter.com/mdo">@mdo</a>. Originally made for Jekyll.{{end}}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<nav>
|
||||
<ul class="sidebar-nav">
|
||||
<li><a href="{{ .Site.BaseURL }}">{{ i18n "home" }}</a> </li>
|
||||
{{ range .Site.Menus.main -}}
|
||||
<li><a href="{{.URL}}"> {{ .Name }} </a></li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<p>{{ with .Site.Params.copyright }}{{.}}{{ else }}© {{ now.Format "2006"}}. All rights reserved. {{end}}</p>
|
||||
</div>
|
||||
</aside>
|
||||
Reference in New Issue
Block a user