Commit graph

170 commits

Author SHA1 Message Date
Den McHenry d5b87cb15e Don't duplicate site title in home page TITLE tag (#78)
Let's say your `.Site.Title` is "My Website". The code grabs `.Site.Title`, and then then checks to see if there's a `.Title`. When you're on the homepage, `.Title` is equivalent to `.Site.Title`, so that the browser bar will read:

> My Website | My Website

If we qualify `.Title` by confining to the `.Params` namespace, then the site title isn't duplicated:

```<title>{{ block "title" . }}{{ .Site.Title }} {{ with .Params.Title }} | {{ . }}{{ end }}{{ end }}</title>```

> My Website

But it still picks up `.Title` from posts and pages, where a content title exists in front matter:

> My Website | About Me
2018-01-15 20:26:37 -05:00
Russell Cohen 8b59adb79b Fix pagination (#76) 2018-01-08 23:03:52 -05:00
budparr ff25b71173
Fix linkedin icon to match the other social icons
Fixes #70
2017-11-06 17:44:30 -05:00
Developer Davo f9b62a2645 #68|Parmeterize number of recent posts in index.html (#69)
* Parmeterize number of recent posts in index.html

* Replace .Site.Params.recent_posts_number with $.Param "recent_posts_number" in index.html
2017-11-01 11:08:19 -04:00
Developer Davo 2a1495aaa5 Fix typo in single.html (#67) 2017-10-31 08:30:32 -04:00
budparr afd2735066
Be smarter about linking to posts on home page.
Fixes #50

Hugo's `.Summary` did not behave as I expected it to, not stripping out
HTML, so I removed the anchor block from around the posts and moved the
links to the image, title and a read more button.
2017-10-16 12:56:21 -04:00
Adam Kaplan 1e37db6cef Favicons (#54)
* Adding support for favicon

* Fixing html tag
2017-09-27 07:52:26 -04:00
budparr be9acde3f4
Merge branch 'master' of https://github.com/budparr/gohugo-theme-ananke
* 'master' of https://github.com/budparr/gohugo-theme-ananke:
  indent fix (#45)
2017-09-26 12:00:34 -04:00
budparr 4d9dc08ee0
Fix spacing 2017-09-26 11:59:56 -04:00
budparr 1dd38282ab
Remove margin 2017-09-26 11:59:47 -04:00
alea12 c850d4f9f8 indent fix (#45) 2017-09-26 11:55:13 -04:00
Brad Clark eb765fdbc8 Social icon updates (#51)
* add linkedin

* update github svg to fix spacing

* add colors from brandcolors.net
2017-09-26 11:51:01 -04:00
Brad Clark 293cedefc1 Add GitHub social icon (#48)
* add github social link

* add github css

* fix css error breaking rollover
2017-09-20 15:12:25 -04:00
Bud Parr a3dc1ac327 Add body_classes parameter to body
Fixes #43
2017-08-23 20:00:53 -04:00
Bjørn Erik Pedersen 7b5196ad18 Make Hero image work out-of-the box (#40)
* using Hero sample image in the theme's /static folder
* fall back to site config
* fall back to hard coded default if none set in page or site params
2017-07-23 08:36:54 -04:00
Bud Parr 6350c2fee6 Fixes #31 (#32) 2017-05-23 07:29:06 -04:00
Bud Parr ec0d6b4700 Bp/fix now function Fixes #29 (#30) 2017-05-15 22:12:36 -04:00
Bud Parr 8f4c3b571d
use better class names 2017-05-02 08:16:53 -04:00
Bud Parr 00a797e9bd fix clunky construction on home page to get section name (#17) 2017-04-21 18:41:10 -04:00
Bud Parr 9543d90786
tweak hero default behavior 2017-04-20 08:18:43 -04:00
Bud Parr b0c7d8bd88
improve terms template 2017-04-19 20:00:11 -04:00
Bud Parr ee265de976
improve image handling for edge cases Fixes #11 2017-04-19 16:45:24 -04:00
Bud Parr 2806e91176
add image to theme dir and use for fallback 2017-04-18 23:27:06 -04:00
Bud Parr 8c101b4231
add a copy of the sample image to the theme 2017-04-18 23:20:19 -04:00
Bud Parr c48bf1f93b
remove hard-coded link + annotations 2017-04-18 22:55:01 -04:00
Bud Parr 5fc34b0a4e
remove silly tag h/t @jhabdas 2017-04-18 20:16:27 -04:00
Bud Parr 95af995e96
remove p tags from .Summary 2017-04-17 19:02:51 -04:00
Bud Parr 3e722a96d7
mind the dot! 2017-04-17 18:34:05 -04:00
Bud Parr 3b211400c4
fix issue count 2017-04-17 18:33:54 -04:00
Bud Parr 2fac73dfac
switch home page work with a variety of sections after earlier PR 2017-04-17 18:30:22 -04:00
Bud Parr 0fa68b2ac3
Merge branch 'where-section' of https://github.com/bep/gohugo-theme-ananke into bep-where-section 2017-04-17 18:27:03 -04:00
Bud Parr 8f2d0f2964
make form email comment make more sense. Ref #5 2017-04-17 18:24:38 -04:00
Bjørn Erik Pedersen a947472c6b Use Site.Params.mainSections to select pages on home page
This helps with theme portability.

Also use Site.RegularPages in its default sort, as this is probably what most people want.
2017-04-17 17:27:26 +02:00
Bud Parr 0756c5260e
use a cleaner way to include language code 2017-04-17 10:54:58 -04:00
Bud Parr 7f7c87a567
fix aria in form 2017-04-17 09:05:48 -04:00
Bud Parr 1871755a89
add Hugo RSS Link 2017-04-17 09:05:36 -04:00
Bud Parr 3951d65c61
add taxonomy templates 2017-04-16 10:40:53 -04:00
Bud Parr afa7a9d29a
add variaable for header bg class 2017-04-15 20:14:13 -04:00
Bud Parr 740aaebed3
remove org from form to keep it simple 2017-04-15 20:08:50 -04:00
Bud Parr 5c53ef6e2f
improve robots to use site param 2017-04-15 12:31:22 -04:00
Bud Parr fa51177f05
add site params to env check in head 2017-04-15 10:12:59 -04:00
Bud Parr 05dfb5753d
add .Site.BaseURL to nav 2017-04-15 09:27:28 -04:00
Bud Parr 681e009eec
add copyright to footer 2017-04-15 09:25:13 -04:00
Bud Parr d8fd2457e9
add absURL to script 2017-04-15 09:11:42 -04:00
Bud Parr 9c269b8068
use a variable for icon size 2017-04-15 09:08:59 -04:00
Bud Parr 789d32ad81
remove unused variable in 404 2017-04-15 09:06:30 -04:00
Bud Parr 480ea34d22
improve conditional 2017-04-15 09:04:44 -04:00
Bud Parr ea887e9313
fix issues with featured image 2017-04-15 09:03:13 -04:00
Bud Parr 9a2b45e91f
add getenv 2017-04-14 23:46:58 -04:00
Bud Parr 1d05813c11
add some readme and annotations 2017-04-14 23:36:23 -04:00
Bud Parr f720177809
add some readme and annotations 2017-04-14 23:08:11 -04:00
Bud Parr 049a9e8d19
change article to post 2017-04-14 22:26:23 -04:00
Bud Parr 9e5401d0fa
change article to post 2017-04-14 22:23:18 -04:00
Bud Parr 4ced75d066
accessibility tweaks 2017-04-14 22:05:32 -04:00
Bud Parr 2dfd957296
clean up 2017-04-14 21:58:31 -04:00
Bud Parr 64909cea4e
fix for mobile 2017-04-14 18:57:40 -04:00
Bud Parr 052cf0cb57
wip address a few accessibility issues 2017-04-14 12:47:59 -04:00
Bud Parr 53df85690d
wip clean up and annotations 2017-04-14 12:37:12 -04:00
Bud Parr 3e49105331
wip home page layout 2017-04-13 23:23:15 -04:00
Bud Parr 6331805b90
clean up layouts 2017-04-13 23:01:23 -04:00
Bud Parr 1d810d7237
add absolute url to css 2017-04-12 11:49:39 -04:00
Bud Parr 426676fd3c
page layout [wip] 2017-04-11 22:22:06 -04:00
Bud Parr d098f46b07
on page wtyling [wip] 2017-04-11 18:59:14 -04:00
Bud Parr 568ccb7539
add internal template styling with pagination 2017-04-11 17:58:29 -04:00
Bud Parr a1e4b64910
fix heading for semantics 2017-04-11 10:44:43 -04:00
Bud Parr 664f5fc3f5
add pagination and first after examples wip 2017-04-11 09:13:12 -04:00
Bud Parr 91984fee72
tweak layouts 2017-04-11 08:53:11 -04:00
Bud Parr 77514eab9e
wip layout mobile 2017-04-10 23:48:09 -04:00
Bud Parr a10e94cd95
placeholder 2017-04-10 22:17:47 -04:00
Bud Parr 98bc281a57
first commit 2017-04-10 21:27:13 -04:00