forked from theNewDynamic/gohugo-theme-ananke
-
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.
Use .Render for summary and summary-with-image throughout (theNewDyna…
- Loading branch information
1 parent
93ea9b9
commit 3026f7f
Showing
10 changed files
with
66 additions
and
26 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,29 @@ | ||
{{ $featured_image := partial "func/GetFeaturedImage.html" . }} | ||
<article class="bb b--black-10"> | ||
<div class="db pv4 ph3 ph0-l no-underline dark-gray"> | ||
<div class="flex flex-column flex-row-ns"> | ||
{{ if $featured_image }} | ||
{{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}} | ||
{{ $featured_image := (trim $featured_image "/") | absURL }} | ||
<div class="pr3-ns mb4 mb0-ns w-100 w-40-ns"> | ||
<a href="{{.RelPermalink}}" class="db grow"> | ||
<img src="{{ $featured_image }}" class="img" alt="image from {{ .Title }}"> | ||
</a> | ||
</div> | ||
{{ end }} | ||
<div class="blah w-100{{ if $featured_image }} w-60-ns pl3-ns{{ end }}"> | ||
<h1 class="f3 fw1 athelas mt0 lh-title"> | ||
<a href="{{.RelPermalink}}" class="color-inherit dim link"> | ||
{{ .Title }} | ||
</a> | ||
</h1> | ||
<div class="f6 f5-l lh-copy nested-copy-line-height nested-links"> | ||
{{ .Summary }} | ||
</div> | ||
<a href="{{.RelPermalink}}" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">{{ $.Param "read_more_copy" | default (i18n "readMore") }}</a> | ||
{{/* TODO: add author | ||
<p class="f6 lh-copy mv0">By {{ .Author }}</p> */}} | ||
</div> | ||
</div> | ||
</div> | ||
</article> |
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,13 @@ | ||
<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
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,15 @@ | ||
{{/* | ||
warn | ||
Emits a warning using the theme's Header. | ||
|
||
@author @regisphilibert | ||
|
||
@context String | ||
|
||
@access private | ||
|
||
@example - Go Template | ||
{{ partial "func/warn" $message }} | ||
*/}} | ||
{{ $header := "Ananke Theme Warning" }} | ||
{{ warnf "\n%s:\n%s" $header . }} |
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 was deleted.
Oops, something went wrong.