-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously was hard-coded due to using the wrong type of template
- Loading branch information
1 parent
9738ed5
commit 837b5c9
Showing
5 changed files
with
99 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{{ define "main" }} | ||
{{- partial "menu.html" . -}} | ||
<main class="main_content"> | ||
<h1>{{ .Title }}</h1> | ||
{{ .Content }} | ||
<ul> | ||
{{ range .Data.Terms.ByCount }} | ||
<li><a href="{{ .Page.RelPermalink }}" class="tag">#{{ .Page.LinkTitle }}</a> ({{ .Count }})</li> | ||
{{ end }} | ||
</ul> | ||
</main> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{{ define "main" }} | ||
{{- partial "menu.html" . -}} | ||
<main class="main_content"> | ||
<h1>Tag: #{{ .Title }}</h1> | ||
<p> | ||
<b>{{ .Pages.Len }}</b> posts tagged <a href="{{ .Page.RelPermalink }}" class="tag">#{{ .Page.LinkTitle }}</a> | ||
</p> | ||
{{ .Content }} | ||
{{- $studentStories := where (where .Site.RegularPages "Section" "blog") "Params.tags" "intersect" (slice | ||
"student-stories") | ||
}} | ||
<div class="blog-split"> | ||
<div> | ||
{{ partial "pagination.html" . }} | ||
<div class="blog-summaries"> | ||
{{- range .Paginator.Pages }} | ||
{{- .Render "summary" }} | ||
{{- end }} | ||
</div> | ||
{{ partial "pagination.html" . }} | ||
</div> | ||
<aside> | ||
<div class="tag-cloud card"> | ||
<h2>Tags</h2> | ||
<ul> | ||
{{ range .Site.Taxonomies.tags.ByCount }} | ||
<li> | ||
<a href="{{ .Page.RelPermalink }}" class="tag">#{{ .Page.LinkTitle }}</a> ({{ .Count }}) | ||
{{- if eq .Page.Title $.Title -}} <small>←</small>{{- end -}} | ||
</li> | ||
{{ end }} | ||
</ul> | ||
</div> | ||
</aside> | ||
</div> | ||
</main> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,27 @@ | ||
{{ define "main" }} | ||
{{- partial "menu.html" . -}} | ||
<main class="main_content"> | ||
<h1>OSU Open Source Lab Blog</h1> | ||
{{ if .Content }} | ||
<h1>Blog</h1> | ||
<p>All <b>{{ .Pages.Len }}</b> posts</p> | ||
<div class="blog-split"> | ||
<div> | ||
{{ .Content }} | ||
<div class="blog-summaries"> | ||
{{- range .Paginator.Pages }} | ||
{{- .Render "summary" }} | ||
{{- end }} | ||
</div> | ||
{{ partial "pagination.html" . }} | ||
</div> | ||
{{ end }} | ||
{{ partial "pagination.html" . }} | ||
<div class="blog-summaries"> | ||
{{- range .Paginator.Pages }} | ||
{{- .Render "summary" }} | ||
{{- end }} | ||
<aside> | ||
<div class="tag-cloud card"> | ||
<h2>Tags</h2> | ||
<ul> | ||
{{ range .Site.Taxonomies.tags.ByCount }} | ||
<li><a href="{{ .Page.RelPermalink }}" class="tag">#{{ .Page.LinkTitle }}</a> ({{ .Count }})</li> | ||
{{ end }} | ||
</ul> | ||
</div> | ||
</aside> | ||
</div> | ||
{{ partial "pagination.html" . }} | ||
</main> | ||
{{ end }} |
This file was deleted.
Oops, something went wrong.