diff --git a/config.toml b/config.toml index ecf263a9..c8eec1f1 100644 --- a/config.toml +++ b/config.toml @@ -21,6 +21,7 @@ pygmentscodefencesguesssyntax = true series = "series" [params] + # Use homepage.md instead of a list of posts homepage = false @@ -77,3 +78,18 @@ name = "分类" url = "/categories" weight = 5 +# Social Menu +[[params.social]] +name = "Github" +icon = "fab fa-github" +url = "https://github.com/dataCobra/hugo-vitae" + +#[[params.social]] +#name = "Email" +#icon = "fas fa-envelope" +#cmd = "mailto:example@example.com" + +[[params.social]] +name = "RSS" +icon = "fas fa-rss" +url = "/index.xml" diff --git a/themes/hugo-vitae/layouts/partials/footer.html b/themes/hugo-vitae/layouts/partials/footer.html index be85503a..a6c0782f 100644 --- a/themes/hugo-vitae/layouts/partials/footer.html +++ b/themes/hugo-vitae/layouts/partials/footer.html @@ -11,3 +11,14 @@ {{- end }} {{- end -}} + + diff --git a/themes/hugo-vitae/layouts/partials/head.html b/themes/hugo-vitae/layouts/partials/head.html index 0694f664..5a087348 100644 --- a/themes/hugo-vitae/layouts/partials/head.html +++ b/themes/hugo-vitae/layouts/partials/head.html @@ -24,6 +24,8 @@ + + {{- if or .Params.math .Site.Params.math -}} diff --git a/themes/hugo-vitae/layouts/partials/header.html b/themes/hugo-vitae/layouts/partials/header.html index a36c3706..e0b682c6 100644 --- a/themes/hugo-vitae/layouts/partials/header.html +++ b/themes/hugo-vitae/layouts/partials/header.html @@ -37,9 +37,11 @@

{{ .Site.Title }}

{{- end }}
  • +
    {{- end }} + {{- if isset .Site.Menus "main" }} {{- end }}