diff --git a/.gitignore b/.gitignore index b7ef9bf..a5bc6c9 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -/media/ +db.sqlite3 +/media +/static \ No newline at end of file diff --git a/blog/templates/blog/allblogs.html b/blog/templates/blog/allblogs.html index 91f6806..197a147 100644 --- a/blog/templates/blog/allblogs.html +++ b/blog/templates/blog/allblogs.html @@ -1,12 +1,14 @@ + {% load static %} + - Album example · Bootstrap + Blog @@ -47,16 +49,15 @@
@@ -64,14 +65,14 @@
-

Sharad's Blog

+

Blog



Latest Posts


{% for blog in blogs.all %} -

{{ blog.title }}

+

{{ blog.title }}

{{ blog.pubdate_pretty }}
diff --git a/blog/templates/blog/detail.html b/blog/templates/blog/detail.html index 0f63566..0212031 100644 --- a/blog/templates/blog/detail.html +++ b/blog/templates/blog/detail.html @@ -1 +1,94 @@ -{{ blog.title }} \ No newline at end of file + + + + {% load static %} + + + + + + + {{ blog.title }} + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+

{{ blog.title }}

+

{{ blog.pubdate }}

+ +
+
+

{{ blog.body }}

+
+
+
+
+ + + + + + + diff --git a/jobs/templates/jobs/home.html b/jobs/templates/jobs/home.html index c9365f1..63efe40 100644 --- a/jobs/templates/jobs/home.html +++ b/jobs/templates/jobs/home.html @@ -1,12 +1,14 @@ + {% load static %} + - Album example · Bootstrap + Portfolio @@ -47,16 +49,15 @@
@@ -68,6 +69,7 @@

Code Portfolio

My code samples.

+

Email Me

diff --git a/portfolio/settings.py b/portfolio/settings.py index 2de05fa..44b9ad4 100644 --- a/portfolio/settings.py +++ b/portfolio/settings.py @@ -124,7 +124,11 @@ USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/3.0/howto/static-files/ +STATICFILES_DIRS = [ + os.path.join(BASE_DIR, 'portfolio/static') +] STATIC_URL = '/static/' +STATIC_ROOT = os.path.join(BASE_DIR, 'static') MEDIA_ROOT = os.path.join(BASE_DIR, 'media') -MEDIA_URL = '/media/' \ No newline at end of file +MEDIA_URL = '/media/' diff --git a/portfolio/static/resume.pdf b/portfolio/static/resume.pdf new file mode 100644 index 0000000..a98a8f1 Binary files /dev/null and b/portfolio/static/resume.pdf differ diff --git a/portfolio/static/sharad.jpg b/portfolio/static/sharad.jpg new file mode 100644 index 0000000..c261a51 Binary files /dev/null and b/portfolio/static/sharad.jpg differ