-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add css to fix taxonomy - Change some logic in partial calls - Adjust i18n wordings
- Loading branch information
1 parent
012c808
commit 5fc5980
Showing
11 changed files
with
340 additions
and
52 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
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
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,16 @@ | ||
{{ partial "func/warn" `You are currently using 'partial "summary"' in your project templates. | ||
You should replace it with '.Render "summary"' as the use of this partial will be deprecated in future releases. | ||
More info here: https://github.com/theNewDynamic/gohugo-theme-ananke/releases/tag/v2.8.1` }} | ||
<div class="relative w-100 mb4 bg-white nested-copy-line-height"> | ||
<div class="bg-white mb3 pa4 gray overflow-hidden"> | ||
<span class="f6 db">{{ humanize .Section }}</span> | ||
<h1 class="f3 near-black"> | ||
<a href="{{ .RelPermalink }}" class="link black dim"> | ||
{{ .Title }} | ||
</a> | ||
</h1> | ||
<div class="nested-links f5 lh-copy nested-copy-line-height"> | ||
{{ .Summary }} | ||
</div> | ||
</div> | ||
</div> |
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,9 @@ | ||
<ul class="pa0"> | ||
{{ range .GetTerms "tags" }} | ||
<li class="list di"> | ||
<a href="{{ .RelPermalink }}" class="link f5 grow no-underline br-pill ba ph3 pv2 mb2 dib black sans-serif"> | ||
{{- .LinkTitle -}} | ||
</a> | ||
</li> | ||
{{ end }} | ||
</ul> |
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,56 +1,68 @@ | ||
{{ define "header" }}{{ partial "page-header.html" . }}{{ end }} | ||
{{ define "header" }} | ||
{{ | ||
$ctx := merge | ||
(dict | ||
"page" . | ||
"Site" .Site | ||
"Translations" .Translations | ||
) | ||
(dict | ||
"Params" | ||
(dict | ||
"description" | ||
.Content | ||
"featured_image" | ||
"/images/Decysif.png" | ||
) | ||
) | ||
}} | ||
{{ partial "page-header.html" $ctx }} | ||
{{ end }} | ||
{{ define "main" }} | ||
<article class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy {{ $.Param "text_color" | default "mid-gray" }}"> | ||
{{ .Content }} | ||
</article> | ||
{{/* Define a section to pull recent posts from. For Hugo 0.20 this will default to the section with the most number of pages. */}} | ||
<div class="blog-listing"> <!-- Container for the blog listing --> | ||
|
||
{{/* Define a section to pull recent posts from. */}} | ||
{{ $mainSections := .Site.Params.mainSections | default (slice "post") }} | ||
{{/* Create a variable with that section to use in multiple places. */}} | ||
{{ $section := where .Site.RegularPages "Section" "in" $mainSections }} | ||
{{/* Check to see if the section is defined for ranging through it */}} | ||
{{ $section_count := len $section }} | ||
|
||
{{ if ge $section_count 1 }} | ||
{{/* Derive the section name */}} | ||
{{ $section_name := index (.Site.Params.mainSections) 0 }} | ||
|
||
<div class="pa3 pa4-ns w-100 w-70-ns center"> | ||
{{/* Use $section_name to get the section title. Use "with" to only show it if it exists */}} | ||
{{ with .Site.GetPage "section" $section_name }} | ||
<h1 class="flex-none"> | ||
{{ $.Param "recent_copy" | default (i18n "recentTitle" .) }} | ||
</h1> | ||
{{ end }} | ||
|
||
{{ with .Site.GetPage "section" $section_name }} | ||
<h1 class="blog-title">{{ $.Param "recent_copy" | default (i18n "recentTitle" .) }}</h1> <!-- Section title --> | ||
{{ end }} | ||
|
||
{{ $n_posts := $.Param "recent_posts_number" | default 3 }} | ||
|
||
<!-- Main section for recent posts --> | ||
<section class="w-100 mw8"> | ||
{{/* Range through the first $n_posts items of the section */}} | ||
{{ range (first $n_posts $section) }} | ||
<div class="relative w-100 mb4"> | ||
{{ .Render "summary-with-image" }} | ||
</div> | ||
<div class="post-card"> <!-- Post card wrapper --> | ||
{{ .Render "summary-with-image" }} | ||
</div> | ||
{{ end }} | ||
</section> | ||
|
||
{{ if ge $section_count (add $n_posts 1) }} | ||
<section class="w-100"> | ||
<h1 class="f3">{{ i18n "more" }}</h1> | ||
{{/* Now, range through the next four after the initial $n_posts items. Nest the requirements, "after" then "first" on the outside */}} | ||
|
||
{{ range (first 4 (after $n_posts $section)) }} | ||
<h2 class="f5 fw4 mb4 dib {{ cond (eq $.Site.Language.LanguageDirection "rtl") "ml3" "mr3" }}"> | ||
<a href="{{ .RelPermalink }}" class="link black dim"> | ||
{{ .Title }} | ||
</a> | ||
</h2> | ||
<h2 class="f5 fw4 mb4 dib {{ cond (eq $.Site.Language.LanguageDirection "rtl") "ml3" "mr3" }}"> | ||
<a href="{{ .RelPermalink }}" class="link black dim">{{ .Title }}</a> | ||
</h2> | ||
{{ end }} | ||
|
||
{{/* As above, Use $section_name to get the section title, and URL. Use "with" to only show it if it exists */}} | ||
{{ with .Site.GetPage "section" $section_name }} | ||
<a href="{{ .RelPermalink }}" class="link db f6 pa2 br3 bg-mid-gray white dim w4 tc">{{ i18n "allTitle" . }}</a> | ||
<a href="{{ .RelPermalink }}" class="link db f6 pa2 br3 bg-mid-gray white dim w4 tc"> | ||
{{ i18n "allTitle" . }} | ||
</a> | ||
{{ end }} | ||
</section> | ||
</section> | ||
{{ end }} | ||
|
||
</div> | ||
</div> | ||
{{ end }} | ||
</div> | ||
{{ end }} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.