How can I share tags between 2 blog instances? - docusaurus

I have a website with 2 instances of content-blog, one from the presets and the other defined in the plugins section. I would like to share the same set of tags for both blogs but cannot find a proper way to do that.
Here is the docusaurus.config.js I am using: https://github.com/input-output-hk/cardano-updates/blob/jordan/add-quarterly-dir/docusaurus.config.js
It's inspired by the "blog-only" section of docusaurus' documentation and some example I found on the internets.

Related

shopify: what does filter "t" do?

{{general.newsletter_form.placeholder' | t }}
I find something like this in a shopify's .liquid file, I am trying to find out what t means but can't find any related information from shopify's help center and liquid's github page. Can anyone tell me what it does and more importantly, where I can find the documentation?
That is the front-end translation filter or an attempt to bring i18n to Shop themes. See the documentation here: https://help.shopify.com/themes/development/internationalizing/translation-filter

How to create a searchable central repository of code documentation using DocFx

I'm looking to create a central repository for all of our published API documentation using DocFx. I have documentation auto-generated via my build (using TFS) and published through my release (using Octopus) just fine for multiple individual sites. However, I'm wanting to pull it altogether in one location. The thinking is that through a parent site you could filter content in any of the individual sites without having to drill down into them. Do you have a recommendation on how to do this?
Also, within this same documentation repository I want to provide the capability to search by all of the meta data (project-level documentation) across the hundreds of projects in our portfolio. This will give our BA, DEV and QA teams easier access to what all our systems do. I like the "filtering" capability built into DocFx, but I'm wanting full-text search across all of the meta data. Do you have a recommendation for this functionality as well?
To change the location of the docfx output, edit the docfx.json file and specify the dest value. By default it is "dest": "_site". For more formatting guidance, reference: https://dotnet.github.io/docfx/tutorial/docfx.exe_user_manual.html.
Regarding full-text search, that is possible by simply ensuring the ExtractSearchIndex post-processor is invoked (in order to generate an index.json file of keywords) and that the global _enableSearch value is set to true in the docfx.json file. A snippet from that file would look like:
"postProcessors": [ "ExtractSearchIndex" ],
"globalMetadata": {
"_enableSearch": "true"
}
For your first question:
I think what you expect is like the .NET API Browser. The source code behind this page is not open to public, so you need create this page by yourself, through collecting xrefmap.yml from multiple sites, and extract the needed data into this page.
For your second question:
DocFX uses Luna to scan all the output files and generate an index file called index.json for later search use. In your case, you should want to limit the search scope only in the metadata you defined. This is also not supported by DocFX by default. You can also use Luna in your central place to search these meta. You can create your specific index.json for each project first, and the cental place to collect them for the search page.

Geotargeting a blog folder with GWT

I'm about to launch a blog in a multilingual website.
The website uses geotargeting: site.com/fr/ for france, /be/ for belgium, ch for switzerland, ...
I was wondering if the blog should be run in root level: site.com/blog/
in that case, how the blog could be geotargeted?
Thanks a lot
You should have different URLs for each region/language. For example:
example.com/fr/blog or
example.com/be/blog
Or, even:
example.com/blog/fr or
example.com/blog/be
That depends on you. The main thing is to separate URLs for different languages/regions.
After you do all this, you should add hreflang attributes. That way you tell Google what version of a URL should be displayed when someone searches in certain language/from certain region.
If you use hreflang, you don't have to set geotargeting in WMT. If you still want to do that, you should add separate folders to WMT as different websites.

SEO problems in the liferay blogs managing

On my web site, google webmaster tools tells me that I have duplicate tags meta (<meta description>) in the blogs articles. This tag is linked to the field subscription in liferay administration and corresponds to the table layout in the database.
I would like to know if there is a simple solution to add a specific meta tag for each article.
Be sure that you are filling up Abstract field and tags for blog entries.
By default:
Adding an abstract: The content will be ADDED (not overwritten) to meta description
Adding tags: The tags will be ADDED (not overwritten) to meta keywords.
Blog URLs will have a little difference in those meta-tags between Pages and Blog entries.
Regards!

Dynamic blocks in django templates

It is a question about django that has found absolutely no answer for me.
Let's suppose I have a site where I display two blocks in the sidebar :
A list of the last users who've logged in
A list of the last published blog articles
Let's say that these blocks are to be displayed on 80% of the website urls and presented using template files.
The data for these blocks is generated by code (obviously), bt not by url views.
Well, how to do such a thing ?
You might want to take a look at custom template tags.
Edit: more specifically, look at inclusion template tags.