placeholder in front matter, social media links, open source from github
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<h2>{{ .Title }}</h2>
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
<section class="projects">
|
||||
{{ range .Pages }}
|
||||
<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
||||
{{ end }}
|
||||
</section>
|
||||
|
||||
{{ end }}
|
||||
@@ -2,10 +2,21 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="author" content="{{ .Site.Params.author }}">
|
||||
<meta name="description" content="{{ .Site.Params.description }}">
|
||||
<meta name="description" content="
|
||||
{{- with .Page.Description -}}
|
||||
{{ . }}
|
||||
{{- else -}}
|
||||
{{ .Site.Params.description }}
|
||||
{{- end -}}">
|
||||
<link rel="stylesheet" href="{{ "css/style.css"
|
||||
| relURL }}">
|
||||
<title>{{ .Site.Title }}</title>
|
||||
<title>
|
||||
{{- if .Page.IsHome -}}
|
||||
{{ .Site.Title }}
|
||||
{{- else -}}
|
||||
{{ .Title }} - {{ .Site.Title }}
|
||||
{{- end -}}
|
||||
</title>
|
||||
</head>
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-TT2JW5ZYFZ"></script>
|
||||
|
||||
@@ -4,12 +4,11 @@
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
{{ range .Pages }}
|
||||
<section class="present">
|
||||
<p>Gallery</p>
|
||||
{{ range .Pages }}
|
||||
<a href="{{ .RelPermalink }}">
|
||||
<img alt="{{ .Title }}" style="width: 50px; height: 50px;">
|
||||
</a>
|
||||
<h4><a href="{{ .RelPermalink }}">
|
||||
<img alt="{{ .Title }}" src="//placehold.co/150x150">
|
||||
</a></h4>
|
||||
{{ end }}
|
||||
</section>
|
||||
|
||||
|
||||
21
themes/basic/layouts/projects/list.html
Normal file
21
themes/basic/layouts/projects/list.html
Normal file
@@ -0,0 +1,21 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<h2>{{ .Title }}</h2>
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
<section class="projects">
|
||||
<section class="projects">
|
||||
{{ with .Site.GetPage "/opensource.md" }}
|
||||
|
||||
<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
||||
<p>{{ .Summary }}</p>
|
||||
{{ end }}
|
||||
</section>
|
||||
{{ range .Pages }}
|
||||
<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
||||
<p>{{ .Summary }}</p>
|
||||
{{ end }}
|
||||
</section>
|
||||
|
||||
{{ end }}
|
||||
@@ -12,6 +12,14 @@
|
||||
<section class="project">
|
||||
<h2>{{ .Title }}</h2>
|
||||
{{ .Content }}
|
||||
<img alt="{{ .Params.alt_text }}" src="{{ .Params.image }}">
|
||||
|
||||
<h3>Tech used</h3>
|
||||
<ul>
|
||||
{{ range .Params.tech_used }}
|
||||
<li>{{ . }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
{{ end }}
|
||||
@@ -27,4 +27,19 @@ nav > a {
|
||||
|
||||
.project-container .project-list { width: 20%; }
|
||||
|
||||
.project-container .project { flex: 1; }
|
||||
.project-container .project { flex: 1; }
|
||||
/* might do the same with present(ation) */
|
||||
|
||||
.oss {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.oss article {
|
||||
border: 1px solid #ddd;
|
||||
box-shadow: 3px 3px 3px #ddd;
|
||||
margin: 0.5%;
|
||||
padding: 0.5%;
|
||||
width: 30%;
|
||||
}
|
||||
Reference in New Issue
Block a user