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
7 лет назад
Russell Cohen
8b59adb79b
Fix pagination (#76)
7 лет назад
budparr
ff25b71173
Fix linkedin icon to match the other social icons
Fixes #70
7 лет назад
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
7 лет назад
Developer Davo
2a1495aaa5
Fix typo in single.html (#67)
7 лет назад
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.
7 лет назад
Adam Kaplan
1e37db6cef
Favicons (#54)
* Adding support for favicon
* Fixing html tag
7 лет назад
budparr
4d9dc08ee0
Fix spacing
7 лет назад
budparr
1dd38282ab
Remove margin
7 лет назад
alea12
c850d4f9f8
indent fix (#45)
7 лет назад
Brad Clark
eb765fdbc8
Social icon updates (#51)
* add linkedin
* update github svg to fix spacing
* add colors from brandcolors.net
7 лет назад
Brad Clark
293cedefc1
Add GitHub social icon (#48)
* add github social link
* add github css
* fix css error breaking rollover
7 лет назад
Bud Parr
a3dc1ac327
Add body_classes parameter to body
Fixes #43
7 лет назад
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
7 лет назад
Bud Parr
6350c2fee6
Fixes #31 (#32)
7 лет назад
Bud Parr
ec0d6b4700
Bp/fix now function Fixes #29 (#30)
7 лет назад
Bud Parr
8f4c3b571d
use better class names
7 лет назад
Bud Parr
00a797e9bd
fix clunky construction on home page to get section name (#17)
7 лет назад
Bud Parr
9543d90786
tweak hero default behavior
7 лет назад
Bud Parr
b0c7d8bd88
improve terms template
7 лет назад
Bud Parr
ee265de976
improve image handling for edge cases Fixes #11
7 лет назад
Bud Parr
2806e91176
add image to theme dir and use for fallback
7 лет назад
Bud Parr
8c101b4231
add a copy of the sample image to the theme
7 лет назад
Bud Parr
c48bf1f93b
remove hard-coded link + annotations
7 лет назад
Bud Parr
5fc34b0a4e
remove silly tag h/t @jhabdas
7 лет назад
Bud Parr
95af995e96
remove p tags from .Summary
7 лет назад
Bud Parr
3e722a96d7
mind the dot!
7 лет назад
Bud Parr
3b211400c4
fix issue count
7 лет назад
Bud Parr
2fac73dfac
switch home page work with a variety of sections after earlier PR
7 лет назад
Bud Parr
8f2d0f2964
make form email comment make more sense. Ref #5
7 лет назад
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.
7 лет назад
Bud Parr
0756c5260e
use a cleaner way to include language code
7 лет назад
Bud Parr
7f7c87a567
fix aria in form
7 лет назад
Bud Parr
1871755a89
add Hugo RSS Link
7 лет назад
Bud Parr
3951d65c61
add taxonomy templates
7 лет назад
Bud Parr
afa7a9d29a
add variaable for header bg class
7 лет назад
Bud Parr
740aaebed3
remove org from form to keep it simple
7 лет назад
Bud Parr
5c53ef6e2f
improve robots to use site param
7 лет назад
Bud Parr
fa51177f05
add site params to env check in head
7 лет назад
Bud Parr
05dfb5753d
add .Site.BaseURL to nav
7 лет назад
Bud Parr
681e009eec
add copyright to footer
7 лет назад
Bud Parr
d8fd2457e9
add absURL to script
7 лет назад
Bud Parr
9c269b8068
use a variable for icon size
7 лет назад
Bud Parr
789d32ad81
remove unused variable in 404
7 лет назад
Bud Parr
480ea34d22
improve conditional
7 лет назад
Bud Parr
ea887e9313
fix issues with featured image
7 лет назад
Bud Parr
9a2b45e91f
add getenv
7 лет назад
Bud Parr
1d05813c11
add some readme and annotations
7 лет назад
Bud Parr
f720177809
add some readme and annotations
7 лет назад
Bud Parr
049a9e8d19
change article to post
7 лет назад