Skip to content

Commit

Permalink
general enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
Reed Nelson committed Aug 8, 2023
1 parent 7b5f2bf commit 50a160c
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 129 deletions.
13 changes: 1 addition & 12 deletions src/config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,14 @@

"settings": {
"search": true,
"sticky_header": true,
"sticky_header": false,
"theme_switcher": true,
"default_theme": "system",
"pagination": 2,
"summary_length": 200,
"blog_folder": "blog"
},

"params": {
"contact_form_action": "#",
"copyright": "Designed And Developed by [Reed Nelson](https://reednel.com)"
},

"navigation_button": {
"enable": true,
"label": "Get Started",
"link": "https://github.com/reednel/pages"
},

"metadata": {
"meta_author": "reednel",
"meta_image": "/images/og-image.png",
Expand Down
4 changes: 0 additions & 4 deletions src/config/menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
"url": "",
"hasChildren": true,
"children": [
{
"name": "Contact",
"url": "/contact"
},
{
"name": "Blog",
"url": "/blog"
Expand Down
6 changes: 0 additions & 6 deletions src/content/contact/-index.md

This file was deleted.

12 changes: 0 additions & 12 deletions src/content/homepage/-index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,4 @@ features:
label: "Get Started Now"
link: "https://github.com/reednel/pages"

- title: "The Top Reasons to Choose Astro for Your Next Project"
image: "/images/service-3.png"
content: "With Astro, you can build modern and content-focused websites without sacrificing performance or ease of use."
bulletpoints:
- "Instantly load static sites for better user experience and SEO."
- "Intuitive syntax and support for popular frameworks make learning and using Astro a breeze."
- "Use any front-end library or framework, or build custom components, for any project size."
- "Built on cutting-edge technology to keep your projects up-to-date with the latest web standards."
button:
enable: false
label: ""
link: ""
---
7 changes: 1 addition & 6 deletions src/layouts/partials/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const { footer }: { footer: { name: string; url: string }[] } = menu;

<footer class="bg-theme-light dark:bg-darkmode-theme-light">
<div class="container">
<div class="row items-center py-10">
<div class="row items-center py-4">
<div class="mb-8 text-center lg:col-3 lg:mb-0 lg:text-left">
<Logo />
</div>
Expand All @@ -31,9 +31,4 @@ const { footer }: { footer: { name: string; url: string }[] } = menu;
</div>
</div>
</div>
<div class="border-t border-border py-7 dark:border-darkmode-border">
<div class="container text-center text-light dark:text-darkmode-light">
<p set:html={markdownify(config.params.copyright)} />
</div>
</div>
</footer>
24 changes: 1 addition & 23 deletions src/layouts/partials/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface NavigationLink {
}
const { main }: { main: NavigationLink[] } = menu;
const { navigation_button, settings } = config;
const { settings } = config;
const { pathname } = Astro.url;
---

Expand Down Expand Up @@ -103,18 +103,6 @@ const { pathname } = Astro.url;
</>
))
}
{
navigation_button.enable && (
<li class="mt-4 inline-block lg:hidden">
<a
class="btn btn-outline-primary btn-sm"
href={navigation_button.link}
>
{navigation_button.label}
</a>
</li>
)
}
</ul>
<div class="order-1 ml-auto flex items-center md:order-2 lg:ml-0">
{
Expand All @@ -129,16 +117,6 @@ const { pathname } = Astro.url;
)
}
<ThemeSwitcher className="mr-5" />
{
navigation_button.enable && (
<a
class="btn btn-outline-primary btn-sm hidden lg:inline-block"
href={navigation_button.link}
>
{navigation_button.label}
</a>
)
}
</div>
</nav>
</header>
65 changes: 0 additions & 65 deletions src/pages/contact.astro

This file was deleted.

2 changes: 1 addition & 1 deletion src/styles/components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
@apply prose-img:max-w-full prose-img:rounded;
@apply prose-hr:border-border prose-hr:dark:border-darkmode-border;
@apply prose-p:text-base prose-p:text-text prose-p:dark:text-darkmode-text;
@apply prose-blockquote:rounded-lg prose-blockquote:border prose-blockquote:border-l-[10px] prose-blockquote:border-primary prose-blockquote:bg-theme-light prose-blockquote:px-8 prose-blockquote:py-10 prose-blockquote:font-secondary prose-blockquote:text-2xl prose-blockquote:not-italic prose-blockquote:text-dark prose-blockquote:dark:border-darkmode-primary prose-blockquote:dark:bg-darkmode-theme-light prose-blockquote:dark:text-darkmode-light;
@apply prose-blockquote:rounded-lg prose-blockquote:border prose-blockquote:border-l-[10px] prose-blockquote:border-primary prose-blockquote:bg-theme-light prose-blockquote:px-8 prose-blockquote:py-2 prose-blockquote:font-secondary prose-blockquote:text-2xl prose-blockquote:not-italic prose-blockquote:text-dark prose-blockquote:dark:border-darkmode-primary prose-blockquote:dark:bg-darkmode-theme-light prose-blockquote:dark:text-darkmode-light;
@apply prose-pre:rounded-lg prose-pre:bg-theme-light prose-pre:dark:bg-darkmode-theme-light;
@apply prose-code:px-1 prose-code:text-primary prose-code:dark:text-darkmode-primary;
@apply prose-strong:text-dark prose-strong:dark:text-darkmode-text;
Expand Down

0 comments on commit 50a160c

Please sign in to comment.