Skip to content

Commit

Permalink
Wipe everything and setup basics
Browse files Browse the repository at this point in the history
  • Loading branch information
Gulksie committed Dec 28, 2023
0 parents commit 7482ebb
Show file tree
Hide file tree
Showing 32 changed files with 559 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/pelican.yml
@@ -0,0 +1,14 @@
name: Deploy to GitHub Pages
on:
push:
branches: ["main"]
workflow_dispatch:
jobs:
deploy:
uses: "getpelican/pelican/.github/workflows/github_pages.yml@master"
permissions:
contents: "read"
pages: "write"
id-token: "write"
with:
settings: "publishconf.py"
17 changes: 17 additions & 0 deletions .gitignore
@@ -0,0 +1,17 @@
### ugly shit i saw ###
__pycache__
output

### https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets

# Local History for Visual Studio Code
.history/

# Built Visual Studio Code Extensions
*.vsix
4 changes: 4 additions & 0 deletions content/Blog/test.md
@@ -0,0 +1,4 @@
Title: Test
Date: 2023-12-27

We be testing shit over here
4 changes: 4 additions & 0 deletions content/Blog/test2.md
@@ -0,0 +1,4 @@
Title: Test 2
Date: 2023/12/28

Test 2
6 changes: 6 additions & 0 deletions content/pages/404.md
@@ -0,0 +1,6 @@
Title: 404 Not Found
Status: Hidden
Save_as: 404.html

The requested resource could not be found. <br>
Error code 404
6 changes: 6 additions & 0 deletions content/pages/home.md
@@ -0,0 +1,6 @@
Title: Home
save_as: index.html
url: index.html

![A picture of me!]({static}/static/img/meeee.jpg)
This should be the about page??
Binary file added content/static/favicon/android-chrome-192x192.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/static/favicon/apple-touch-icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions content/static/favicon/browserconfig.xml
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/static/favicon/mstile-150x150.png"/>
<TileColor>#00aba9</TileColor>
</tile>
</msapplication>
</browserconfig>
Binary file added content/static/favicon/favicon-16x16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/static/favicon/favicon-32x32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/static/favicon/favicon.ico
Binary file not shown.
Binary file added content/static/favicon/mstile-150x150.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
89 changes: 89 additions & 0 deletions content/static/favicon/safari-pinned-tab.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions content/static/favicon/site.webmanifest
@@ -0,0 +1,14 @@
{
"name": "",
"short_name": "",
"icons": [
{
"src": "/static/favicon/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
Binary file added content/static/img/meeee.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions pelicanconf.py
@@ -0,0 +1,48 @@
AUTHOR = 'Kayla Gulka'
SITENAME = 'Kayla Gulka'
SITEURL = "https://gulk.dev"

PATH = "content"

TIMEZONE = 'America/Toronto'

DEFAULT_LANG = 'English'

# Kayla stuff :))))
USE_FOLDER_AS_CATEGORY = True
DELETE_OUTPUT_DIRECTORY = True
THEME = "theme"
STATIC_PATHS = ['static']

CATEGORY_SAVE_AS = ''
CATEGORIES_SAVE_AS = ''
AUTHOR_SAVE_AS = ''
AUTHORS_SAVE_AS = ''
TAG_SAVE_AS = ''
ARCHIVES_SAVE_AS = ''

# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None

# Blogroll
LINKS = (
("Pelican", "https://getpelican.com/"),
("Python.org", "https://www.python.org/"),
("Jinja2", "https://palletsprojects.com/p/jinja/"),
("You can modify those links in your config file", "#"),
)

# Social widget
SOCIAL = (
("You can add links in your config file", "#"),
("Another social link", "#"),
)

DEFAULT_PAGINATION = False

# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True
22 changes: 22 additions & 0 deletions publishconf.py
@@ -0,0 +1,22 @@
# This file is only used if you use `make publish` or
# explicitly specify it as your config file.

import os
import sys

sys.path.append(os.curdir)
from pelicanconf import *

# If your site is available via HTTPS, make sure SITEURL begins with https://
SITEURL = ""
RELATIVE_URLS = False

FEED_ALL_ATOM = "feeds/all.atom.xml"
CATEGORY_FEED_ATOM = "feeds/{slug}.atom.xml"

DELETE_OUTPUT_DIRECTORY = True

# Following items are often useful when publishing

# DISQUS_SITENAME = ""
# GOOGLE_ANALYTICS = ""
14 changes: 14 additions & 0 deletions theme/templates/archives.html
@@ -0,0 +1,14 @@
{% extends "base.html" %}

{% block title %}{{ SITENAME|striptags }} - Archives{% endblock %}

{% block content %}
<h2>Archives for {{ SITENAME }}</h2>

<dl>
{% for article in dates %}
<dt>{{ article.locale_date }}</dt>
<dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd>
{% endfor %}
</dl>
{% endblock %}
65 changes: 65 additions & 0 deletions theme/templates/article.html
@@ -0,0 +1,65 @@
{% extends "base.html" %}
{% block html_lang %}{{ article.lang }}{% endblock %}

{% block title %}{{ SITENAME|striptags }} - {{ article.title|striptags }}{% endblock %}

{% block head %}
{{ super() }}

{% import 'translations.html' as translations with context %}
{% if translations.entry_hreflang(article) %}
{{ translations.entry_hreflang(article) }}
{% endif %}

{% if article.description %}
<meta name="description" content="{{article.description}}" />
{% endif %}

{% for tag in article.tags %}
<meta name="tags" content="{{tag}}" />
{% endfor %}

{% endblock %}

{% block content %}
<article>
<header>
<h2>
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
{% import 'translations.html' as translations with context %}
{{ translations.translations_for(article) }}
</header>
{{ article.content }}
<footer>
<p>Published: <time datetime="{{ article.date.isoformat() }}">
{{ article.locale_date }}
</time></p>
{% if article.modified %}
<p>Last updated: <time datetime="{{ article.modified.isoformat() }}">
{{ article.locale_modified }}
</time></p>
{% endif %}
{% if article.authors %}
<address>
By {% for author in article.authors %}
<a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
{% endfor %}
</address>
{% endif %}
{% if article.category %}
<p>
Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
</p>
{% endif %}
{% if article.tags %}
<p>
Tags:
{% for tag in article.tags %}
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>
{% endfor %}
</p>
{% endif %}
</footer>
</article>
{% endblock %}
7 changes: 7 additions & 0 deletions theme/templates/author.html
@@ -0,0 +1,7 @@
{% extends "index.html" %}

{% block title %}{{ SITENAME|striptags }} - Articles by {{ author }}{% endblock %}

{% block content_title %}
<h2>Articles by {{ author }}</h2>
{% endblock %}
12 changes: 12 additions & 0 deletions theme/templates/authors.html
@@ -0,0 +1,12 @@
{% extends "base.html" %}

{% block title %}{{ SITENAME|striptags }} - Authors{% endblock %}

{% block content %}
<h2>Authors on {{ SITENAME }}</h2>
<ul>
{% for author, articles in authors|sort %}
<li><a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> ({{ articles|count }})</li>
{% endfor %}
</ul>
{% endblock %}

0 comments on commit 7482ebb

Please sign in to comment.