Skip to content

Commit

Permalink
Merge pull request #57 from HelloYeew/remove-opengraph-image
Browse files Browse the repository at this point in the history
Remove opengraph image in some unrelated page
  • Loading branch information
HelloYeew authored Sep 6, 2021
2 parents 7f8db37 + 01298f3 commit e8f1046
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion rurusetto/users/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ def settings(request):
'hero_image_light': static(hero_image_light),
'opengraph_description': 'All profile and website settings are here!',
'opengraph_url': resolve_url('settings'),
'opengraph_image': static(hero_image)
}

return render(request, 'users/settings.html', context)
Expand Down
9 changes: 0 additions & 9 deletions rurusetto/wiki/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ def home(request):
'hero_image_light': static(hero_image_light),
'opengraph_description': 'A page that contain all osu! ruleset',
'opengraph_url': resolve_url('home'),
'opengraph_image': static(hero_image),
'latest_add_rulesets': make_listing_view(latest_add_rulesets) # Use make_listing_view function to get the User object from database and pass to template
}
return render(request, 'wiki/home.html', context)
Expand All @@ -63,7 +62,6 @@ def changelog(request):
'hero_image_light': static(hero_image_light),
'opengraph_description': 'All update history of website are here.',
'opengraph_url': resolve_url('changelog'),
'opengraph_image': static(hero_image)
}
return render(request, 'wiki/changelog.html', context)

Expand All @@ -85,7 +83,6 @@ def listing(request):
'hero_image_light': static(hero_image_light),
'opengraph_description': 'List of available rulesets.',
'opengraph_url': resolve_url('listing'),
'opengraph_image': static(hero_image)
}
return render(request, 'wiki/listing.html', context)

Expand Down Expand Up @@ -123,7 +120,6 @@ def create_ruleset(request):
'hero_image_light': static(hero_image_light),
'opengraph_description': "Let's add a new ruleset! Is it yours? Don't worry! You can add it although you don't make that ruleset.",
'opengraph_url': resolve_url('create_ruleset'),
'opengraph_image': static(hero_image)
}
return render(request, 'wiki/create_ruleset.html', context)

Expand Down Expand Up @@ -192,7 +188,6 @@ def edit_ruleset_wiki(request, slug):
'hero_image_light': static(hero_image_light),
'opengraph_description': f'You are currently edit content on ruleset name "{Ruleset.objects.get(slug=slug).name}".',
'opengraph_url': resolve_url('edit_wiki', slug=slug),
'opengraph_image': static(hero_image)
}
return render(request, 'wiki/edit_ruleset_wiki.html', context)

Expand Down Expand Up @@ -234,7 +229,6 @@ def add_subpage(request, slug):
'hero_image_light': static(hero_image_light),
'opengraph_description': f'You are currently add a subpage for ruleset name "{target_ruleset.name}".',
'opengraph_url': resolve_url('add_subpage', slug=slug),
'opengraph_image': static(hero_image)
}
return render(request, 'wiki/add_subpage.html', context)

Expand All @@ -254,7 +248,6 @@ def install(request):
'hero_image_light': static(hero_image_light),
'opengraph_description': 'How to install and update rulesets by using Rūrusetto.',
'opengraph_url': resolve_url('install'),
'opengraph_image': static(hero_image)
}
return render(request, 'wiki/install.html', context)

Expand Down Expand Up @@ -327,7 +320,6 @@ def edit_subpage(request, rulesets_slug, subpage_slug):
'hero_image_light': static(hero_image_light),
'opengraph_description': f'You are currently edit subpage "{Subpage.objects.get(slug=subpage_slug).title}" on ruleset name "{Ruleset.objects.get(slug=rulesets_slug).name}".',
'opengraph_url': resolve_url('edit_subpage', rulesets_slug=ruleset.slug, subpage_slug=subpage.slug),
'opengraph_image': static(hero_image)
}
return render(request, 'wiki/edit_subpage.html', context)

Expand Down Expand Up @@ -416,7 +408,6 @@ def add_recommend_beatmap(request, slug):
'hero_image_light': static(hero_image_light),
'opengraph_description': f'You are currently add a new recommend beatmap for {ruleset.name}.',
'opengraph_url': resolve_url('add_recommend_beatmap', slug=ruleset.slug),
'opengraph_image': static(hero_image)
}
return render(request, 'wiki/add_recommend_beatmap.html', context)

Expand Down

0 comments on commit e8f1046

Please sign in to comment.