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年前