Add og prefix for meta tag
This commit is contained in:
parent
a541461db4
commit
121ca76db6
|
@ -263,7 +263,7 @@ talksGroupByDate = "2006" # "2006-01": group by month, "2006": group by year
|
|||
myname = "zzossig"
|
||||
email = "zzossig@gmail.com"
|
||||
whoami = "Web Developer"
|
||||
bioImageUrl = "" # image url like http//... If not set, we find a avatar image in root/static/images/whoami/avatar.(png|jpg|svg)
|
||||
bioImageUrl = "" # image url like "http//..." or "images/anyfoldername/mybioimage.jpg" If not set, we find a avatar image in root/static/images/whoami/avatar.(png|jpg|svg)
|
||||
useGravatar = false # we use this option highest priority
|
||||
location = "Seoul, Korea"
|
||||
organization = "Hugo"
|
||||
|
@ -468,7 +468,7 @@ root
|
|||
|
||||
현재 이용 가능한 서비스: [formspree]. 다른 서비스를 이용하고 싶으시면 새 이슈를 만들어주세요. 서비스 파라미터를 빈값으로 설정하면 마크다운으로 해당 페이지를 채울 수 있습니다.
|
||||
|
||||
1. 파일을 다음 경로에 만들어줍니다. root/contact/index.md
|
||||
1. 파일을 다음 경로에 만들어줍니다. root/content/contact/index.md
|
||||
|
||||
```yaml
|
||||
---
|
||||
|
|
|
@ -254,7 +254,7 @@ talksGroupByDate = "2006" # "2006-01": group by month, "2006": group by year
|
|||
myname = "zzossig"
|
||||
email = "zzossig@gmail.com"
|
||||
whoami = "Web Developer"
|
||||
bioImageUrl = "" # image url like http//... If not set, we find a avatar image in root/static/images/whoami/avatar.(png|jpg|svg)
|
||||
bioImageUrl = "" # image url like "http//..." or "images/anyfoldername/mybioimage.jpg" If not set, we find a avatar image in root/static/images/whoami/avatar.(png|jpg|svg)
|
||||
useGravatar = false # we use this option highest priority
|
||||
location = "Seoul, Korea"
|
||||
organization = "Hugo"
|
||||
|
@ -457,7 +457,7 @@ root
|
|||
|
||||
Currently available service: [formspree]. Open an issue if you need another service vendor. If you want just a blank page and use a markdown, set the service param empty.
|
||||
|
||||
1. Make a file at root/contact/index.md
|
||||
1. Make a file at root/content/contact/index.md
|
||||
|
||||
```yaml
|
||||
---
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.Language.Lang }}" dir="{{ $.Param "languagedir" | default "ltr" }}">
|
||||
|
||||
<head>
|
||||
<head prefix="og: http://ogp.me/ns#">
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{{ if $.Param "enableWhoami" }}
|
||||
<div class="whoami__gutter"></div>
|
||||
<hr class="hr-slash whoami-hr"/>
|
||||
<section class="whoami">
|
||||
<section class="whoami">
|
||||
<div class="whoami__image-wrapper">
|
||||
{{ $src := "" }}
|
||||
{{ if site.Params.useGravatar }}
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{{ if $.Param "enableBio" }}
|
||||
<section class="bio" data-dir="{{ $.Param "languagedir" | default "ltr" }}">
|
||||
<hr class="hr-slash bio-hr"/>
|
||||
<div class="bio__photo-wrapper">
|
||||
<div class="bio__photo-wrapper">
|
||||
{{ $src := "" }}
|
||||
{{ if site.Params.useGravatar }}
|
||||
{{ if site.Params.useGravatar }}
|
||||
{{ $src = printf "https://s.gravatar.com/avatar/%s?s=200" (md5 ($.Param "email")) }}
|
||||
<img src="{{ $src }}" alt="{{ if $.Param "myname" }}{{ $.Param "myname" }}{{ else }}Avatar{{ end }}" class="bio__photo"/>
|
||||
{{ else }}
|
||||
|
|
Loading…
Reference in New Issue