This commit is contained in:
parent
2637ad7f03
commit
15699af640
69
hugo.toml
69
hugo.toml
@ -1,4 +1,69 @@
|
|||||||
baseURL = 'https://example.org/'
|
baseURL = 'https://lambwire.net/'
|
||||||
languageCode = 'en-us'
|
languageCode = 'en-us'
|
||||||
title = 'My New Hugo Site'
|
title = 'Lambwire'
|
||||||
theme = "hugo-bearcub"
|
theme = "hugo-bearcub"
|
||||||
|
|
||||||
|
enableRobotsTXT = true
|
||||||
|
|
||||||
|
# Setup syntax highlighting without inline styles. For more information about
|
||||||
|
# why you'd want to avoid inline styles, see
|
||||||
|
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/style-src#unsafe_inline_styles
|
||||||
|
[markup]
|
||||||
|
[markup.highlight]
|
||||||
|
lineNos = true
|
||||||
|
lineNumbersInTable = false
|
||||||
|
# This allows Bear Cub to use a variation of Dracula that is more accessible
|
||||||
|
# to people with poor eyesight. For more information about color contrast
|
||||||
|
# and accessibility, see https://web.dev/color-and-contrast-accessibility/
|
||||||
|
noClasses = false
|
||||||
|
|
||||||
|
[params]
|
||||||
|
# The description of your website
|
||||||
|
description = "John Lamb's personal website"
|
||||||
|
|
||||||
|
# The path to your favicon
|
||||||
|
favicon = "images/favicon.png"
|
||||||
|
|
||||||
|
# These images will show up when services want to generate a preview of a link
|
||||||
|
# to your site. Ignored if `generateSocialCard = true`. For more information
|
||||||
|
# about previews, see https://gohugo.io/templates/internal#twitter-cards and
|
||||||
|
# https://gohugo.io/templates/internal#open-graph
|
||||||
|
images = ["images/share.webp"]
|
||||||
|
|
||||||
|
# This title is used as the site_name on the Hugo's internal opengraph
|
||||||
|
# structured data template
|
||||||
|
title = "Lambwire"
|
||||||
|
|
||||||
|
# Dates are displayed following the format below. For more information about
|
||||||
|
# formatting, see https://gohugo.io/functions/format/
|
||||||
|
dateFormat = "2006-01-02"
|
||||||
|
|
||||||
|
# If your blog is multilingual but you haven't translated a page, this theme
|
||||||
|
# will create a disabled link. By setting `hideUntranslated` to true, you can
|
||||||
|
# have the theme simply not show any link
|
||||||
|
hideUntranslated = false
|
||||||
|
|
||||||
|
# (EXPERIMENTAL) This theme has two options for its CSS styles: "original" and
|
||||||
|
# "herman". The former is what you see on Bear Cub's demo (an optimized
|
||||||
|
# version of Hugo Bear Blog), while the latter has a more modern look based on
|
||||||
|
# Herman Martinus's version of the Blogster Minimal theme for Astro.
|
||||||
|
themeStyle = "original"
|
||||||
|
|
||||||
|
# (EXPERIMENTAL) This theme is capable of dynamically generating social cards
|
||||||
|
# for posts that don't have `images` defined in their front matter; By setting
|
||||||
|
# `generateSocialCard` to false, you can prevent this behavior. For more
|
||||||
|
# information see layouts/partials/social_card.html
|
||||||
|
generateSocialCard = true
|
||||||
|
|
||||||
|
# Social media. Delete any item you aren't using to make sure it won't show up
|
||||||
|
# in your website's metadata.
|
||||||
|
[params.social]
|
||||||
|
# twitter = "example" # Twitter handle (without '@')
|
||||||
|
# facebook_admin = "0000000000" # Facebook Page Admin ID
|
||||||
|
|
||||||
|
# Author metadata. This is mostly used for the RSS feed of your site, but the
|
||||||
|
# email is also added to the footer of each post. You can hide the "reply to"
|
||||||
|
# link by using a `hideReply` param in front matter.
|
||||||
|
[params.author]
|
||||||
|
name = "John Lamb" # Your name as shown in the RSS feed metadata
|
||||||
|
# email = "me@example.com" # Added to the footer so readers can reply to posts
|
||||||
30
layouts/_default/single.html
Normal file
30
layouts/_default/single.html
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{{ define "main" }}
|
||||||
|
<article class="post">
|
||||||
|
<header class="post-header">
|
||||||
|
<h1>{{ .Title }}</h1>
|
||||||
|
<p class="post-meta">
|
||||||
|
{{ .Date.Format "January 2, 2006" }} |
|
||||||
|
{{ if .Params.author }}By {{ .Params.author }}{{ end }}
|
||||||
|
</p>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<section class="post-content">
|
||||||
|
{{ .Content }}
|
||||||
|
</section>
|
||||||
|
|
||||||
|
{{ with .Params.tags }}
|
||||||
|
<section class="post-tags">
|
||||||
|
<h3>Tags:</h3>
|
||||||
|
<ul>
|
||||||
|
{{ range . }}
|
||||||
|
<li><a href="{{ "tags/" | relURL }}{{ . | urlize }}">{{ . }}</a></li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<footer class="post-footer">
|
||||||
|
<p><a href="/blog/">← Back to Blog</a></p>
|
||||||
|
</footer>
|
||||||
|
</article>
|
||||||
|
{{ end }}
|
||||||
25
layouts/index.html
Normal file
25
layouts/index.html
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{{ define "main" }}
|
||||||
|
<section class="hero">
|
||||||
|
<h1>Welcome to My Hugo Site</h1>
|
||||||
|
<p>Your tagline or mission statement goes here.</p>
|
||||||
|
<a href="/blog/" class="button">Read the Blog</a>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="about">
|
||||||
|
<h2>About Me</h2>
|
||||||
|
<p>A short introduction about yourself or your website.</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="latest-posts">
|
||||||
|
<h2>Latest Blog Posts</h2>
|
||||||
|
<ul>
|
||||||
|
{{ range first 3 (where .Site.RegularPages "Section" "posts") }}
|
||||||
|
<li>
|
||||||
|
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||||
|
<small>{{ .Date.Format "Jan 2, 2006" }}</small>
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
<a href="/blog/" class="button">See All Posts</a>
|
||||||
|
</section>
|
||||||
|
{{ end }}
|
||||||
Loading…
x
Reference in New Issue
Block a user