mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-07-04 19:17:33 -05:00
Compare commits
6 Commits
hugo-0.146
...
67ac36e9e2
Author | SHA1 | Date | |
---|---|---|---|
67ac36e9e2
|
|||
6ff0ffb80b
|
|||
ff4998f31b
|
|||
1aa2f8ea5c
|
|||
6e7160efbb
|
|||
04c3c007a8
|
@ -1,68 +0,0 @@
|
|||||||
baseURL: https://example.com
|
|
||||||
theme: bobatheme
|
|
||||||
defaultContentLanguage: en
|
|
||||||
copyright: '© 2021 bbaovanc <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>'
|
|
||||||
sectionPagesMenu: main
|
|
||||||
enableRobotsTXT: true
|
|
||||||
enableGitInfo: true
|
|
||||||
|
|
||||||
pagination:
|
|
||||||
pagerSize: 5
|
|
||||||
|
|
||||||
taxonomies:
|
|
||||||
_merge: deep
|
|
||||||
|
|
||||||
markup: # this just keeps the bobatheme markup styling
|
|
||||||
_merge: deep
|
|
||||||
|
|
||||||
outputs:
|
|
||||||
_merge: deep
|
|
||||||
|
|
||||||
outputFormats:
|
|
||||||
_merge: deep
|
|
||||||
|
|
||||||
params:
|
|
||||||
author:
|
|
||||||
name: bbaovanc
|
|
||||||
|
|
||||||
# these are for the OpenGraph/Twitter embeds in Hugo
|
|
||||||
description: Example website for bobatheme
|
|
||||||
|
|
||||||
# these are for favicons in bobatheme (disabled by default)
|
|
||||||
# faviconSVG: favicon.svg
|
|
||||||
# appleTouchPNG: apple-touch-icon.png
|
|
||||||
|
|
||||||
# show reading time (enabled by default)
|
|
||||||
# readingtime: true
|
|
||||||
|
|
||||||
# used for "View source" (unset by default)
|
|
||||||
# gitFileURL: https://github.com/BBaoVanC/bobatheme/blob/master
|
|
||||||
# gitFileIcon: github-circle
|
|
||||||
# gitHistoryURL: https://github.com/BBaoVanC/bobatheme/commits/master
|
|
||||||
|
|
||||||
# social media share icons
|
|
||||||
# shareButtons:
|
|
||||||
# twitter: true
|
|
||||||
# facebook: true
|
|
||||||
# linkedin: true
|
|
||||||
# reddit: true
|
|
||||||
# telegram: true
|
|
||||||
# print: true
|
|
||||||
|
|
||||||
# show "Latest Posts" section at bottom of content pages
|
|
||||||
# latestPostsOnContent: true
|
|
||||||
|
|
||||||
# footer: >-
|
|
||||||
# Some example text for the footer.
|
|
||||||
|
|
||||||
|
|
||||||
# see https://gohugo.io/about/hugo-and-gdpr/#all-privacy-settings
|
|
||||||
# you probably want to keep this default
|
|
||||||
privacy:
|
|
||||||
_merge: deep
|
|
||||||
|
|
||||||
languages:
|
|
||||||
en:
|
|
||||||
languageName: English
|
|
||||||
title: Example Website
|
|
||||||
weight: 1
|
|
14
layouts/_shortcodes/include.html
Normal file
14
layouts/_shortcodes/include.html
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{{/* https://github.com/gohugoio/hugo/issues/13823#issuecomment-3015270202 */}}
|
||||||
|
{{ with .Get 0 }}
|
||||||
|
{{ with $.Page.GetPage . }}
|
||||||
|
{{- .RenderShortcodes }}
|
||||||
|
{{ else with $.Page.Resources.Get . }}
|
||||||
|
{{- .RenderShortcodes }}
|
||||||
|
{{ else with resources.Get . }}
|
||||||
|
{{- .Content }}
|
||||||
|
{{ else }}
|
||||||
|
{{ errorf "The %q shortcode was unable to find %q. See %s" $.Name . $.Position }}
|
||||||
|
{{ end }}
|
||||||
|
{{ else }}
|
||||||
|
{{ errorf "The %q shortcode requires a positional parameter indicating the logical path of the file to include. See %s" .Name .Position }}
|
||||||
|
{{ end }}
|
@ -8,6 +8,12 @@
|
|||||||
|
|
||||||
{{ partial "top.html" . }}
|
{{ partial "top.html" . }}
|
||||||
|
|
||||||
|
{{ if hugo.IsServer -}}
|
||||||
|
<div style="position: fixed; bottom: 25px; right: 25px;">
|
||||||
|
{{ templates.Current.Name }}
|
||||||
|
</div>
|
||||||
|
{{ end -}}
|
||||||
|
|
||||||
<div class="main-container">
|
<div class="main-container">
|
||||||
{{ if not .IsHome }}
|
{{ if not .IsHome }}
|
||||||
{{ partial "breadcrumb.html" . }}
|
{{ partial "breadcrumb.html" . }}
|
@ -1,20 +0,0 @@
|
|||||||
{{ $path := "" }}
|
|
||||||
{{ $markdown := false }}
|
|
||||||
{{ if .IsNamedParams }}
|
|
||||||
{{ $path = .Get "path" }}
|
|
||||||
{{ with .Get "markdown" }}
|
|
||||||
{{ $markdown = . }}
|
|
||||||
{{ end }}
|
|
||||||
{{ else }}
|
|
||||||
{{ $path = .Get 0 }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ with ($path | readFile) }}
|
|
||||||
{{ if $markdown }}
|
|
||||||
{{ $path | readFile | $.Page.RenderString (dict "display" "block") }}
|
|
||||||
{{ else }}
|
|
||||||
{{ $path | readFile }}
|
|
||||||
{{ end }}
|
|
||||||
{{ else }}
|
|
||||||
{{ errorf "file not found: %s" $path }}
|
|
||||||
{{ end }}
|
|
Reference in New Issue
Block a user