Skip to content

Commit

Permalink
feat(core): initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbrozer committed May 1, 2023
1 parent dd32015 commit 4980660
Show file tree
Hide file tree
Showing 30 changed files with 1,782 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/node_modules/
.DS_Store
/assets/css/main.css
/assets/css/style.css
/assets/css/*.css.map
11 changes: 11 additions & 0 deletions 404.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{! 404 Error page; this file renders a 4040.html page; the "create404page" flag must be defined and enabled in config.json file within the "renderer" section }}
{{> head}}
{{> navbar}}
<main>
<h1>{{ translate 'error.404' }}</h1>
<p>{{ translate 'error.message' }}</p>
<a href="{{@website.url}}">
{{ translate 'error.button' }}
</a>
</main>
{{> footer}}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Vincent Besançon
Copyright (c) 2023-Present Vincent "bigbrozer" Besançon

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Publii Blank Theme

Version: 1.3.0.0

The Blank is a clean and minimalistic Publii boilerplate theme that is perfect for users who want to start the adventure of creating Publi themes, having everything you need to create your own site.

**Download:** [blank.zip](https://cdn.getpublii.com/themes/blank.zip)


### Getting Started with Blank theme

1. Download the blank.zip theme package
2. Open Publii and navigate to the Themes by clicking on the three dots in the top-right of the Publii interface to open the submenu, then clicking the Themes option
3. Drag and drop the downloaded blank.zip package onto the themes section; Publii will automatically unpack and add the downloaded theme to its library.
4. Now tha Blank theme will be available in the Site Settings on the drop-down list.

### Author:

Bob Mitro TidyCustoms ([@tidycustoms](http://twitter.com/tidycustoms) - [https://tidycustoms.net/](https://tidycustoms.net/))


### Documentation

Dev documentation is available at [https://getpublii.com/dev/](https://getpublii.com/dev/)



### License

MIT

Binary file added assets/fonts/Basteleur-Bold.woff2
Binary file not shown.
Binary file added assets/fonts/Basteleur-Moonlight.woff2
Binary file not shown.
Binary file added assets/images/about-me-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/about-me-image_orig.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/coeurseur-mini.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added assets/js/scripts.js
Empty file.
52 changes: 52 additions & 0 deletions assets/scss/main.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/*====
FONT FACES
====*/

@import url(https://fonts.bunny.net/css?family=acme:400);

@font-face
{
font-family: "Basteleur Moonlight";
src: url("../fonts/Basteleur-Moonlight.woff2") format("woff2");
}

@font-face
{
font-family: "Basteleur Bold";
src: url("../fonts/Basteleur-Bold.woff2") format("woff2");
}

/*====
VARIABLE OVERRIDES
====*/

$global-background: #212529 !default;
//$global-color: #dee2e6 !default;
$global-color: rgba(0, 255, 53, 0.85) !default;
$global-emphasis-color: rgba(246, 38, 238, 0.85) !default;
$global-font-family: "Acme", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !default;
$navbar-background: #000 !default;

/*====
MAIN IMPORTS
====*/

@import "../../node_modules/uikit/src/scss/variables-theme.scss";
@import "../../node_modules/uikit/src/scss/mixins-theme.scss";
@import "../../node_modules/uikit/src/scss/uikit-theme.scss";

/*====
STYLE OVERRIDES
====*/

body, a {
cursor: url(../images/coeurseur-mini.png), auto !important;
}

h1 {
font-family: "Basteleur Bold"
}

.uk-overlay-primary h1 {
color: $global-emphasis-color;
}
152 changes: 152 additions & 0 deletions author.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
{{! Author page; this file renders a tag page containing a list of the latest posts }}
{{> head}}
{{> navbar}}
<main>

{{! indicates the author's context }}
{{#author}}

{{! author featured image }}
{{#featuredImage}}
{{! checks if an image exists }}
{{#if url}}
<figure>
<img
src="{{url}}"
{{! checks if the Responsive Images option (located in Site Settings -> Website Speed) is enabled }}
{{#if @config.site.responsiveImages}}
{{responsiveImageAttributes 'authorImage' srcset sizes}}
{{/if}}
{{! generates a native loading attribute; if the Media Lazy Load option (located in Site Settings -> Website Speed) is disabled, the loading attribute is not generated }}
{{lazyload "lazy"}}
height="{{height}}"
width="{{width}}"
alt="{{alt}}">

{{! checks if a caption and credits exist }}
{{#checkIfAny caption credits}}
<figcaption>
{{caption}}
{{credits}}
</figcaption>
{{/checkIfAny}}
{{! /checks if a caption and credits exist }}

</figure>
{{/if}}
{{! /checks if an image exists }}
{{/featuredImage}}
{{! /author featured image }}

{{! check if an author avatar exists }}
{{#if avatar}}
<img
src="{{avatarImage.url}}"
{{ lazyload "eager" }}
alt="{{avatarImage.alt}}"
height="{{avatarImage.height}}"
width="{{avatarImage.width}}">
{{/if}}
{{! /check if an author avatar exists }}

<h1>
{{name}}
<sup>({{postsNumber}})</sup>
</h1>

{{! check if an author description exists }}
{{#if description}}
<p>{{description}}</p>
{{/if}}
{{! /check if a author description exists }}

{{! check if an author email address exists }}
{{#if email}}
<p>{{email}}</p>
{{/if}}
{{! /check if a author email address exists }}

{{! check if an author website URL exists }}
{{#if website}}
<p>{{website}}</p>
{{/if}}
{{! /check if a author website URL exists }}

{{/author}}
{{! /indicates the author's context }}


{{! loop that generates a list of posts }}
{{#each posts}}
<article>

{{! featured image }}
{{#featuredImage}}
{{! checks if an image exists }}
{{#if url}}
<img
src="{{url}}"
{{! checks if the Responsive Images option (located in Site Settings -> Website Speed) is enabled }}
{{#if @config.site.responsiveImages}}
{{responsiveImageAttributes 'featuredImage' srcset sizes}}
{{/if}}
{{! generates a native loading attribute; if the Media Lazy Load option (located in Site Settings -> Website Speed) is disabled, the loading attribute is not generated }}
{{lazyload "lazy"}}
height="{{height}}"
width="{{width}}"
alt="{{alt}}">
{{/if}}
{{! /checks if an image exists }}
{{/featuredImage}}
{{! /featured image }}

{{! post title }}
<h2>
<a href="{{url}}">{{title}}</a>
</h2>
{{! /post title }}

{{! post creation date }}
<time datetime="{{date createdAt 'YYYY-MM-DDTHH:mm'}}">
{{date createdAt}}
</time>
{{! /post creation date }}

{{! post author }}
{{#author}}
<img
src="{{avatarImage.url}}"
{{lazyload "lazy"}}
alt="{{avatarImage.alt}}"
height="{{avatarImage.height}}"
width="{{avatarImage.width}}">
<a href="{{url}}">{{name}}</a>
{{/author}}
{{! /post author }}

{{! main tag - if not selected, the first tag in the list of all tags
will be displayed }}
{{#if mainTag}}
<a href="{{mainTag.url}}">{{mainTag.name}}</a>
{{/if}}
{{! /main tag }}

{{! post excerpt - the Custom excerpt is generated when the Read More button is used when editing a post }}
{{#if hasCustomExcerpt}}
{{{ excerpt }}}
{{else}}
<p>{{{ excerpt }}}</p>
{{/if}}
{{! /post excerpt }}

</article>
{{/each}}
{{! /loop that generates a list of posts }}

</main>
<aside>
{{> sidebar}}
</aside>

{{> pagination}}
{{> footer}}
Loading

0 comments on commit 4980660

Please sign in to comment.