@@ -208,64 +208,6 @@ def get_template_names(self):
208
208
return "blog/categories.html"
209
209
210
210
211
- class PortfolioView (ListView ):
212
- model = Post
213
- template_name = "blog/portfolio.html" # <app>/<model>_<viewtype>.html
214
- context_object_name = "posts" # The default is object_list
215
- paginate_by = 10
216
-
217
- def get_queryset (self ):
218
- return Post .objects .active ().filter (category__slug = "portfolio" )
219
-
220
- def get_context_data (self , * args , ** kwargs ):
221
- carousel_items = [
222
- {
223
- "avatar_url" : "portfolio/AmyBrazil.webp" ,
224
- "name" : "Amy Brazil" ,
225
- "position" : "Direct Manager" ,
226
- "company" : "YellowfinBI" ,
227
- "year" : "2022" ,
228
- "quote" : "I had the pleasure to hire, onboard and manage John..." ,
229
- "link" : "https://www.linkedin.com/in/jsolly/" ,
230
- },
231
- {
232
- "avatar_url" : "portfolio/CraigUtley.webp" ,
233
- "name" : "Craig Utley" ,
234
- "position" : "Direct Manager" ,
235
- "company" : "YellowfinBI" ,
236
- "year" : "2022" ,
237
- "quote" : "There is a right way to come into an organization and John did it the right way..." ,
238
- "link" : "https://www.linkedin.com/in/jsolly/" ,
239
- },
240
- {
241
- "avatar_url" : "portfolio/MeredithBean.webp" ,
242
- "name" : "Meredith Bean" ,
243
- "position" : "Undergraduate Student" ,
244
- "company" : "GMU" ,
245
- "year" : "2016" ,
246
- "quote" : "John was an extraordinary TA to me as a student in an introductory GIS class..." ,
247
- "link" : "https://www.linkedin.com/in/jsolly/" ,
248
- },
249
- {
250
- "avatar_url" : "portfolio/KathrynThorpe.webp" ,
251
- "name" : "Kathryn Thorpe" ,
252
- "position" : "Coworker" ,
253
- "company" : "YellowfinBI" ,
254
- "year" : "2022" ,
255
- "quote" : "Not only is John the kind of guy you'd trust with all things IT based on his technical prowess..." ,
256
- "link" : "https://www.linkedin.com/in/jsolly/" ,
257
- },
258
- ]
259
- context = super ().get_context_data (* args , ** kwargs )
260
- context ["url" ] = self .request .path
261
- context ["carousel_items" ] = carousel_items
262
- context ["title" ] = "Solly's Portfolio | Blogthedata.com"
263
- context [
264
- "description"
265
- ] = "John Solly's portfolio. A geospatial software engineer with a passion for creating beautiful and fast mapping applications."
266
- return context
267
-
268
-
269
211
class SearchView (ListView ):
270
212
model = Post
271
213
template_name = "blog/search_posts.html"
0 commit comments